From 9e2a5ac017ef2e9d774b3ba361a2dced4908ee82 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Mon, 14 Jun 2010 06:12:36 +0000 Subject: [PATCH] Initial import of maven-dependency-plugin --- .cvsignore | 1 + import.log | 1 + maven-dependency-plugin.spec | 113 +++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 116 insertions(+) create mode 100644 import.log create mode 100644 maven-dependency-plugin.spec diff --git a/.cvsignore b/.cvsignore index e69de29..5d30e15 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +maven-dependency-plugin-2.2.tar.xz diff --git a/import.log b/import.log new file mode 100644 index 0000000..b00cd2e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +maven-dependency-plugin-2_2-0_1_svn949573_fc13:HEAD:maven-dependency-plugin-2.2-0.1.svn949573.fc13.src.rpm:1276495877 diff --git a/maven-dependency-plugin.spec b/maven-dependency-plugin.spec new file mode 100644 index 0000000..a968712 --- /dev/null +++ b/maven-dependency-plugin.spec @@ -0,0 +1,113 @@ +Name: maven-dependency-plugin +Version: 2.2 +Release: 0.1.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(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 +* Thu Jun 3 2010 Stanislav Ochotnicky - 2.2-0.1.svn949573 +- Initial package diff --git a/sources b/sources index e69de29..09db71a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +040ef38f8633b11ca0cf8fe63eb1f2a5 maven-dependency-plugin-2.2.tar.xz