119 lines
3.5 KiB
RPMSpec
119 lines
3.5 KiB
RPMSpec
Name: maven-dependency-plugin
|
|
Version: 2.2
|
|
Release: 0.2.svn949573%{?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}
|
|
# we are not using release tag 2.1 because last release has problems with
|
|
# our dependencies and there are 2 outstanding bugs before 2.2 release.
|
|
# svn export -r 949573 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plugin maven-dependency-plugin-2.2
|
|
# tar caf maven-dependency-plugin-2.2.tar.xz maven-dependency-plugin-2.2
|
|
Source0: %{name}-%{version}.tar.xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: plexus-utils
|
|
BuildRequires: ant-nodeps
|
|
BuildRequires: asm2
|
|
BuildRequires: maven2
|
|
BuildRequires: maven-install-plugin
|
|
BuildRequires: maven-compiler-plugin
|
|
BuildRequires: maven-plugin-plugin
|
|
BuildRequires: maven-resources-plugin
|
|
BuildRequires: maven-surefire-maven-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
|
|
Requires: maven2
|
|
Requires: jpackage-utils
|
|
Requires: java
|
|
Requires: maven-shared-common-artifact-filters
|
|
Requires: maven-shared-dependency-analyzer
|
|
Requires(post): jpackage-utils
|
|
Requires(postun): jpackage-utils
|
|
|
|
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 #You may need to update this according to your Source0
|
|
|
|
%build
|
|
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
# tests failures are ignored because they are failing in jpp mode
|
|
# Need more time to investigate/fix this
|
|
mvn-jpp \
|
|
-e \
|
|
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
-Dmaven.test.failure.ignore=true \
|
|
install javadoc:javadoc
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
# jars
|
|
install -Dpm 644 target/%{name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \
|
|
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
|
%add_to_maven_depmap org.apache.maven.plugins %{name} %{version} JPP %{name}
|
|
|
|
# poms
|
|
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
# javadoc
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
|
rm -rf target/site/api*
|
|
|
|
%post
|
|
%update_maven_depmap
|
|
|
|
%postun
|
|
%update_maven_depmap
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_javadir}/*
|
|
%{_mavenpomdir}/*
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root,-)
|
|
%{_javadocdir}/%{name}-%{version}
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* 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
|