Initial commit
This commit is contained in:
parent
a19ebbb9de
commit
c5a2c99345
2
.gitignore
vendored
2
.gitignore
vendored
@ -0,0 +1,2 @@
|
||||
/maven-reporting-api-3.0.tar.xz
|
||||
/LICENSE-2.0.txt
|
||||
81
maven-reporting-api.spec
Normal file
81
maven-reporting-api.spec
Normal file
@ -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@redhat.com> - 1:3.0-1
|
||||
- Initial version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user