diff --git a/jzlib.changes b/jzlib.changes index 93f66bb..e70829a 100644 --- a/jzlib.changes +++ b/jzlib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 23 07:20:13 UTC 2019 - Fridrich Strba + +- Build the jar file as an eclipse bundle +- Build and package the javadoc again + ------------------------------------------------------------------- Sun Nov 25 17:24:33 UTC 2018 - Fridrich Strba diff --git a/jzlib.spec b/jzlib.spec index 870b375..dbb9406 100644 --- a/jzlib.spec +++ b/jzlib.spec @@ -1,7 +1,7 @@ # # spec file for package jzlib # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,14 +22,13 @@ Release: 0 Summary: Re-implementation of zlib in pure Java License: BSD-3-Clause Group: Development/Libraries/Java -Url: http://www.jcraft.com/jzlib/ +URL: http://www.jcraft.com/jzlib/ Source0: https://github.com/ymnk/jzlib/archive/%{version}.tar.gz Source1: %{name}_build.xml BuildRequires: ant >= 1.6 +BuildRequires: fdupes BuildRequires: java-devel BuildRequires: javapackages-local -Obsoletes: %{name}-javadoc -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description @@ -46,6 +45,13 @@ Group: Development/Libraries/Java %description demo Demo files for %{summary}. +%package javadoc +Summary: API documentation for %{name} +Group: Documentation/HTML + +%description javadoc +%{summary}. + %prep %setup -q cp %{SOURCE1} build.xml @@ -55,13 +61,11 @@ cp %{SOURCE1} build.xml rm misc/mindtermsrc-v121-compression.patch %build -ant \ - -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ - dist +%{ant} jar javadoc %install # jar -install -Dpm 644 dist/lib/%{name}.jar \ +install -Dpm 644 target/%{name}-%{version}.jar \ %{buildroot}%{_javadir}/%{name}.jar # pom @@ -72,16 +76,23 @@ install -Dpm 644 pom.xml \ # examples install -dm 755 %{buildroot}%{_datadir}/%{name}-%{version} cp -pr example/* %{buildroot}%{_datadir}/%{name}-%{version} +%fdupes -s %{buildroot}%{_datadir}/%{name}-%{version} -%files +# javadoc +install -dm 755 %{buildroot}%{_javadocdir}/%{name} +cp -r target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir}/%{name} + +%files -f .mfiles %defattr(0644,root,root,0755) -%{_javadir}/%{name}.jar -%{_mavenpomdir}/%{name}.pom -%{_datadir}/maven-metadata/%{name}.xml -%doc LICENSE.txt +%license LICENSE.txt %files demo %defattr(0644,root,root,0755) %doc %{_datadir}/%{name}-%{version} +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE.txt + %changelog diff --git a/jzlib_build.xml b/jzlib_build.xml index 9bd5506..3c68b82 100644 --- a/jzlib_build.xml +++ b/jzlib_build.xml @@ -1,51 +1,113 @@ - - -JZlib is a re-implementation of zlib in pure Java. -The first and final aim for hacking this stuff is -to add the packet compression support to pure Java SSH systems. - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + - - - - - + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + +