Add maven pom and depmap

This commit is contained in:
Mat Booth 2012-10-23 11:34:36 +01:00
parent 6f004931fb
commit 0234e38057

View File

@ -30,7 +30,7 @@
Name: jzlib Name: jzlib
Version: 1.1.0 Version: 1.1.0
Release: 1%{?dist} Release: 2%{?dist}
Epoch: 0 Epoch: 0
Summary: Re-implementation of zlib in pure Java Summary: Re-implementation of zlib in pure Java
@ -40,7 +40,7 @@ URL: http://www.jcraft.com/jzlib/
Source0: http://www.jcraft.com/jzlib/jzlib-%{version}.tar.gz Source0: http://www.jcraft.com/jzlib/jzlib-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: jpackage-utils >= 0:1.6 BuildRequires: jpackage-utils
BuildRequires: maven BuildRequires: maven
BuildRequires: maven-resources-plugin BuildRequires: maven-resources-plugin
Requires: java Requires: java
@ -90,18 +90,28 @@ cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name} install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr example/* $RPM_BUILD_ROOT%{_datadir}/%{name} cp -pr example/* $RPM_BUILD_ROOT%{_datadir}/%{name}
# pom
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar
%files %files
%{_javadir}/*.jar %{_javadir}/%{name}.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%doc LICENSE.txt %doc LICENSE.txt
%files javadoc %files javadoc
%doc %{_javadocdir}/%{name} %{_javadocdir}/%{name}
%doc LICENSE.txt %doc LICENSE.txt
%files demo %files demo
%doc %{_datadir}/%{name} %doc %{_datadir}/%{name}
%changelog %changelog
* Tue Oct 23 2012 Mat Booth <fedora@matbooth.co.uk> 0:1.1.0-2
- Add maven pom and depmap rhbz #806572.
* Fri Jan 13 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.0-1 * Fri Jan 13 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.0-1
- Update to upstream 1.1.0 release. - Update to upstream 1.1.0 release.