%global pkgname file-management Name: maven-%{pkgname} Version: 1.2.1 Release: 4%{?dist} # Maven-shared defines file-management version as 1.2.2 Epoch: 1 Summary: Maven File Management API Group: Development/Libraries License: ASL 2.0 # URL is not working now, cached copy at http://web.archive.org/web/20121029070007/http://maven.apache.org/shared/file-management/ URL: http://maven.apache.org/shared/%{pkgname} # svn export http://svn.apache.org/repos/asf/maven/shared/tags/file-management-1.2.1 # tar caf maven-file-management-1.2.1.tar.xz file-management-1.2.1/ Source0: %{name}-%{version}.tar.xz # ASL mandates that the licence file be included in redistributed source Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-local BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit BuildRequires: modello Requires: java Requires: jpackage-utils Requires: maven Requires: plexus-containers-container-default Requires: plexus-utils Obsoletes: maven-shared-%{pkgname} < %{epoch}:%{version}-%{release} Provides: maven-shared-%{pkgname} = %{epoch}:%{version}-%{release} %description Provides a component for plugins to easily resolve project dependencies. This is a replacement package for maven-shared-file-management. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils Obsoletes: maven-shared-%{pkgname}-javadoc < %{epoch}:%{version}-%{release} Provides: maven-shared-%{pkgname}-javadoc = %{epoch}:%{version}-%{release} %description javadoc API documentation for %{name}. %prep %setup -q -n %{pkgname}-%{version} cp %{SOURCE1} LICENSE.txt # Need namespace for new version modello # Bug has been filed at http://jira.codehaus.org/browse/MSHARED-234 sed -i "s|||" src/main/mdo/fileset.mdo %build mvn-rpmbuild package javadoc:aggregate -Dmaven.test.failure.ignore %install # JAR install -Ddm 755 %{buildroot}/%{_javadir} install -Dpm 644 target/%{pkgname}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # POM install -Ddm 755 %{buildroot}/%{_mavenpomdir} install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # JavaDoc install -Ddm 755 %{buildroot}/%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %add_maven_depmap JPP-%{name}.pom %{name}.jar %files %doc LICENSE.txt %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %doc LICENSE.txt %doc %{_javadocdir}/%{name} %changelog * Wed Feb 06 2013 Java SIG - 1:1.2.1-4 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Fri Jan 18 2013 Tomas Radej - 1:1.2.1-3 - Added proper Provides/Obsoletes in javadoc - Fixed changelog entries * Mon Jan 14 2013 Tomas Radej - 1:1.2.1-2 - Added licence text - Changed maven target from install to package - Creating directories in Install * Wed Aug 08 2012 Tomas Radej - 1.2.1-1 - Initial version