diff --git a/1.1.3.tar.gz b/1.1.3.tar.gz new file mode 100644 index 0000000..464148b Binary files /dev/null and b/1.1.3.tar.gz differ diff --git a/jzlib.spec b/jzlib.spec new file mode 100644 index 0000000..ea81db7 --- /dev/null +++ b/jzlib.spec @@ -0,0 +1,64 @@ +Name: jzlib +Version: 1.1.3 +Release: 11 +Epoch: 0 +Summary: A re-implementation of zlib in pure Java +License: BSD +URL: http://www.jcraft.com/jzlib/ +Source0: https://github.com/ymnk/jzlib/archive/%{version}.tar.gz + +BuildArch: noarch +BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) + +%description +The zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered +by any patents -- lossless data-compression library for use on virtually any computer hardware and +operating system. The zlib was written by Jean-loup Gailly (compression) and Mark Adler (decompression). + +%package help +Summary: API documentation for jzlib package +Provides: %{name}-javadoc = %{epoch}:%{version}-%{release} +Obsoletes: %{name}-javadoc < %{epoch}:%{version}-%{release} + + +%description help +API documentation for jzlib package. + +%package devel +Summary: Examples for jzlib package +Requires: %{name} = %{epoch}:%{version}-%{release} +Provides: %{name}-demo = %{epoch}:%{version}-%{release} +Obsoletes: %{name}-demo < %{epoch}:%{version}-%{release} + +%description devel +Examples for jzlib package. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%pom_xpath_inject "pom:project" "bundle" +%pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "true" + +%mvn_file : jzlib + +%build +%mvn_build + +%install +%mvn_install + +install -dm 755 %{buildroot}%{_datadir}/jzlib +cp -r -p example/* %{buildroot}%{_datadir}/jzlib + +%files -f .mfiles +%doc LICENSE.txt + +%files help -f .mfiles-javadoc +%doc LICENSE.txt + +%files devel +%doc %{_datadir}/jzlib + +%changelog +* Fri Jan 17 2020 Jiangping Hu - 0:1.1.3-11 +- Package init