Sync from SUSE:SLFO:Main tzdb revision 4698b0ac7763572fb3d41fa6f8b8583c

This commit is contained in:
Adrian Schröter 2024-05-04 01:33:28 +02:00
commit 2180e32605
4 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
tzdb-1.8-37392f2f5d59.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

19
tzdb.changes Normal file
View File

@ -0,0 +1,19 @@
-------------------------------------------------------------------
Tue Oct 31 22:29:59 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Build with source/target 8 when using JDK that does not support
level 7
-------------------------------------------------------------------
Sat Sep 16 07:16:33 UTC 2017 - fstrba@suse.com
- Don't require java-bootstrap-devel any more; require instead
java-devel >= 1.7
- BuildIgnore timezone-java to avoid build cycles
-------------------------------------------------------------------
Tue Nov 18 10:46:37 UTC 2014 - fstrba@suse.com
- Initial package tzdb to generate timezone databases needed by
java >= 1.8.0

63
tzdb.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package tzdb
#
# Copyright (c) 2023 SUSE LLC
#
# 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: tzdb
Version: 1.8
Release: 0
Summary: Time zone rules compiler Java
License: GPL-2.0-with-classpath-exception
Group: Development/Libraries/Java
URL: http://icedtea.classpath.org
Source0: tzdb-%{version}-37392f2f5d59.tar.xz
BuildRequires: java-devel >= 1.7
BuildRequires: xz
BuildArch: noarch
%description
This is a time zone rules compiler for opensource Java Virtual Machine
derived from openjdk8 source code.
%prep
%setup -q %{name}-%{version}
%build
javac \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 18}%{!?pkg_vcmp:0}
-source 8 -target 8 \
%else
-source 7 -target 7 \
%endif
$(find build/ -iname '*.java')
echo "Main-Class: build.tools.tzdb.TzdbZoneRulesCompiler" > manifest.txt
jar -cfm %{name}-%{version}.jar manifest.txt $(find . -iname '*.class')
%install
# skip /usr/lib/rpm/brp-check-bytecode-version:
export NO_BRP_CHECK_BYTECODE_VERSION=true
install -d -m 0755 %{buildroot}/%{_javadir}
install -m 0644 %{name}-%{version}.jar %{buildroot}/%{_javadir}/
# jars
(cd %{buildroot}%{_javadir}/ && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}
cp -rp tzdata_jdk %{buildroot}/%{_datadir}/%{name}/
%files
%{_javadir}/%{name}*.jar
%{_datadir}/%{name}
%changelog