diff options
author | Remi Collet <remi@remirepo.net> | 2022-10-21 16:01:38 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-10-21 16:01:38 +0200 |
commit | 09dc2f3cc784aa000ecd3bdef4d53b4366f84b6e (patch) | |
tree | 01099b29aba3604c1b6af30bb818c2a028cbd719 | |
parent | f86e66ece4219f85469d573ace5f5f93edf7400a (diff) |
Update timezone data to 2022b
-rw-r--r-- | icu-last.spec | 21 | ||||
-rw-r--r-- | timezone-update-2022b.patch | 37 |
2 files changed, 52 insertions, 6 deletions
diff --git a/icu-last.spec b/icu-last.spec index d7b3953..3cdb35b 100644 --- a/icu-last.spec +++ b/icu-last.spec @@ -1,4 +1,4 @@ -# remirepo spec file for icu65 +# remirepo spec file for icu71 # renamed for parallel installation, from: # # Fedora spec file for icu @@ -13,6 +13,8 @@ %global soname 71 %global subver 1 +%bcond_without tests + # Set to 0 when upgrading to a new ICU release that contains up-to-date timezone data. # (or update the timezone data update..). %global use_tzdata_update 1 @@ -26,17 +28,17 @@ Name: icu%{soname} Version: %{soname}.%{subver} -Release: 1%{?dist} +Release: 2%{?dist} Summary: International Components for Unicode License: MIT and UCD and Public Domain URL: http://site.icu-project.org/ Source0: https://github.com/unicode-org/icu/releases/download/release-%{soname}-%{subver}/icu4c-%{soname}_%{subver}-src.tgz %if 0%{?use_tzdata_update} Source1: https://github.com/unicode-org/icu/releases/download/release-%{soname}-%{subver}/icu4c-%{soname}_%{subver}-data.zip -Source2: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022a/44/metaZones.txt -Source3: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022a/44/timezoneTypes.txt -Source4: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022a/44/windowsZones.txt -Source5: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022a/44/zoneinfo64.txt +Source2: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/metaZones.txt +Source3: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/timezoneTypes.txt +Source4: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/windowsZones.txt +Source5: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/zoneinfo64.txt %endif Source10: icu-config.sh @@ -60,6 +62,7 @@ Provides: %{srcname}%{?_isa} = %{version}-%{release} Patch4: gennorm2-man.patch Patch5: icuinfo-man.patch +Patch10: timezone-update-2022b.patch %description Tools and utilities for developing with icu. @@ -112,6 +115,7 @@ Provides: lib%{srcname}-doc = %{version}-%{release} %setup -q -n %{srcname} %patch4 -p1 -b .gennorm2-man.patch %patch5 -p1 -b .icuinfo-man.patch +%patch10 -p1 -b .update %if 1 sed -e '/SELFCHECK=1/d' -i source/Makefile.in @@ -175,6 +179,7 @@ chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.* ) install -p -m755 -D %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/icu-config +%if %{with tests} %check %{?dtsenable} @@ -187,6 +192,7 @@ make %{?_smp_mflags} -C source check # log available codes pushd source LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l +%endif %if 0%{?fedora} < 28 && 0%{?rhel} < 8 @@ -251,6 +257,9 @@ LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l %changelog +* Fri Oct 21 2022 Remi Collet <remi@remirepo.net> - 71.1-2 +- Update timezone data to 2022b + * Tue Aug 16 2022 Remi Collet <remi@remirepo.net> - 71.1-1 - update to 71.1 (from F37) diff --git a/timezone-update-2022b.patch b/timezone-update-2022b.patch new file mode 100644 index 0000000..01d6038 --- /dev/null +++ b/timezone-update-2022b.patch @@ -0,0 +1,37 @@ +diff -ru icu.orig/source/test/intltest/tztest.cpp icu/source/test/intltest/tztest.cpp +--- icu.orig/source/test/intltest/tztest.cpp 2022-04-08 00:41:55.000000000 +0200 ++++ icu/source/test/intltest/tztest.cpp 2022-09-27 17:15:20.860744015 +0200 +@@ -2049,6 +2049,33 @@ + const char *alias; // link-from + const char *zone; // link-to (A zone ID with "Zone" rule) + } excluded1[] = { ++ {"Atlantic/Reykjavik", "Africa/Abidjan"}, ++ {"Iceland", "Africa/Abidjan"}, ++ {"Pacific/Chuuk", "Pacific/Port_Moresby"}, ++ {"Pacific/Truk", "Pacific/Port_Moresby"}, ++ {"Pacific/Yap", "Pacific/Port_Moresby"}, ++ {"Asia/Kashgar", "Anarctica/Vostok"}, ++ {"Asia/Urumqi", "Antarctica/Vostok"}, ++ {"Asia/Kuching", "Asia/Brunei"}, ++ {"Europe/Berlin", "Europe/Oslo"}, ++ {"Europe/Copenhagen", "Europe/Oslo"}, ++ {"Europe/Stockholm", "Europe/Oslo"}, ++ {"Europe/Brussels", "Europe/Amsterdam"}, ++ {"Europe/Luxembourg", "Europe/Amsterdam"}, ++ {"Europe/Monaco", "Europe/Paris"}, ++ {"Indian/Christmas", "Asia/Bangkok"}, ++ {"Indian/Cocos", "Asia/Rangoon"}, ++ {"Indian/Maldives", "Indian/Kerguelen"}, ++ {"Indian/Mahe", "Asia/Dubai"}, ++ {"Indian/Reunion", "Asia/Dubai"}, ++ {"Pacific/Majuro", "Pacific/Funafuti"}, ++ {"Pacific/Tarawa", "Pacific/Funafuti"}, ++ {"Pacific/Wake", "Pacific/Funafuti"}, ++ {"Pacific/Wallis", "Pacific/Funafuti"}, ++ {"Pacific/Pohnpei", "Pacific/Port_Moresby"}, ++ {"Pacific/Ponape", "Pacific/Guadalcanal"}, ++ {"Asia/Singapore", "Asia/Kuala_Lumpur"}, ++ {"Singapore", "Asia/Kuala_Lumpur"}, + {"Africa/Accra", "Africa/Abidjan"}, + {"Africa/Addis_Ababa", "Africa/Nairobi"}, + {"Africa/Asmera", "Africa/Nairobi"}, |