%bcond_with bootstrap Name: xz-java Version: 1.9 Release: %autorelease Summary: Java implementation of XZ data compression License: LicenseRef-Fedora-Public-Domain URL: https://tukaani.org/xz/java.html BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://tukaani.org/xz/xz-java-%{version}.zip %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: javapackages-local BuildRequires: ant %endif # TODO Remove in Fedora 46 Obsoletes: %{name}-javadoc < 1.9-25 %description A complete implementation of XZ data compression in Java. It features full support for the .xz file format specification version 1.0.4, single-threaded streamed compression and decompression, single-threaded decompression with limited random access support, raw streams (no .xz headers) for advanced users, including LZMA2 with preset dictionary. %prep %autosetup -p1 -C %mvn_file : %{name} xz %build # During documentation generation the upstream build.xml tries to download # package-list from oracle.com. Create a dummy package-list to prevent that. mkdir -p extdoc && touch extdoc/package-list %ant -Dsourcever=8 maven %install %mvn_artifact build/maven/xz-%{version}.pom build/jar/xz.jar %mvn_install %files -f .mfiles %doc README THANKS %license COPYING %changelog %autochangelog