Skip to content

Commit 24d6353

Browse files
Bug Fix: Provide Support for packaging tzdata.zi file in tzdata package (#15456)
1 parent 7b7515b commit 24d6353

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"Signatures": {
3-
"tzdata2025c.tar.gz": "4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957"
3+
"tzdata2025c.tar.gz": "4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957",
4+
"tzcode2025c.tar.gz": "697ebe6625444aef5080f58e49d03424bbb52e08bf483d3ddb5acf10cbd15740"
45
}
56
}

SPECS/tzdata/tzdata.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Summary: Time zone data
22
Name: tzdata
33
Version: 2025c
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: Public Domain
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
88
Group: Applications/System
99
URL: https://www.iana.org/time-zones
1010
Source0: https://data.iana.org/time-zones/releases/%{name}%{version}.tar.gz
11+
Source1: https://data.iana.org/time-zones/releases/tzcode%{version}.tar.gz
1112
BuildArch: noarch
1213

1314
%description
@@ -20,6 +21,7 @@ rm -rf %{blddir}
2021
install -vdm 755 %{blddir}
2122
cd %{blddir}
2223
tar xf %{SOURCE0} --no-same-owner
24+
tar xf %{SOURCE1} --no-same-owner
2325

2426
%build
2527

@@ -37,6 +39,8 @@ cp -v zone.tab iso3166.tab zone1970.tab $ZONEINFO
3739
zic -d $ZONEINFO -p America/New_York
3840
install -vdm 755 %{buildroot}%{_sysconfdir}
3941
ln -svf %{_datarootdir}/zoneinfo/UTC %{buildroot}%{_sysconfdir}/localtime
42+
make tzdata.zi
43+
install -vpDm 644 tzdata.zi %{buildroot}%{_datadir}/zoneinfo/tzdata.zi
4044

4145
%files
4246
%defattr(-,root,root)
@@ -45,6 +49,10 @@ ln -svf %{_datarootdir}/zoneinfo/UTC %{buildroot}%{_sysconfdir}/localtime
4549
%{_datadir}/*
4650

4751
%changelog
52+
* Tue Jan 06 2026 Madhur Aggarwal <madaggarwal@microsoft.com> - 2025c-2
53+
- Added Source1 tzcode, which is required to build tzdata.zi
54+
- Packaged tzdata.zi file in /usr/share/zoneinfo
55+
4856
* Thu Dec 11 2025 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 2025c-1
4957
- Auto-upgrade to 2025c - upgrade to version 2025c
5058

0 commit comments

Comments
 (0)