124 lines
3.7 KiB
RPMSpec
124 lines
3.7 KiB
RPMSpec
Name: maven-dependency-plugin
|
|
Version: 2.3
|
|
Release: 3%{?dist}
|
|
Summary: Plugin to manipulate, copy and unpack local and remote artifacts
|
|
|
|
Group: Development/Libraries
|
|
License: ASL 2.0
|
|
URL: http://maven.apache.org/plugins/%{name}
|
|
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
|
Patch0: 0001-Add-setThreshold-stub.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: plexus-utils
|
|
BuildRequires: ant
|
|
BuildRequires: asm2
|
|
BuildRequires: maven
|
|
BuildRequires: maven-install-plugin
|
|
BuildRequires: maven-compiler-plugin
|
|
BuildRequires: maven-plugin-plugin
|
|
BuildRequires: maven-resources-plugin
|
|
BuildRequires: maven-surefire-plugin
|
|
BuildRequires: maven-surefire-provider-junit
|
|
BuildRequires: maven-jar-plugin
|
|
BuildRequires: maven-javadoc-plugin
|
|
BuildRequires: maven-shared-dependency-analyzer
|
|
BuildRequires: maven-shared-dependency-tree
|
|
BuildRequires: maven-shared-common-artifact-filters
|
|
BuildRequires: maven-shared-file-management
|
|
BuildRequires: maven-project
|
|
BuildRequires: maven-artifact-manager
|
|
BuildRequires: maven-plugin-testing-tools
|
|
|
|
Requires: maven
|
|
Requires: jpackage-utils
|
|
Requires: java
|
|
Requires: maven-shared-common-artifact-filters
|
|
Requires: maven-shared-dependency-analyzer
|
|
Requires: maven-shared-file-management
|
|
Requires: maven-project
|
|
Requires: maven-artifact-manager
|
|
|
|
Obsoletes: maven2-plugin-dependency <= 0:2.0.8
|
|
Provides: maven2-plugin-dependency = 1:%{version}-%{release}
|
|
|
|
%description
|
|
|
|
The dependency plugin provides the capability to manipulate
|
|
artifacts. It can copy and/or unpack artifacts from local or remote
|
|
repositories to a specified location.
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: API documentation for %{name}
|
|
Requires: jpackage-utils
|
|
|
|
%description javadoc
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
sed -i \
|
|
's:org.codehaus.classworlds.ClassRealm:org.codehaus.plexus.classworlds.realm.ClassRealm:' \
|
|
src/test/java/org/apache/maven/plugin/dependency/its/AbstractDependencyPluginITCase.java
|
|
|
|
|
|
%build
|
|
mvn-rpmbuild -Dmaven.test.failure.ignore=true \
|
|
install javadoc:javadoc
|
|
|
|
%install
|
|
# jars
|
|
install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# poms
|
|
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
|
# javadoc
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%files
|
|
%{_javadir}/%{name}.jar
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* Fri Jan 13 2012 Alexander Kurtakov <akurtako@redhat.com> 2.3-3
|
|
- Add missing BR.
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Jul 11 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3-1
|
|
- Update to latest upstream
|
|
|
|
* Tue Jun 28 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2-2
|
|
- BR/R maven-shared-file-management.
|
|
|
|
* Tue Apr 26 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2-1
|
|
- Update to 2.2 final release.
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-0.4.svn949573
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Sep 7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-0.3.svn949573
|
|
- Fix test case to expect new classworlds
|
|
|
|
* Tue Jun 15 2010 Alexander Kurtakov <akurtako@redhat.com> 2.2-0.2.svn949573
|
|
- Add missing Requires.
|
|
|
|
* Thu Jun 3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-0.1.svn949573
|
|
- Initial package
|