2020-04-15 18:09:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package timezone-java
|
|
|
|
#
|
2023-01-24 09:25:52 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-04-15 18:09:50 +02:00
|
|
|
#
|
|
|
|
# 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 https://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
|
2021-10-04 11:13:45 +02:00
|
|
|
# COMMON-BEGIN
|
|
|
|
# COMMON-BEGIN
|
- update to 2023d:
* Ittoqqortoormiit, Greenland changes time zones on
2024-03-31.
* Vostok, Antarctica changed time zones on 2023-12-18.
* Casey, Antarctica changed time zones five times since
2020.
* Code and data fixes for Palestine timestamps starting in
2072.
* A new data file zonenow.tab for timestamps starting now.
* Fix predictions for DST transitions in Palestine in
2072-2075, correcting a typo introduced in 2023a.
* Vostok, Antarctica changed to +05 on 2023-12-18. It had
been at +07 (not +06) for years.
* Change data for Casey, Antarctica to agree with
timeanddate.com, by adding five time zone changes since 2020.
Casey is now at +08 instead of +11.
* Much of Greenland, represented by America/Nuuk, changed
its standard time from -03 to -02 on 2023-03-25, not on
2023-10-28.
* localtime.c no longer mishandles TZif files that contain
a single transition into a DST regime. Previously,
it incorrectly assumed DST was in effect before the transition
too.
* tzselect no longer creates temporary files.
* tzselect no longer mishandles the following:
* Spaces and most other special characters in BUGEMAIL,
PACKAGE, TZDIR, and VERSION.
* TZ strings when using mawk 1.4.3, which mishandles
regular expressions of the form /X{2,}/.
* ISO 6709 coordinates when using an awk that lacks the
OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=304
2023-12-27 12:49:56 +01:00
|
|
|
Version: 2023d
|
2020-04-15 18:09:50 +02:00
|
|
|
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
|
2022-06-09 15:10:13 +02:00
|
|
|
Source4: timezone.keyring
|
2020-04-15 18:09:50 +02:00
|
|
|
Source5: %{name}.changes
|
|
|
|
Patch0: tzdata-china.diff
|
|
|
|
Patch3: iso3166-uk.diff
|
|
|
|
Patch4: timezone-2018f-bsc1112310.patch
|
2021-10-04 11:13:45 +02:00
|
|
|
Patch5: fat.patch
|
2020-04-15 18:09:50 +02:00
|
|
|
# COMMON-END
|
|
|
|
# COMMON-END
|
2020-04-24 10:06:06 +02:00
|
|
|
URL: https://www.iana.org/time-zones
|
2020-04-15 18:09:50 +02:00
|
|
|
Requires(pre): filesystem, coreutils
|
|
|
|
Provides: tzdata-java = %{version}-%{release}
|
|
|
|
Provides: tzdata-java8 = %{version}-%{release}
|
|
|
|
#!BuildIgnore: tzdata-java tzdata-java8
|
2020-10-23 13:38:48 +02:00
|
|
|
BuildArch: noarch
|
2020-04-15 18:09:50 +02:00
|
|
|
|
|
|
|
%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
|
2021-10-04 11:13:45 +02:00
|
|
|
%patch5 -p1
|
2020-04-15 18:09:50 +02:00
|
|
|
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
|
2022-04-13 09:24:11 +02:00
|
|
|
java \
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java >= 9}%{!?pkg_vcmp:0}
|
|
|
|
--add-exports=java.base/sun.security.action=ALL-UNNAMED \
|
|
|
|
%endif
|
|
|
|
-jar %{_javadir}/javazic.jar -V %{version} \
|
2020-04-15 18:09:50 +02:00
|
|
|
-d javazi \
|
2020-10-19 11:42:27 +02:00
|
|
|
africa antarctica asia australasia europe northamerica \
|
2020-10-08 10:18:02 +02:00
|
|
|
southamerica backward etcetera \
|
2020-04-15 18:09:50 +02:00
|
|
|
%{_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 \
|
2020-10-19 11:42:27 +02:00
|
|
|
africa antarctica asia australasia europe northamerica \
|
2020-10-08 10:18:02 +02:00
|
|
|
southamerica backward etcetera \
|
2020-04-15 18:09:50 +02:00
|
|
|
%{_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
|