Name: maven-reporting-impl Version: 2.2 Release: 1%{?dist} Summary: Abstract classes to manage report generation License: ASL 2.0 URL: http://maven.apache.org/shared/maven-reporting-impl # svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-reporting-impl-2.2 maven-reporting-impl-2.2 # tar caf maven-reporting-impl-2.2.tar.xz maven-reporting-impl-2.2/ 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 BuildRequires: jpackage-utils BuildRequires: junit BuildRequires: junit-addons BuildRequires: maven BuildRequires: maven-surefire-provider-junit Requires: apache-commons-validator Requires: java Requires: jpackage-utils Requires: maven Requires: maven-doxia Requires: maven-doxia-sink-api Requires: maven-doxia-sitetools Requires: maven-project Requires: maven-shared-reporting-api Requires: plexus-utils Obsoletes: maven-shared-reporting-impl < %{version}-%{release} Provides: maven-shared-reporting-impl = %{version}-%{release} %description Abstract classes to manage report generation, which can be run both: * as part of a site generation (as a maven-reporting-api's MavenReport), * or as a direct standalone invocation (as a maven-plugin-api's Mojo). This is a replacement package for maven-shared-reporting-impl %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q cp %{SOURCE1} LICENSE.txt %build mvn-rpmbuild package javadoc:aggregate %install # JAR install -Ddm 755 %{buildroot}/%{_javadir} install -Dpm 644 target/%{name}-%{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 * Fri Jan 11 2013 Tomas Radej - 2.2-1 - Initial version