From 0abc750a2f7658984bc3e6c4cbe9efce67e9fabe Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Jun 04 2010 01:49:39 +0000 Subject: Fri Jun 04 Hui Wang - 1.5-3 - Import plexus-cipher --- diff --git a/.cvsignore b/.cvsignore index e69de29..ff3fb8e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +plexus-cipher-1.5.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..7bc62e5 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +plexus-cipher-1_5-3:HEAD:plexus-cipher-1.5-3.src.rpm:1275615931 diff --git a/plexus-cipher.spec b/plexus-cipher.spec new file mode 100644 index 0000000..ce8aec6 --- /dev/null +++ b/plexus-cipher.spec @@ -0,0 +1,119 @@ +Name: plexus-cipher +Version: 1.5 +Release: 3%{?dist} +Summary: Plexus Cipher: encryption/decryption Component + +Group: Development/Libraries +License: ASL 2.0 +URL: http://spice.sonatype.org +#svn export http://svn.sonatype.org/spice/tags/plexus-cipher-1.5 +#tar zcf plexus-cipher-1.5.tar.gz plexus-cipher-1.5 +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: maven2 +BuildRequires: maven-plugin-plugin +BuildRequires: maven-compiler-plugin +BuildRequires: maven-install-plugin +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-resources-plugin +BuildRequires: maven-surefire-maven-plugin +BuildRequires: maven-surefire-provider-junit +BuildRequires: maven-doxia-sitetools +BuildRequires: plexus-container-default +BuildRequires: forge-parent +BuildRequires: spice-parent +BuildRequires: plexus-maven-plugin +BuildRequires: junit +BuildRequires: maven-shared-reporting-impl +BuildRequires: plexus-digest + +Requires: maven2 +Requires: jpackage-utils +Requires: java +Requires(post): jpackage-utils +Requires(postun): jpackage-utils + + +%description +Plexus Cipher: encryption/decryption Component + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} +Requires: jpackage-utils + +%description javadoc +API documentation for %{name}. + + +%prep +%setup -q -n %{name}-%{version} + +%build +export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository +mvn-jpp \ + -e \ + -Dmaven2.jpp.mode=true \ + -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ + install javadoc:javadoc + +%install +rm -rf %{buildroot} + +# jars +install -d -m 0755 %{buildroot}%{_javadir}/plexus +install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus + +(cd %{buildroot}%{_javadir}/plexus && for jar in *-%{version}*; \ + do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + +%add_to_maven_depmap org.sonatype.plexus %{name} %{version} JPP/plexus %{name} + +# poms +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml \ + %{buildroot}%{_mavenpomdir}/JPP.plexus-%{name}.pom + +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/plexus/%{name}-%{version} +cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/plexus/%{name}-%{version}/ +ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/plexus/%{name} +rm -rf target/site/api* + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_javadir}/plexus/* +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* +%doc NOTICE.txt + +%files javadoc +%defattr(-,root,root,-) +%{_javadocdir}/plexus/%{name}-%{version} +%{_javadocdir}/plexus/%{name} + +%changelog +* Tue Jun 01 2010 Hui Wang - 1.5-3 +- Add NOTICE.text +- Fix URL +- Fix direction of install pom + +* Sun May 23 2010 Hui Wang - 1.5-2 +- Correct URL + +* Tue May 18 2010 Hui Wang - 1.5-1 +- Initial version of the package \ No newline at end of file diff --git a/sources b/sources index e69de29..00b2ba0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4c61273327f3b8cb02a5ae9ea1e491dc plexus-cipher-1.5.tar.gz