Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package timezone.15582 for 
openSUSE:Leap:15.2:Update checked in at 2021-01-23 18:22:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/timezone.15582 (Old)
 and      /work/SRC/openSUSE:Leap:15.2:Update/.timezone.15582.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "timezone.15582"

Sat Jan 23 18:22:19 2021 rev:1 rq:865026 version:2020f

Changes:
--------
New Changes file:

--- /dev/null   2021-01-11 18:20:20.070723563 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2:Update/.timezone.15582.new.28504/timezone-java.changes
 2021-01-23 18:22:20.463937052 +0100
@@ -0,0 +1,5653 @@
+-------------------------------------------------------------------
+Tue Dec 29 20:58:56 UTC 2020 - Mark??ta Machov?? <[email protected]>
+
+- timezone update 2020f (bsc#1177460)
+  * 'make rearguard_tarballs' no longer generates a bad rearguard.zi,
+    fixing a 2020e bug.
+
+-------------------------------------------------------------------
+Wed Dec 23 06:55:02 UTC 2020 - Mark??ta Machov?? <[email protected]>
+
+- timezone update 2020e (bsc#1177460)
+  * Volgograd switches to Moscow time on 2020-12-27 at 02:00.
+
+-------------------------------------------------------------------
+Mon Nov  2 13:21:52 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Add fat.patch to generate "fat" timezone files (was default before 2020b)
+  bsc#1178346
+
+-------------------------------------------------------------------
+Thu Oct 22 07:34:04 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020d (bsc#1177460)
+  * Palestine ends DST earlier than predicted, on 2020-10-24.
+
+-------------------------------------------------------------------
+Mon Oct 19 09:29:56 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020c (bsc#1177460)
+  * Fiji starts DST later than usual, on 2020-12-20.
+
+-------------------------------------------------------------------
+Thu Oct  8 08:56:16 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020b (bsc#1177460)
+  * Revised predictions for Morocco's changes starting in 2023.
+  * Canada's Yukon changes to -07 on 2020-11-01, not 2020-03-08.
+  * Macquarie Island has stayed in sync with Tasmania since 2011.
+  * Casey, Antarctica is at +08 in winter and +11 in summer.
+  * zic no longer supports -y, nor the TYPE field of Rules.
+- Rebased timezone-2018f-bsc1112310.patch
+
+-------------------------------------------------------------------
+Mon May 25 14:00:01 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- zdump --version reported "unknown" (boo#1172055)
+
+-------------------------------------------------------------------
+Fri Apr 24 07:53:09 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020a (bsc#1169582)
+  * Morocco springs forward on 2020-05-31, not 2020-05-24.
+  * Canada's Yukon advanced to -07 year-round on 2020-03-08.
+  * America/Nuuk renamed from America/Godthab.
+  * zic now supports expiration dates for leap second lists.
+
+-------------------------------------------------------------------
+Thu Sep 12 08:53:17 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2019c (bsc#1150451)
+  * Fiji observes DST from 2019-11-10 to 2020-01-12.
+  * Norfolk Island starts observing Australian-style DST.
+
+-------------------------------------------------------------------
+Tue Jul  2 08:05:24 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2019b (bsc#1140016):
+  * Brazil no longer observes DST.
+  * 'zic -b slim' outputs smaller TZif files.
+  * Palestine's 2019 spring-forward transition was on 03-29, 
+    not 03-30.
+  * Add info about the Crimea situation.
+
+-------------------------------------------------------------------
+Tue Mar 26 11:41:24 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2019a:
+  * Palestine "springs forward" on 2019-03-30 instead of 2019-03-23
+  * Metlakatla "fell back" to rejoin Alaska Time on 2019-01-20 at
+    02:00
+  * Israel observed DST in 1980 (08-02/09-13) and 1984 (05-05/08-25)
+  * zic now has an -r option to limit the time range of output data
+
+-------------------------------------------------------------------
+Fri Jan  4 09:38:47 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2018i (bsc#1120402)
+  * S??o Tom?? and Pr??ncipe switches from +01 to +00 on 2019-01-01.
+
+- timezone update 2018h
+  * Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21
+  * New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move
+  * Metlakatla, Alaska observes PST this winter only
+  * Guess Morocco will continue to adjust clocks around Ramadan
+  * Add predictions for Iran from 2038 through 2090
+
+-------------------------------------------------------------------
+Sat Oct 27 12:20:44 UTC 2018 - [email protected]
+
+- timezone update 2018g:
+  * Morocco switches to permanent +01 on 2018-10-27 (bsc#1113554)
+  * code fixes for zic on 32 bit
+
+-------------------------------------------------------------------
+Thu Oct 18 13:28:04 UTC 2018 - [email protected]
+
+- Avoid build failures of timezone-java with javazic SLE/Leap 15
+  by using an alternative notation for a 1948-1951 DST transition
+  in Japan. add timezone-2018f-bsc1112310.patch, fixes boo#1112310
+
+-------------------------------------------------------------------
+Thu Oct 18 07:56:09 UTC 2018 - [email protected]
+
+- timezone update 2018f:
+  * Volgograd moves from +03 to +04 on 2018-10-28.
+  * Fiji ends DST 2019-01-13, not 2019-01-20.
+  * Most of Chile changes DST dates, effective 2019-04-06
+    (bsc#1104700)
+  * Corrections to past timestamps of DST transitions
+  * Use "PST" and "PDT" for Philippine time
+  * minor code changes to zic handling of the TZif format
+  * documentation updates
+
+-------------------------------------------------------------------
+Tue May 22 15:45:39 UTC 2018 - [email protected]
+
+- in SLE 15 / Leap 15.0 yast2-country stopped setting TIMEZONE in
+  /etc/sysconfig/clock and called systemd timedatectl instead.
+  No longer set /etc/localtime on timezone package updates to
+  avoid setting an incorrect timezone. bsc#1093392
+
+-------------------------------------------------------------------
+Fri May  4 05:57:53 UTC 2018 - [email protected]
+
+- timezone update 2018e:
+  * North Korea switches back from +0830 to +09 on 2018-05-05.
+  * Ireland's standard time is in the summer, with negative DST
+    offset to standard time used in Winter (bsc#1073299)
+
+-------------------------------------------------------------------
+Sat Mar 24 07:58:38 UTC 2018 - [email protected]
+
+- timezone update 2018d (bsc#1086729):
+  * In 2018, Palestine starts DST on March 24, not March 31
+  * Casey Station in Antarctica changed from +11 to +08 on
+    2018-03-11 at 04:00
+  * corrections for historical transitions
+
+-------------------------------------------------------------------
+Fri Jan 19 08:56:37 UTC 2018 - [email protected]
+
+- timezone update 2018c:
+  * S??o Tom?? and Pr??ncipe switched from +00 to +01 on 2018-01-01
+  * Southern Brazil's DST will now start on November's first Sunday
+    (bsc#1073275)
+  * New zic option -t to specify the time zone file if TZ is unset
+
+-------------------------------------------------------------------
+Mon Oct 23 15:26:15 UTC 2017 - [email protected]
+
+- timezone update 2017c (bsc#1064571):
+  * Northern Cyprus switches from +03 to +02/+03 on 2017-10-29
+  * Fiji ends DST 2018-01-14, not 2018-01-21
+  * Namibia switches from +01/+02 to +02 on 2018-04-01
+  * Sudan switches from +03 to +02 on 2017-11-01
+  * Tonga likely switches from +13/+14 to +13 on 2017-11-05
+  * Turks & Caicos switches from -04 to -05/-04 on 2018-11-04
+  * corrections to past DST transitions
+  * Move oversized Canada/East-Saskatchewan to 'backward' file
+  * zic and the reference runtime now reject multiple leap seconds
+    within 28 days of each other, or leap seconds before the Epoch
+
+-------------------------------------------------------------------
+Sat Oct  7 23:38:39 UTC 2017 - [email protected]
+
+- Replace old RPM constructs by new equivalents.
+  Remove redundant %clean section.
+
+-------------------------------------------------------------------
+Fri Oct  6 12:20:02 UTC 2017 - [email protected]
+
+- Require simply java, since with the new version of javazic, it
+  is possible to generate the timezone information using any java
+  version
+
+-------------------------------------------------------------------
+Sat Sep 16 07:11:55 UTC 2017 - [email protected]
+
+- Do not require java-bootstrap, since it does not exist any more;
+  use java < 1.8 instead
+
+-------------------------------------------------------------------
+Wed Mar 22 08:17:32 UTC 2017 - [email protected]
+
+- timezone update 2017b:
+  * Haiti resumed observance of DST in 2017 (bsc#1030417)
+  * Liberia changed from -004430 to +00 on 1972-01-07, not 1972-05-01.
++++ 5456 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Leap:15.2:Update/.timezone.15582.new.28504/timezone-java.changes
New Changes file:

--- /dev/null   2021-01-11 18:20:20.070723563 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2:Update/.timezone.15582.new.28504/timezone.changes  
    2021-01-23 18:22:20.971937864 +0100
@@ -0,0 +1,5653 @@
+-------------------------------------------------------------------
+Tue Dec 29 20:58:56 UTC 2020 - Mark??ta Machov?? <[email protected]>
+
+- timezone update 2020f (bsc#1177460)
+  * 'make rearguard_tarballs' no longer generates a bad rearguard.zi,
+    fixing a 2020e bug.
+
+-------------------------------------------------------------------
+Wed Dec 23 06:55:02 UTC 2020 - Mark??ta Machov?? <[email protected]>
+
+- timezone update 2020e (bsc#1177460)
+  * Volgograd switches to Moscow time on 2020-12-27 at 02:00.
+
+-------------------------------------------------------------------
+Mon Nov  2 13:21:52 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Add fat.patch to generate "fat" timezone files (was default before 2020b)
+  bsc#1178346
+
+-------------------------------------------------------------------
+Thu Oct 22 07:34:04 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020d (bsc#1177460)
+  * Palestine ends DST earlier than predicted, on 2020-10-24.
+
+-------------------------------------------------------------------
+Mon Oct 19 09:29:56 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020c (bsc#1177460)
+  * Fiji starts DST later than usual, on 2020-12-20.
+
+-------------------------------------------------------------------
+Thu Oct  8 08:56:16 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020b (bsc#1177460)
+  * Revised predictions for Morocco's changes starting in 2023.
+  * Canada's Yukon changes to -07 on 2020-11-01, not 2020-03-08.
+  * Macquarie Island has stayed in sync with Tasmania since 2011.
+  * Casey, Antarctica is at +08 in winter and +11 in summer.
+  * zic no longer supports -y, nor the TYPE field of Rules.
+- Rebased timezone-2018f-bsc1112310.patch
+
+-------------------------------------------------------------------
+Mon May 25 14:00:01 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- zdump --version reported "unknown" (boo#1172055)
+
+-------------------------------------------------------------------
+Fri Apr 24 07:51:37 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- timezone update 2020a (bsc#1169582)
+  * Morocco springs forward on 2020-05-31, not 2020-05-24.
+  * Canada's Yukon advanced to -07 year-round on 2020-03-08.
+  * America/Nuuk renamed from America/Godthab.
+  * zic now supports expiration dates for leap second lists.
+
+-------------------------------------------------------------------
+Thu Sep 12 08:52:20 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2019c (bsc#1150451)
+  * Fiji observes DST from 2019-11-10 to 2020-01-12.
+  * Norfolk Island starts observing Australian-style DST.
+
+-------------------------------------------------------------------
+Tue Jul  2 08:02:43 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2019b (bsc#1140016):
+  * Brazil no longer observes DST.
+  * 'zic -b slim' outputs smaller TZif files.
+  * Palestine's 2019 spring-forward transition was on 03-29, 
+    not 03-30.
+  * Add info about the Crimea situation.
+
+-------------------------------------------------------------------
+Tue Mar 26 11:40:27 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2019a:
+  * Palestine "springs forward" on 2019-03-30 instead of 2019-03-23
+  * Metlakatla "fell back" to rejoin Alaska Time on 2019-01-20 at
+    02:00
+  * Israel observed DST in 1980 (08-02/09-13) and 1984 (05-05/08-25)
+  * zic now has an -r option to limit the time range of output data
+
+-------------------------------------------------------------------
+Fri Jan  4 09:35:04 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- timezone update 2018i (bsc#1120402)
+  * S??o Tom?? and Pr??ncipe switches from +01 to +00 on 2019-01-01.
+
+- timezone update 2018h 
+  * Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21
+  * New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move
+  * Metlakatla, Alaska observes PST this winter only
+  * Guess Morocco will continue to adjust clocks around Ramadan
+  * Add predictions for Iran from 2038 through 2090
+
+-------------------------------------------------------------------
+Sat Oct 27 12:20:44 UTC 2018 - [email protected]
+
+- timezone update 2018g:
+  * Morocco switches to permanent +01 on 2018-10-27 (bsc#1113554)
+  * code fixes for zic on 32 bit
+
+-------------------------------------------------------------------
+Thu Oct 18 13:28:04 UTC 2018 - [email protected]
+
+- Avoid build failures of timezone-java with javazic SLE/Leap 15
+  by using an alternative notation for a 1948-1951 DST transition
+  in Japan. add timezone-2018f-bsc1112310.patch, fixes boo#1112310
+
+-------------------------------------------------------------------
+Thu Oct 18 07:56:09 UTC 2018 - [email protected]
+
+- timezone update 2018f:
+  * Volgograd moves from +03 to +04 on 2018-10-28.
+  * Fiji ends DST 2019-01-13, not 2019-01-20.
+  * Most of Chile changes DST dates, effective 2019-04-06
+    (bsc#1104700)
+  * Corrections to past timestamps of DST transitions
+  * Use "PST" and "PDT" for Philippine time
+  * minor code changes to zic handling of the TZif format
+  * documentation updates
+
+-------------------------------------------------------------------
+Tue May 22 15:45:39 UTC 2018 - [email protected]
+
+- in SLE 15 / Leap 15.0 yast2-country stopped setting TIMEZONE in
+  /etc/sysconfig/clock and called systemd timedatectl instead.
+  No longer set /etc/localtime on timezone package updates to
+  avoid setting an incorrect timezone. bsc#1093392
+
+-------------------------------------------------------------------
+Fri May  4 05:57:53 UTC 2018 - [email protected]
+
+- timezone update 2018e:
+  * North Korea switches back from +0830 to +09 on 2018-05-05.
+  * Ireland's standard time is in the summer, with negative DST
+    offset to standard time used in Winter (bsc#1073299)
+
+-------------------------------------------------------------------
+Sat Mar 24 07:58:38 UTC 2018 - [email protected]
+
+- timezone update 2018d (bsc#1086729):
+  * In 2018, Palestine starts DST on March 24, not March 31
+  * Casey Station in Antarctica changed from +11 to +08 on
+    2018-03-11 at 04:00
+  * corrections for historical transitions
+
+-------------------------------------------------------------------
+Fri Jan 19 08:56:37 UTC 2018 - [email protected]
+
+- timezone update 2018c:
+  * S??o Tom?? and Pr??ncipe switched from +00 to +01 on 2018-01-01
+  * Southern Brazil's DST will now start on November's first Sunday
+    (bsc#1073275)
+  * New zic option -t to specify the time zone file if TZ is unset
+
+-------------------------------------------------------------------
+Mon Oct 23 15:26:15 UTC 2017 - [email protected]
+
+- timezone update 2017c (bsc#1064571):
+  * Northern Cyprus switches from +03 to +02/+03 on 2017-10-29
+  * Fiji ends DST 2018-01-14, not 2018-01-21
+  * Namibia switches from +01/+02 to +02 on 2018-04-01
+  * Sudan switches from +03 to +02 on 2017-11-01
+  * Tonga likely switches from +13/+14 to +13 on 2017-11-05
+  * Turks & Caicos switches from -04 to -05/-04 on 2018-11-04
+  * corrections to past DST transitions
+  * Move oversized Canada/East-Saskatchewan to 'backward' file
+  * zic and the reference runtime now reject multiple leap seconds
+    within 28 days of each other, or leap seconds before the Epoch
+
+-------------------------------------------------------------------
+Sat Oct  7 23:38:39 UTC 2017 - [email protected]
+
+- Replace old RPM constructs by new equivalents.
+  Remove redundant %clean section.
+
+-------------------------------------------------------------------
+Fri Oct  6 12:20:02 UTC 2017 - [email protected]
+
+- Require simply java, since with the new version of javazic, it
+  is possible to generate the timezone information using any java
+  version
+
+-------------------------------------------------------------------
+Sat Sep 16 07:11:55 UTC 2017 - [email protected]
+
+- Do not require java-bootstrap, since it does not exist any more;
+  use java < 1.8 instead
+
+-------------------------------------------------------------------
+Wed Mar 22 08:17:32 UTC 2017 - [email protected]
+
+- timezone update 2017b:
+  * Haiti resumed observance of DST in 2017 (bsc#1030417)
+  * Liberia changed from -004430 to +00 on 1972-01-07, not 1972-05-01.
++++ 5456 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Leap:15.2:Update/.timezone.15582.new.28504/timezone.changes

New:
----
  fat.patch
  iso3166-uk.diff
  pre_checkin.sh
  timezone-2018f-bsc1112310.patch
  timezone-java.changes
  timezone-java.keyring
  timezone-java.spec
  timezone-java.spec.in
  timezone.changes
  timezone.keyring
  timezone.spec
  tzcode2020f.tar.gz
  tzcode2020f.tar.gz.asc
  tzdata-china.diff
  tzdata2020f.tar.gz
  tzdata2020f.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ timezone-java.spec ++++++
#
# spec file for package timezone-java
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           timezone-java
BuildRequires:  java
BuildRequires:  javazic
BuildRequires:  tzdb
Summary:        Time Zone Descriptions
# COMMON-BEGIN
# COMMON-BEGIN
License:        BSD-3-Clause AND SUSE-Public-Domain
Group:          System/Base
Version:        2020f
Release:        0
Source:         
https://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz
Source1:        
https://www.iana.org/time-zones/repository/releases/tzcode%{version}.tar.gz
Source2:        
https://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz.asc
Source3:        
https://www.iana.org/time-zones/repository/releases/tzcode%{version}.tar.gz.asc
Source4:        %{name}.keyring
Source5:        %{name}.changes
Patch0:         tzdata-china.diff
Patch3:         iso3166-uk.diff
Patch4:         timezone-2018f-bsc1112310.patch
# COMMON-END
# COMMON-END
Url:            https://www.iana.org/time-zones
Requires(pre):  filesystem, coreutils
BuildArch:      noarch
Provides:       tzdata-java = %{version}-%{release}
Provides:       tzdata-java8 = %{version}-%{release}
#!BuildIgnore:  tzdata-java tzdata-java8
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
These are configuration files that describe available time zones - this
package is intended for Java Virtual Machine based on OpenJDK.



%prep
%setup -c  -a 1
# COMMON-PREP-BEGIN
# COMMON-PREP-BEGIN
%patch0 -p1
%patch3 -p1
%patch4 -p1
sed -ri 's@/usr/local/etc/zoneinfo@%{_datadir}/zoneinfo@g' *.[1358]
# COMMON-PREP-END
# COMMON-PREP-END

echo "tzdata%{version}" >> VERSION

%build
# Java 6/7 data
java -jar %{_javadir}/javazic.jar -V %{version} \
     -d javazi \
     africa antarctica asia australasia europe northamerica \
     southamerica backward etcetera  \
     %{_datadir}/javazic/tzdata_jdk/gmt \
     %{_datadir}/javazic/tzdata_jdk/jdk11_backward
# Java 8/9 data
java -jar %{_javadir}/tzdb.jar \
     -srcdir . -dstfile javazi/tzdb.dat \
     africa antarctica asia australasia europe northamerica \
     southamerica backward etcetera  \
     %{_datadir}/tzdb/tzdata_jdk/gmt \
     %{_datadir}/tzdb/tzdata_jdk/jdk11_backward

%install
install -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}
cp -a javazi $RPM_BUILD_ROOT%{_datadir}

%files
%defattr(-,root,root)
%{_datadir}/javazi

%changelog
++++++ timezone.spec ++++++
#
# spec file for package timezone
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           timezone
Summary:        Time Zone Descriptions
License:        BSD-3-Clause AND SUSE-Public-Domain
Group:          System/Base
Url:            http://www.iana.org/time-zones
PreReq:         filesystem, coreutils
# COMMON-BEGIN
Version:        2020f
Release:        0
Source:         
https://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz
Source1:        
https://www.iana.org/time-zones/repository/releases/tzcode%{version}.tar.gz
Source2:        
https://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz.asc
Source3:        
https://www.iana.org/time-zones/repository/releases/tzcode%{version}.tar.gz.asc
Source4:        %{name}.keyring
Source5:        %{name}.changes
Patch0:         tzdata-china.diff
Patch3:         iso3166-uk.diff
Patch4:         timezone-2018f-bsc1112310.patch
Patch5:         fat.patch
# COMMON-END
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%global AREA    Etc
%global ZONE    UTC

%description
These are configuration files that describe available time zones. You
can select an appropriate time zone for your system with YaST.



%prep
%setup -q -c -a 1
# COMMON-PREP-BEGIN
%patch0 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
sed -ri 's@/usr/local/etc/zoneinfo@%{_datadir}/zoneinfo@g' *.[1358]
# COMMON-PREP-END

# keep version number
touch version

%build
unset ${!LC_*}
LANG=POSIX
LC_ALL=POSIX
AREA=%{AREA}
ZONE=%{ZONE}
export AREA LANG LC_ALL ZONE
make %{?_smp_mflags} TZDIR=%{_datadir}/zoneinfo CFLAGS="%{optflags} 
-DHAVE_GETTEXT=1 -DTZDEFAULT='\"/etc/localtime\"' -DTM_GMTOFF=tm_gmtoff 
-DTM_ZONE=tm_zone -Dlint" AWK=awk
make %{?_smp_mflags} TZDIR=zoneinfo AWK=awk zones
# Generate posixrules
./zic -b fat -y ./yearistype -d zoneinfo -p %{AREA}/%{ZONE}

%install
mkdir -p %{buildroot}%{_prefix}/share/zoneinfo
cp -a zoneinfo %{buildroot}%{_prefix}/share/zoneinfo/posix
cp -al %{buildroot}%{_prefix}/share/zoneinfo/posix/. 
%{buildroot}%{_prefix}/share/zoneinfo
cp -a zoneinfo-leaps %{buildroot}%{_prefix}/share/zoneinfo/right
mkdir -p %{buildroot}/etc
rm -f  %{buildroot}/etc/localtime
rm -f  %{buildroot}%{_prefix}/share/zoneinfo/posixrules
%if 0%{?suse_version} >= 1230
ln -sf %{_prefix}/share/zoneinfo/%{AREA}/%{ZONE} %{buildroot}/etc/localtime
%else
cp -fp %{buildroot}%{_prefix}/share/zoneinfo/%{AREA}/%{ZONE} 
%{buildroot}/etc/localtime
%endif
ln -sf /etc/localtime      %{buildroot}%{_prefix}/share/zoneinfo/posixrules
install -m 644 iso3166.tab %{buildroot}%{_prefix}/share/zoneinfo/iso3166.tab
install -m 644 zone.tab    %{buildroot}%{_prefix}/share/zoneinfo/zone.tab
install -m 644 zone1970.tab %{buildroot}%{_prefix}/share/zoneinfo/zone1970.tab
install -D -m 755 tzselect %{buildroot}%{_bindir}/tzselect
install -D -m 755 zdump    %{buildroot}%{_sbindir}/zdump
install -D -m 755 zic      %{buildroot}%{_sbindir}/zic

%post
if [ ! -L /usr/share/zoneinfo/posixrules ]; then
   rm -f /usr/share/zoneinfo/posixrules
   ln -sf /etc/localtime /usr/share/zoneinfo/posixrules
fi
if [ -e /usr/share/zoneinfo/posixrules.rpmnew ]; then
   rm -f /usr/share/zoneinfo/posixrules.rpmnew
fi

%files
%defattr(-,root,root)
%verify(not link md5 size mtime) %config(missingok,noreplace) /etc/localtime
%verify(not link md5 size mtime) %{_datadir}/zoneinfo/posixrules
%{_datadir}/zoneinfo
%{_bindir}/tzselect
%{_sbindir}/zdump
%{_sbindir}/zic

%changelog
++++++ fat.patch ++++++
Index: timezone-2020d/Makefile
===================================================================
--- timezone-2020d.orig/Makefile
+++ timezone-2020d/Makefile
@@ -386,7 +386,7 @@ ZIC=                $(zic) $(ZFLAGS)
 # To grow the files and work around older application bugs, append "-b fat";
 # see ZIC_BLOAT_DEFAULT above.
 # See the zic man page for more about -b and -r.
-ZFLAGS=
+ZFLAGS=-b fat
 
 # How to use zic to install TZif files.
 
++++++ iso3166-uk.diff ++++++
Index: timezone-2016b/iso3166.tab
===================================================================
--- timezone-2016b.orig/iso3166.tab
+++ timezone-2016b/iso3166.tab
@@ -99,7 +99,7 @@ FM    Micronesia
 FO     Faroe Islands
 FR     France
 GA     Gabon
-GB     Britain (UK)
+GB     United Kingdom
 GD     Grenada
 GE     Georgia
 GF     French Guiana
++++++ pre_checkin.sh ++++++
#!/bin/bash
# This script is called automatically during autobuild checkin.

ln -f timezone.changes timezone-java.changes

for spec in timezone-java.spec; do
{ sed -n -e '1,/COMMON-BEGIN/p' $spec.in
  sed -n -e '/COMMON-BEGIN/,/COMMON-END/p' timezone.spec
  sed -n -e '/COMMON-END/,/COMMON-PREP-BEGIN/p' $spec.in
  sed -n -e '/COMMON-PREP-BEGIN/,/COMMON-PREP-END/p' timezone.spec
  sed -n -e '/COMMON-PREP-END/,$p' $spec.in; } > $spec.tmp && mv $spec.tmp $spec
done
++++++ timezone-2018f-bsc1112310.patch ++++++
From: Andreas Stieger <[email protected]>
References: https://bugzilla.suse.com/show_bug.cgi?id=1112310
Summary: avoid timezone-java build failures
Date: Thu, 18 Oct 2018 13:19:51 +0000

javazic is unable to parse the time zone data contained in 2018f:
https://github.com/eggert/tz/compare/2018e...2018f#diff-cffe819d4413b95dd8c35c0085930789R1656

- Rule  Japan   1948    1951    -       Sep     Sun>=9   0:00   0       S
+ Rule  Japan   1948    1951    -       Sep     Sat>=8  25:00   0       S

Base:System/timezone (timezone-java.spec) fails with:

[   16s] + java -jar /usr/share/java/tzdb.jar -srcdir . -dstfile 
javazi/tzdb.dat africa antarctica asia australasia europe northamerica 
pacificnew southamerica backward etcetera systemv 
/usr/share/tzdb/tzdata_jdk/gmt /usr/share/tzdb/tzdata_jdk/jdk11_backward
[   16s] Failed: java.lang.Exception: Failed while parsing file './asia' on 
line 1659 'Rule     Japan   1948    1951    -       Sep     Sat>=8 25:00    0   
    S'
[   16s] java.lang.Exception: Failed while parsing file './asia' on line 1659 
'Rule     Japan   1948    1951    -       Sep     Sat>=8  25:00  0S'

The bug is actually in Java. Use an alternative format to fix build.


Index: timezone-2020b/asia
===================================================================
--- timezone-2020b.orig/asia
+++ timezone-2020b/asia
@@ -2023,7 +2023,7 @@ Zone      Asia/Jerusalem  2:20:54 -       LMT     1880
 
 # Rule NAME    FROM    TO      -       IN      ON      AT      SAVE    LETTER/S
 Rule   Japan   1948    only    -       May     Sat>=1  24:00   1:00    D
-Rule   Japan   1948    1951    -       Sep     Sat>=8  25:00   0       S
+Rule   Japan   1948    1951    -       Sep     Sun>=9   1:00   0       S
 Rule   Japan   1949    only    -       Apr     Sat>=1  24:00   1:00    D
 Rule   Japan   1950    1951    -       May     Sat>=1  24:00   1:00    D
 
++++++ timezone-java.spec.in ++++++
#
# spec file for package timezone-java
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           timezone-java
BuildRequires:  java
BuildRequires:  javazic
BuildRequires:  tzdb
Summary:        Time Zone Descriptions
License:        BSD-3-Clause and SUSE-Public-Domain
Group:          System/Base
# COMMON-BEGIN
# COMMON-END
Url:            https://www.iana.org/time-zones
Requires(pre):  filesystem, coreutils
BuildArch:      noarch
Provides:       tzdata-java = %{version}-%{release}
Provides:       tzdata-java8 = %{version}-%{release}
#!BuildIgnore:  tzdata-java tzdata-java8
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
These are configuration files that describe available time zones - this
package is intended for Java Virtual Machine based on OpenJDK.



%prep
%setup -c  -a 1
# COMMON-PREP-BEGIN
# COMMON-PREP-END

echo "tzdata%{version}" >> VERSION

%build
# Java 6/7 data
java -jar %{_javadir}/javazic.jar -V %{version} \
     -d javazi \
     africa antarctica asia australasia europe northamerica pacificnew \
     southamerica backward etcetera systemv  \
     %{_datadir}/javazic/tzdata_jdk/gmt \
     %{_datadir}/javazic/tzdata_jdk/jdk11_backward
# Java 8/9 data
java -jar %{_javadir}/tzdb.jar \
     -srcdir . -dstfile javazi/tzdb.dat \
     africa antarctica asia australasia europe northamerica pacificnew \
     southamerica backward etcetera systemv  \
     %{_datadir}/tzdb/tzdata_jdk/gmt \
     %{_datadir}/tzdb/tzdata_jdk/jdk11_backward

%install
install -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}
cp -a javazi $RPM_BUILD_ROOT%{_datadir}

%files
%defattr(-,root,root)
%{_datadir}/javazi

%changelog
++++++ tzdata-china.diff ++++++
Index: timezone-2018f/asia
===================================================================
--- timezone-2018f.orig/asia    2018-10-03 02:21:28.000000000 +0200
+++ timezone-2018f/asia 2018-10-18 10:01:30.657962333 +0200
@@ -566,6 +566,10 @@ Rule       PRC     1987    1991    -       Apr     Sun>=11 
 2:00   1
 Zone   Asia/Shanghai   8:05:43 -       LMT     1901
                        8:00    Shang   C%sT    1949 May 28
                        8:00    PRC     C%sT
+
+# Nowadays, China Standard Time is known as "Beijing Time"
+Zone   Asia/Beijing    8:00    PRC     C%sT
+
 # Xinjiang time, used by many in western China; represented by ??r??mqi / 
??r??mchi
 # / Wulumuqi.  (Please use Asia/Shanghai if you prefer Beijing time.)
 Zone   Asia/Urumqi     5:50:20 -       LMT     1928
Index: timezone-2018f/backward
===================================================================
--- timezone-2018f.orig/backward        2018-07-16 19:16:52.000000000 +0200
+++ timezone-2018f/backward     2018-10-18 10:01:30.657962333 +0200
@@ -99,7 +99,7 @@ Link  America/Mexico_City     Mexico/General
 Link   Pacific/Auckland        NZ
 Link   Pacific/Chatham         NZ-CHAT
 Link   America/Denver          Navajo
-Link   Asia/Shanghai           PRC
+Link   Asia/Beijing            PRC
 Link   Pacific/Honolulu        Pacific/Johnston
 Link   Pacific/Pohnpei         Pacific/Ponape
 Link   Pacific/Pago_Pago       Pacific/Samoa
Index: timezone-2018f/zone.tab
===================================================================
--- timezone-2018f.orig/zone.tab        2018-06-27 20:24:09.000000000 +0200
+++ timezone-2018f/zone.tab     2018-10-18 10:01:30.657962333 +0200
@@ -145,6 +145,7 @@ CL  -3327-07040     America/Santiago        Chile (m
 CL     -5309-07055     America/Punta_Arenas    Region of Magallanes
 CL     -2709-10926     Pacific/Easter  Easter Island
 CM     +0403+00942     Africa/Douala
+CN     +3955+11626     Asia/Beijing    China Standard Time
 CN     +3114+12128     Asia/Shanghai   Beijing Time
 CN     +4348+08735     Asia/Urumqi     Xinjiang Time
 CO     +0436-07405     America/Bogota

Reply via email to