2020-04-15 18:09:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package timezone-java
|
|
|
|
#
|
2022-03-17 10:19:04 +01:00
|
|
|
# Copyright (c) 2022 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.
|
|
|
|
|
2020-10-23 13:38:48 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-04-15 18:09:50 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: timezone-java
|
|
|
|
BuildRequires: java
|
|
|
|
BuildRequires: javazic
|
|
|
|
BuildRequires: tzdb
|
|
|
|
Summary: Time Zone Descriptions
|
2020-10-23 13:38:48 +02:00
|
|
|
License: BSD-3-Clause AND SUSE-Public-Domain
|
2020-04-15 18:09:50 +02:00
|
|
|
Group: System/Base
|
|
|
|
# COMMON-BEGIN
|
|
|
|
# COMMON-END
|
2020-10-23 13:38:48 +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-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-23 13:38:48 +02:00
|
|
|
africa antarctica asia australasia europe northamerica \
|
|
|
|
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-23 13:38:48 +02:00
|
|
|
africa antarctica asia australasia europe northamerica \
|
|
|
|
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
|