From a5e6bc6d83422f58a095ff0e99243ac721f6ad79 Mon Sep 17 00:00:00 2001 From: Tomas Radej Date: Jan 24 2013 08:24:34 +0000 Subject: Initial commit --- diff --git a/.gitignore b/.gitignore index e69de29..259e4f0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/maven-reporting-impl-2.2.tar.xz +/LICENSE-2.0.txt diff --git a/maven-reporting-impl.spec b/maven-reporting-impl.spec new file mode 100644 index 0000000..b2d69ef --- /dev/null +++ b/maven-reporting-impl.spec @@ -0,0 +1,89 @@ +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 + diff --git a/sources b/sources index e69de29..7d52274 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +192539fc9b82a9c89b48eeed15e71179 maven-reporting-impl-2.2.tar.xz +3b83ef96387f14655fc854ddc3c6bd57 LICENSE-2.0.txt