85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
Name: maven-shared-utils
|
|
Version: 0.2
|
|
Release: 3%{?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-local
|
|
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
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0.2-2
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
* Wed Jan 16 2013 Tomas Radej <tradej@redhat.com> - 0.2-1
|
|
- Initial version
|
|
|