2008-09-24 16:55:33 +02:00
|
|
|
#
|
2017-10-06 10:54:45 +02:00
|
|
|
# spec file for package javazic
|
2008-09-24 16:55:33 +02:00
|
|
|
#
|
2023-10-31 23:31:41 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-09-24 16:55:33 +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.
|
|
|
|
|
2022-04-08 22:46:12 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-24 16:55:33 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: javazic
|
2022-04-08 22:46:12 +02:00
|
|
|
# javazic source codes comes from jdk7u/jdk mercurial
|
|
|
|
Version: 1.7.0
|
2017-10-06 10:54:45 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A time zone compiler for Java
|
|
|
|
License: GPL-2.0-with-classpath-exception
|
|
|
|
Group: Development/Libraries/Java
|
2022-04-08 22:46:12 +02:00
|
|
|
URL: https://icedtea.classpath.org
|
2008-09-24 16:55:33 +02:00
|
|
|
Source0: javazic.tar.gz
|
2022-04-08 22:46:12 +02:00
|
|
|
BuildRequires: java-devel >= 1.7
|
2017-10-06 10:54:45 +02:00
|
|
|
BuildArch: noarch
|
2008-09-24 16:55:33 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a time zone compiler for opensource Java Virtual Machine
|
|
|
|
derived from openjdk6 source code.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-10-31 23:31:41 +01:00
|
|
|
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')
|
2022-04-08 22:46:12 +02:00
|
|
|
echo "Main-Class: build.tools.javazic.Main" > manifest.txt
|
2017-10-06 10:54:45 +02:00
|
|
|
jar -cfm %{name}-%{version}.jar manifest.txt $(find . -iname '*.class')
|
2008-09-24 16:55:33 +02:00
|
|
|
|
|
|
|
%install
|
2017-10-06 10:54:45 +02:00
|
|
|
install -d -m 0755 %{buildroot}/%{_javadir}
|
|
|
|
install -m 0644 %{name}-%{version}.jar %{buildroot}/%{_javadir}/
|
2008-09-24 16:55:33 +02:00
|
|
|
# jars
|
2017-10-06 10:54:45 +02:00
|
|
|
(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}/
|
2008-09-24 16:55:33 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_javadir}/%{name}*.jar
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|