Name: tzdata Version: 2025b Release: 1 Summary: Timezone data License: Public Domain URL: https://www.iana.org/time-zones Source0: https://data.iana.org/time-zones/releases/tzdata%{version}.tar.gz Source1: https://data.iana.org/time-zones/releases/tzcode%{version}.tar.gz Patch9000: bugfix-0001-add-Beijing-timezone.patch Patch9001: remove-ROC-timezone.patch Patch9002: rename-Macau-to-Macao.patch Patch9003: remove-El_Aaiun-timezone.patch Patch9004: remove-Israel-timezone.patch Patch9005: skip-check_web-testcase.patch BuildRequires: gawk glibc perl-interpreter BuildRequires: java-devel BuildRequires: glibc-common >= 2.5.90-7 BuildArch: noarch %description This package contains data files with rules for various timezones around the world. %package java Summary: Timezone data for Java Source3: javazic-1.8-37392f2f5d59.tar.xz Source4: ZoneTest.java %description java This package contains timezone information for use by Java runtimes. %prep %autosetup -c -a 1 -p1 # tzdata-2018g introduced 25:00 transition times. This breaks OpenJDK. # Use rearguard for java mkdir rearguard make VERSION=%{version} ZFLAGS="-b fat" tzdata%{version}-rearguard.tar.gz mv tzdata%{version}-rearguard.tar.gz rearguard pushd rearguard tar zxf tzdata%{version}-rearguard.tar.gz popd tar xf %{SOURCE3} echo "%{name}%{version}" >> VERSION %build # Run make to create the tzdata.zi file rm tzdata.zi make VERSION=%{version} ZFLAGS="-b fat" DATAFORM=rearguard tzdata.zi FILES="africa antarctica asia australasia europe northamerica southamerica etcetera backward factory" mkdir zoneinfo/{,posix,right} zic -b fat -y ./yearistype -d zoneinfo -L /dev/null -p America/New_York $FILES zic -b fat -y ./yearistype -d zoneinfo/posix -L /dev/null $FILES zic -b fat -y ./yearistype -d zoneinfo/right -L leapseconds $FILES # grep -v tz-art.htm tz-link.htm > tz-link.html # tzdata-2018g introduced 25:00 which breaks java - use the rearguard files for java JAVA_FILES="rearguard/africa rearguard/antarctica rearguard/asia \ rearguard/australasia rearguard/europe rearguard/northamerica \ rearguard/southamerica rearguard/etcetera \ rearguard/backward" # Java 8 tzdata pushd javazic-1.8 javac -source 1.8 -target 1.8 -classpath . `find . -name \*.java` popd java -classpath javazic-1.8 build.tools.tzdb.TzdbZoneRulesCompiler \ -srcdir . -dstfile tzdb.dat \ -verbose \ $JAVA_FILES javazic-1.8/tzdata_jdk/gmt javazic-1.8/tzdata_jdk/jdk11_backward %check echo ============TESTING=============== /usr/bin/env LANG=C make -k VALIDATE=':' check && true # Create a custom JAVA_HOME, where we can replace tzdb.dat with the # one just built, for testing. system_java_home=$(dirname $(readlink -f $(which java)))/.. mkdir -p java_home cp -Lr $system_java_home/* java_home/. for tzdb in $(find java_home -name tzdb.dat) ; do rm $tzdb cp $RPM_BUILD_ROOT%{_datadir}/javazi-1.8/tzdb.dat $tzdb done # Compile the smoke test and run it. cp %{SOURCE4} . javac ZoneTest.java java_home/bin/java ZoneTest echo ============END TESTING=========== %install install -d $RPM_BUILD_ROOT%{_datadir} cp -prd zoneinfo $RPM_BUILD_ROOT%{_datadir} install -p -m 644 zone.tab zone1970.tab iso3166.tab leap-seconds.list leapseconds tzdata.zi $RPM_BUILD_ROOT%{_datadir}/zoneinfo mkdir -p $RPM_BUILD_ROOT%{_datadir}/javazi-1.8 install -p -m 644 tzdb.dat $RPM_BUILD_ROOT%{_datadir}/javazi-1.8/ %files %{_datadir}/zoneinfo %doc README %doc theory.html %doc tz-link.html %doc tz-art.html %license LICENSE %files java %{_datadir}/javazi %{_datadir}/javazi-1.8 %changelog * Mon Mar 24 2025 Funda Wang - 2025b-1 - Type:bugfix - CVE:NA - SUG:NA - DESC:update to 2025b * Fri Jan 24 2025 Liu Chao - 2024a-4 - Type:bugfix - CVE:NA - SUG:NA - DESC:revert "upgradetzdatato 2025a" * Mon Jan 20 2025 Liu Chao - 2025a-1 - Type:bugfix - CVE:NA - SUG:NA - DESC:upgrade tzdata to 2025a * Thu Oct 31 2024 langfei - 2024a-3 - Type:bugfix - CVE:NA - SUG:NA - DESC: The time zone rule of Paraguay is changed. * Wed Apr 10 2024 wangxiaomeng - 2024a-2 - Type:bugfix - CVE:NA - SUG:NA - DESC: Backport patch to fix check error * Sun Feb 4 2024 liuchao - 2024a-1 - Type:bugfix - CVE:NA - SUG:NA - DESC: upgrade tzdata to 2024a * Sun Feb 4 2024 liuchao - 2023d-2 - Type:bugfix - CVE:NA - SUG:NA - DESC: Palestine springs forward a week later after Ramadan * Tue Jan 23 2024 liuchao - 2023d-1 - Type:bugfix - CVE:NA - SUG:NA - DESC: upgrade tzdata to 2023d * Wed Dec 13 2023 langfei - 2022g-6 - Type:bugfix - CVE:NA - SUG:NA - DESC: Fix Palestine predictions for 2072 through 2075; Ittoqqortoormiit (America/Scoresbysund) zone change. * Thu Apr 6 2023 qinyu - 2022g-5 - Type:bugfix - CVE:NA - SUG:NA - DESC: Greenland changed standard time already * Thu Apr 6 2023 qinyu - 2022g-4 - Type:bugfix - CVE:NA - SUG:NA - DESC: Palestine no longer observes DST during Ramadan * Fri Mar 17 2023 qinyu - 2022g-3 - Type:bugfix - CVE:NA - SUG:NA - DESC: This year Morocco springs forward April 23, not April 30 * Fri Mar 10 2023 qinyu - 2022g-2 - Type:bugfix - CVE:NA - SUG:NA - DESC: Egypt now uses DST again * Tue Jan 3 2023 qinyu - 2022g-1 - Type:bugfix - CVE:NA - SUG:NA - DESC: upgrade tzdata to 2022g * Mon Dec 5 2022 qinyu - 2022e-5 - Type:bugfix - CVE:NA - SUG:NA - DESC: Much of Greenland still uses DST from 2024 on * Wed Nov 30 2022 qinyu - 2022e-4 - Type:bugfix - CVE:NA - SUG:NA - DESC: Greenland change should affect only America/Nuuk; The northern edge of Chihuahua changes to US rules * Mon Nov 28 2022 qinyu - 2022e-3 - Type:bugfix - CVE:NA - SUG:NA - DESC: Most of Greenland stops clock-changing after March * Tue Nov 1 2022 qinyu - 2022e-2 - Type:bugfix - CVE:NA - SUG:NA - DESC: Fiji & most of Mexico will no longer observe DST * Tue Oct 18 2022 qinyu - 2022e-1 - Type:bugfix - CVE:NA - SUG:NA - DESC: update tzdata base to 2022e * Mon Oct 10 2022 huangduirong - 2022a-6 - Type:bugfix - CVE:NA - SUG:NA - DESC:move the tzdata rearguard.tar.gz to build * Fri Sep 2 2022 qinyu - 2022a-5 - Type:bugfix - CVE:NA - SUG:NA - DESC: Palestine DST transitions time change * Fri Aug 19 2022 qinyu - 2022a-4 - Type:bugfix - CVE:NA - SUG:NA - DESC:Chile's DST is delayed by a week in September 2022 * Fri Jul 8 2022 liuchao - 2022a-3 - Type:bugfix - CVE:NA - SUG:NA - DESC:remake rearguard version of main.zi to fix check_zishrink_posix fail * Thu May 12 2022 liuchao - 2022a-2 - Type:bugfix - CVE:NA - SUG:NA - DESC:Iran will stop DST in 2023 * Mon Apr 18 2022 liuchao - 2022a-1 - Type:bugfix - CVE:NA - SUG:NA - DESC:update to 2022a * Fri Oct 29 2021 liuchao - 2021e-1 - Type:bugfix - CVE:NA - SUG:NA - DESC:update to 2021e * Sun Sep 26 2021 liuchao - 2021b-1 - Type:bugfix - CVE:NA - SUG:NA - DESC:update to 2021b * Thu Sep 23 2021 liuchao - 2021a-4 - Type:bugfix - CVE:NA - SUG:NA - DESC:Samoa no longer observes DST * Tue Aug 17 2021 liuchao - 2021a-3 - add factory timezone and enbale make check * Mon Mar 8 2021 liuchao - 2021a-2 - Remove useless patches * Tue Jan 26 2021 liuchao - 2021a-1 - Upgrade to 2021a * Fri Jan 22 2021 liuchao - 2020f-2 - South Sudan changes from +03 to +02 on 2021-02-01 * Tue Jan 12 2021 liuchao - 2020f-1 - Upgrade to 2020f * Mon Dec 7 2020 liuchao - 2020d-5 - backport community patches * Mon Nov 30 2020 liuchao - 2020d-4 - backport community patches * Tue Oct 27 2020 shenkai - 2020d-3 - backport community patches * Tue Oct 27 2020 shenkai - 2020d-2 - backport community patches * Thu Oct 22 2020 liuchao - 2020d-1 - Upgrade to 2020d * Wed Oct 21 2020 liuchao - 2020c-1 - Upgrade to 2020c and backport community patches * Wed Oct 14 2020 liuchao - 2020b-2 - backport community patches * Sat Oct 10 2020 liuchao - 2020b-1 - Upgrade to 2020b * Wed Jun 17 2020 Shinwell Hu - 2020a-1 - Upgrade to 2020a * Thu Apr 16 2020 liuchao - 2019c-1 - Type:recommended - ID:NA - SUG:NA - DESC:rebase to tzdata-2019c * Mon Mar 23 2020 liuchao - 2019b-10 - Type:recommended - ID:NA - SUG:NA - DESC:add Beijing timezone in zone1970.tab * Thu Jan 9 2020 liuchao - 2019b-9 - Type:recommended - ID:NA - SUG:NA - DESC:remove useless patches * Wed Jan 8 2020 liuchao - 2019b-8 - Type:bugfix - ID:NA - SUG:NA - DESC:remove Israel and El_Aaiun timezone * Thu Jan 2 2020 liuchao - 2019b-7 - Type:bugfix - ID:NA - SUG:NA - DESC:sync community patches * Wed Dec 4 2019 liuchao - 2019b-6 - Type:recommended - ID:NA - SUG:NA - DESC:remove ROC timezone and rename Macau to Macao * Mon Sep 23 2019 liuchao -2019b-5 - Type:bugfix - ID:NA - SUG:NA - DESC: use rearguard data set to fix Casablance DST display error since 2019 * Wed Sep 4 2019 hejingxian - 2019b-4 - Type:enhancement - ID:NA - SUG:NA - DESC: remove country select operation from tzselect steps. * Fri Aug 23 2019 wuxu - 2019b-3 - Type:recommended - ID:NA - SUG:NA * Thu Jul 25 2019 luochunsheng - 2019b-2 - Type:recommended - ID:NA - SUG:NA * Tue Jul 09 2019 openEuler Buildteam - 2019b-1 - Rebase to tzdata-2019b - Brazil will no longer observe DST going forward. - The 2019 spring transition for Palestine occurred 03-29, not 03-30. * Sun May 5 2019 luochunsheng - 2019a-4 - Type:fix - ID:NA - SUG:NA - DESC: Bring back 2019-2037 Morocco Ramadan predictions https://www.timeanddate.com/news/time/morocco-changes-clocks-2019.html * Mon Apr 22 2019 luochunsheng - 2019a-3 - Type:NA - ID:NA - SUG:NA - DESC: Revert "Bring back 2019-2037 Morocco Ramadan predictions" to fix Morocco zoneinfo. * Wed Apr 17 2019 luochunsheng - 2019a-2 - Type:NA - ID:NA - SUG:NA - DESC:Quality enhance * Fri Mar 29 2019 openEuler Buildteam - 2019a-1 - Rebase to tzdata-2019a - Palestine will start DST on 2019-03-30, rather than 2019-03-23 as previously predicted. - Metlakatla rejoined Alaska time on 2019-01-20, ending its observances of Pacific standard time. * Fri Mar 8 2019 wangjia - 2018i-2 - Type:bugfix - ID:NA - SUG:NA - DESC:add Beijing timezone * Tue Jan 15 2019 openEuler Buildteam - 2018i-1 - Package init