%global pkg_version 1.0-alpha-2 Name: maven-repository-builder Version: 1.0 # See http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Package_Versioning Release: 0.2.alpha2%{?dist} # Maven-shared defines maven-repository-builder version as 1.0 Epoch: 1 Summary: Maven repository builder License: ASL 2.0 URL: http://maven.apache.org/shared/maven-repository-builder/ # svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-repository-builder-1.0-alpha-2 maven-repository-builder-1.0-alpha-2 # tar caf maven-repository-builder-1.0-alpha-2.tar.xz maven-repository-builder-1.0-alpha-2/ Source0: %{name}-%{pkg_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: easymock BuildRequires: java-devel BuildRequires: junit BuildRequires: maven-local BuildRequires: maven-surefire-provider-junit BuildRequires: maven-test-tools BuildRequires: maven-wagon Obsoletes: maven-shared-repository-builder < %{epoch}:%{version}-%{release} Provides: maven-shared-repository-builder = %{epoch}:%{version}-%{release} %description Maven repository builder. This is a replacement package for maven-shared-repository-builder %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %setup -q -n %{name}-%{pkg_version} # Replace plexus-maven-plugin with plexus-component-metadata find -name 'pom.xml' -exec sed \ -i 's/plexus-maven-plugin<\/artifactId>/plexus-component-metadata<\/artifactId>/' '{}' ';' find -name 'pom.xml' -exec sed \ -i 's/descriptor<\/goal>/generate-metadata<\/goal>/' '{}' ';' find -iname '*.jar' -delete cp %{SOURCE1} LICENSE.txt %build %mvn_build -f %install %mvn_install %files -f .mfiles %doc LICENSE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Fri Feb 08 2013 Tomas Radej - 1:1.0-0.2.alpha2 - Removed bundled JAR - Building the new way * Fri Jan 11 2013 Tomas Radej - 1:1.0-0.1.alpha2 - Initial version