Initial version
This commit is contained in:
parent
0790dde5f9
commit
5f20f06951
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/maven-shared-utils-0.2-source-release.zip
|
||||
77
maven-shared-utils.spec
Normal file
77
maven-shared-utils.spec
Normal file
@ -0,0 +1,77 @@
|
||||
Name: maven-shared-utils
|
||||
Version: 0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Maven shared utility classes
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/shared/maven-shared-utils
|
||||
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: apache-commons-lang3
|
||||
BuildRequires: apache-rat
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: junit
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-shade-plugin
|
||||
BuildRequires: maven-surefire-provider-junit
|
||||
Requires: apache-commons-io
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
Requires: jsr-305
|
||||
|
||||
%description
|
||||
This project aims to be a functional replacement for plexus-utils in Maven.
|
||||
|
||||
It is not a 100% API compatible replacement though but a replacement with
|
||||
improvements: lots of methods got cleaned up, generics got added and we dropped
|
||||
a lot of unused code.
|
||||
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
|
||||
|
||||
%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 NOTICE
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%doc LICENSE NOTICE
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 16 2013 Tomas Radej <tradej@redhat.com> - 0.2-1
|
||||
- Initial version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user