From 086b7d7e5be059cebf8a9b59e6a9629a47e2a6022abfe5e4ee80528836d7660c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 13:58:50 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main javazic revision a18b93b8bae6edc910711312b71f2fef --- .gitattributes | 23 +++++++++++++++++++ javazic.changes | 37 ++++++++++++++++++++++++++++++ javazic.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ javazic.tar.gz | 3 +++ 4 files changed, 124 insertions(+) create mode 100644 .gitattributes create mode 100644 javazic.changes create mode 100644 javazic.spec create mode 100644 javazic.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/javazic.changes b/javazic.changes new file mode 100644 index 0000000..6288d8c --- /dev/null +++ b/javazic.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Tue Oct 31 22:29:59 UTC 2023 - Fridrich Strba + +- Build with source/target 8 when using JDK that does not support + level 7 + +------------------------------------------------------------------- +Fri Apr 8 13:48:45 UTC 2022 - Fridrich Strba + +- Removed patch: + * javazic-fixup.patch + + not needed any more + +------------------------------------------------------------------- +Thu Oct 18 09:41:04 UTC 2018 - Fridrich Strba + +- Update the sources with the recent versions from jdk7u tree +- Build with source/target 7 + +------------------------------------------------------------------- +Mon Oct 2 14:02:52 UTC 2017 - fstrba@suse.com + +- Move the sun.util.calendar to sun.whatever.calendar in order to + avoid clash with internal java classes that have different + interface in jdk8+ + +------------------------------------------------------------------- +Tue May 8 07:31:14 UTC 2012 - cfarrell@suse.com + +- license update: GPL-2.0-with-classpath-exception + SPDX syntax + +------------------------------------------------------------------- +Wed Sep 10 11:07:14 CEST 2008 - mvyskocil@suse.cz + +- Initial packaging of javazic (used for timezone-java package) + diff --git a/javazic.spec b/javazic.spec new file mode 100644 index 0000000..1988263 --- /dev/null +++ b/javazic.spec @@ -0,0 +1,61 @@ +# +# spec file for package javazic +# +# 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: javazic +# javazic source codes comes from jdk7u/jdk mercurial +Version: 1.7.0 +Release: 0 +Summary: A time zone compiler for Java +License: GPL-2.0-with-classpath-exception +Group: Development/Libraries/Java +URL: https://icedtea.classpath.org +Source0: javazic.tar.gz +BuildRequires: java-devel >= 1.7 +BuildArch: noarch + +%description +This is a time zone compiler for opensource Java Virtual Machine +derived from openjdk6 source code. + +%prep +%setup -q -c %{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.javazic.Main" > manifest.txt +jar -cfm %{name}-%{version}.jar manifest.txt $(find . -iname '*.class') + +%install +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 diff --git a/javazic.tar.gz b/javazic.tar.gz new file mode 100644 index 0000000..2e8665e --- /dev/null +++ b/javazic.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd4d6ccb11105255bf951cca0a2ce6a2294ee3e6d7236c82d9e68329aa7cfe73 +size 63620