Package init
This commit is contained in:
parent
6feeea43ec
commit
71d644f0bf
BIN
1.1.3.tar.gz
Normal file
BIN
1.1.3.tar.gz
Normal file
Binary file not shown.
64
jzlib.spec
Normal file
64
jzlib.spec
Normal file
@ -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" "<packaging>bundle</packaging>"
|
||||
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "<extensions>true</extensions>"
|
||||
|
||||
%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 <hujp1985@foxmail.com> - 0:1.1.3-11
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user