From 0234e3805704549fb87cdda8bd70a70abcdb7363 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Tue, 23 Oct 2012 11:34:36 +0100 Subject: [PATCH] Add maven pom and depmap --- jzlib.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/jzlib.spec b/jzlib.spec index af9d228..ec35524 100644 --- a/jzlib.spec +++ b/jzlib.spec @@ -30,7 +30,7 @@ Name: jzlib Version: 1.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 0 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 BuildArch: noarch -BuildRequires: jpackage-utils >= 0:1.6 +BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: maven-resources-plugin Requires: java @@ -90,18 +90,28 @@ cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} install -dm 755 $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 -%{_javadir}/*.jar +%{_javadir}/%{name}.jar +%{_mavenpomdir}/JPP-%{name}.pom +%{_mavendepmapfragdir}/%{name} %doc LICENSE.txt %files javadoc -%doc %{_javadocdir}/%{name} +%{_javadocdir}/%{name} %doc LICENSE.txt %files demo %doc %{_datadir}/%{name} %changelog +* Tue Oct 23 2012 Mat Booth 0:1.1.0-2 +- Add maven pom and depmap rhbz #806572. + * Fri Jan 13 2012 Alexander Kurtakov 0:1.1.0-1 - Update to upstream 1.1.0 release.