113 lines
2.8 KiB
RPMSpec
113 lines
2.8 KiB
RPMSpec
Name: plexus-cipher
|
|
Version: 1.5
|
|
Release: 5%{?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
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: maven
|
|
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-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: plexus-containers
|
|
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
|
|
|
|
%build
|
|
mvn-rpmbuild \
|
|
-Dmaven.test.failure.ignore=true \
|
|
install javadoc:javadoc
|
|
|
|
%install
|
|
# jars
|
|
install -d -m 0755 %{buildroot}%{_javadir}/plexus
|
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/%{name}.jar
|
|
|
|
%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}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/plexus/%{name}/
|
|
|
|
%post
|
|
%update_maven_depmap
|
|
|
|
%postun
|
|
%update_maven_depmap
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_javadir}/plexus/*
|
|
%{_mavenpomdir}/*
|
|
%{_mavendepmapfragdir}/*
|
|
%doc NOTICE.txt
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root,-)
|
|
%{_javadocdir}/plexus/%{name}
|
|
|
|
%changelog
|
|
* Fri Jun 3 2011 Alexander Kurtakov <akurtako@redhat.com> 1.5-5
|
|
- Do not require maven2.
|
|
- Build with maven (v. 3) by default.
|
|
- drop obsoleted parts of the spec.
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Jun 01 2010 Hui Wang <huwang@redhat.com> - 1.5-3
|
|
- Add NOTICE.text
|
|
- Fix URL
|
|
- Fix direction of install pom
|
|
|
|
* Sun May 23 2010 Hui Wang <huwang@redhat.com> - 1.5-2
|
|
- Correct URL
|
|
|
|
* Tue May 18 2010 Hui Wang <huwang@redhat.com> - 1.5-1
|
|
- Initial version of the package
|