[maven-reporting-api] Initial commit

Tomas Radej tradej at fedoraproject.org
Thu Jan 24 09:16:02 UTC 2013


commit c5a2c9934563fd5661181cd789131c171ff276b0
Author: Tomas Radej <tradej at redhat.com>
Date:   Thu Jan 24 10:15:51 2013 +0100

    Initial commit

 .gitignore               |    2 +
 maven-reporting-api.spec |   81 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    2 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2f8d383 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/maven-reporting-api-3.0.tar.xz
+/LICENSE-2.0.txt
diff --git a/maven-reporting-api.spec b/maven-reporting-api.spec
new file mode 100644
index 0000000..3be43e9
--- /dev/null
+++ b/maven-reporting-api.spec
@@ -0,0 +1,81 @@
+Name:           maven-reporting-api
+Version:        3.0
+Release:        1%{?dist}
+# Maven-shared defines maven-reporting-api version as 3.0
+Epoch:          1
+Summary:        API to manage report generation
+License:        ASL 2.0
+URL:            http://maven.apache.org/shared/maven-reporting-api
+# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-reporting-api-3.0 maven-reporting-api-3.0
+# tar caf maven-reporting-api-3.0.tar.xz maven-reporting-api-3.0/
+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:  maven
+Requires:       java
+Requires:       jpackage-utils
+Requires:       maven-doxia-sink-api
+
+Obsoletes:      maven-shared-reporting-api < %{epoch}:%{version}-%{release}
+Provides:       maven-shared-reporting-api = %{epoch}:%{version}-%{release}
+
+%description
+API to manage report generation. Maven-reporting-api is included in Maven 2.x
+core distribution, but moved to shared components to achieve report decoupling
+from Maven 3 core.
+
+This is a replacement package for maven-shared-reporting-api
+
+%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}
+
+# Previous package provides groupIds org.apache.maven.shared and org.apache.maven.reporting
+%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.apache.maven.shared:maven-reporting-api"
+
+%files
+%doc LICENSE.txt
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE.txt
+%doc %{_javadocdir}/%{name}
+
+
+%changelog
+* Thu Jan 17 2013 Tomas Radej <tradej at redhat.com> - 1:3.0-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..88cc8a1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+ca1cee73f867c382f80d6ab19f14c825  maven-reporting-api-3.0.tar.xz
+3b83ef96387f14655fc854ddc3c6bd57  LICENSE-2.0.txt


More information about the scm-commits mailing list