2019-01-09 09:45:23 +01:00
|
|
|
#
|
|
|
|
# spec file for package xz-java
|
|
|
|
#
|
2023-09-21 08:43:14 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-01-09 09:45:23 +01:00
|
|
|
# Copyright (c) 2013 Peter Conrad
|
|
|
|
#
|
|
|
|
# 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: xz-java
|
2022-12-13 16:12:22 +01:00
|
|
|
Version: 1.9
|
2019-01-09 09:45:23 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Pure Java implementation of XZ compression
|
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Group: Development/Libraries/Java
|
2022-12-13 16:12:22 +01:00
|
|
|
URL: https://tukaani.org/xz/java.html
|
2019-01-09 09:45:23 +01:00
|
|
|
Source: http://tukaani.org/xz/xz-java-%{version}.zip
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: java-devel >= 1.8
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: unzip
|
2019-02-13 13:48:23 +01:00
|
|
|
Provides: java-xz
|
|
|
|
Obsoletes: java-xz
|
2022-12-13 16:12:22 +01:00
|
|
|
BuildArch: noarch
|
2019-01-09 09:45:23 +01:00
|
|
|
|
|
|
|
%description
|
2019-01-26 22:45:07 +01:00
|
|
|
This is an implementation of XZ data compression in pure Java.
|
2019-01-09 09:45:23 +01:00
|
|
|
Single-threaded streamed compression and decompression and random access
|
2019-01-26 22:45:07 +01:00
|
|
|
decompression have been implemented.
|
2019-01-09 09:45:23 +01:00
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation of Java XZ compression library
|
2019-01-26 22:45:07 +01:00
|
|
|
Group: Documentation/HTML
|
2019-01-09 09:45:23 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation of xz-java.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{name}
|
|
|
|
|
|
|
|
%build
|
|
|
|
sed -i 's/linkoffline="[^"]*"//;/extdoc_/d' build.xml
|
2023-09-21 08:43:14 +02:00
|
|
|
sed -i 's/sourcever = 7/sourcever = 8/g' build.properties
|
2022-12-13 16:12:22 +01:00
|
|
|
ant -Dant.build.javac.{source,target}=8 clean jar doc maven
|
2019-01-09 09:45:23 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
|
|
install -pm 0644 build/maven/xz-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && ln -s %{name}.jar xz.jar)
|
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 0644 build/maven/xz-%{version}.pom %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
|
|
# javadoc
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/doc/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license COPYING
|
2023-09-21 08:43:14 +02:00
|
|
|
%doc NEWS README THANKS whatever
|
2019-01-09 09:45:23 +01:00
|
|
|
%{_javadir}/xz.jar
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|