From 3792c6cfbe8bf6cfcafbc870dedc6468827b1935 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: May 14 2010 08:53:34 +0000 Subject: Initial import. --- diff --git a/.cvsignore b/.cvsignore index e69de29..4c94900 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +maven-clean-plugin-2.4.1.tar.xz diff --git a/maven-clean-plugin.spec b/maven-clean-plugin.spec new file mode 100644 index 0000000..fe6986c --- /dev/null +++ b/maven-clean-plugin.spec @@ -0,0 +1,111 @@ +Name: maven-clean-plugin +Version: 2.4.1 +Release: 2%{?dist} +Summary: Maven Clean Plugin + +Group: Development/Libraries +License: ASL 2.0 +URL: http://maven.apache.org/plugins/maven-clean-plugin/ +#svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-clean-plugin-2.4.1 maven-clean-plugin-2.4.1 +#tar caf maven-clean-plugin-2.4.1.tar.xz maven-clean-plugin-2.4.1/ +Source0: %{name}-%{version}.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: maven2 +BuildRequires: maven2-plugin-plugin +BuildRequires: maven2-plugin-compiler +BuildRequires: maven2-plugin-jar +BuildRequires: maven2-plugin-install +BuildRequires: maven2-plugin-resources +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-surefire-maven-plugin +BuildRequires: maven-surefire-provider-junit +BuildRequires: maven-doxia-sitetools +BuildRequires: maven-shared-plugin-testing-harness +Requires: maven2 +Requires: jpackage-utils +Requires: java +Requires(post): jpackage-utils +Requires(postun): jpackage-utils + + +Provides: maven2-plugin-clean = 1:%{version}-%{release} +Obsoletes: maven2-plugin-clean <= 0:2.0.8 + +%description +The Maven Clean Plugin is a plugin that removes files generated +at build-time in a project's directory. + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} +Requires: jpackage-utils + +%description javadoc +API documentation for %{name}. + + +%prep +%setup -q + +%build +export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository +mvn-jpp \ + -e \ + -Dmaven2.jpp.mode=true \ + -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ + -Dmaven.test.skip=true \ + install javadoc:javadoc + +%install +rm -rf %{buildroot} + +# jars +install -d -m 0755 %{buildroot}%{_javadir} +install -m 644 target/%{name}-%{version}.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 maven-clean-plugin %{version} JPP maven-clean-plugin + +# poms +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml \ + %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom + +# javadoc +install -d -m 0755 %{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 +* Wed May 12 2010 Alexander Kurtakov 2.4.1-2 +- Fix review comments. + +* Wed May 12 2010 Alexander Kurtakov 2.4.1-1 +- Initial package. diff --git a/sources b/sources index e69de29..2a7d0a2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8456500ce232068bef66b10b5ffb1ded maven-clean-plugin-2.4.1.tar.xz