Group :: Desenvolvimento/Java
RPM: xz-java
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%bcond_with bootstrap
Name: xz-java
Version: 1.9
Release: alt1_3jpp11
Summary: Java implementation of XZ data compression
License: Public Domain
URL: http://tukaani.org/xz/java.html
BuildArch: noarch
Source0: http://tukaani.org/xz/xz-java-%{version}.zip
BuildRequires: javapackages-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: ant
%endif
Source44: import.info
%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.
%package javadoc
Group: Development/Java
Summary: Javadocs for %{name}
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -c %{name}-%{version}
%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 -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 maven
%install
%mvn_artifact build/maven/xz-%{version}.pom build/jar/xz.jar
%mvn_install -J build/doc
%files -f .mfiles
%doc README THANKS
%doc --no-dereference COPYING
%files javadoc -f .mfiles-javadoc
%doc --no-dereference COPYING
%changelog
…
Todas as alterações você pod ver aqui
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%bcond_with bootstrap
Name: xz-java
Version: 1.9
Release: alt1_3jpp11
Summary: Java implementation of XZ data compression
License: Public Domain
URL: http://tukaani.org/xz/java.html
BuildArch: noarch
Source0: http://tukaani.org/xz/xz-java-%{version}.zip
BuildRequires: javapackages-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: ant
%endif
Source44: import.info
%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.
%package javadoc
Group: Development/Java
Summary: Javadocs for %{name}
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -c %{name}-%{version}
%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 -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 maven
%install
%mvn_artifact build/maven/xz-%{version}.pom build/jar/xz.jar
%mvn_install -J build/doc
%files -f .mfiles
%doc README THANKS
%doc --no-dereference COPYING
%files javadoc -f .mfiles-javadoc
%doc --no-dereference COPYING
%changelog
…
Todas as alterações você pod ver aqui