189f428fdd
- Fixes according to new guidelines - Versionless jars & javadocs - Use maven3 to build
107 lines
2.8 KiB
RPMSpec
107 lines
2.8 KiB
RPMSpec
Name: plexus-sec-dispatcher
|
|
Version: 1.4
|
|
Release: 4%{?dist}
|
|
Summary: Plexus Security Dispatcher Component
|
|
|
|
Group: Development/Libraries
|
|
License: ASL 2.0
|
|
URL: http://spice.sonatype.org
|
|
#svn export http://svn.sonatype.org/spice/tags/plexus-sec-dispatcher-1.4/
|
|
#tar jcf plexus-sec-dispatcher-1.4.tar.bz2 plexus-sec-dispatcher-1.4/
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
#Removed maven-compiler-plugin configuration version in the pom as annotations isn't available in version 1.4.
|
|
Patch0: %{name}-pom.patch
|
|
|
|
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: plexus-utils
|
|
BuildRequires: plexus-cipher
|
|
BuildRequires: plexus-container-default
|
|
BuildRequires: junit
|
|
BuildRequires: forge-parent
|
|
BuildRequires: spice-parent
|
|
BuildRequires: maven-surefire-provider-junit
|
|
|
|
Requires: jpackage-utils
|
|
Requires: java
|
|
Requires: spice-parent
|
|
|
|
Requires(post): jpackage-utils
|
|
Requires(postun): jpackage-utils
|
|
|
|
%description
|
|
Plexus Security Dispatcher Component
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: Javadoc for %{name}
|
|
Requires: jpackage-utils
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p0
|
|
|
|
%build
|
|
mvn-rpmbuild install javadoc:javadoc
|
|
|
|
%install
|
|
# jars
|
|
install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/%{name}.jar
|
|
|
|
# poms
|
|
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.plexus-%{name}.pom
|
|
|
|
%add_maven_depmap JPP.plexus-%{name}.pom plexus/%{name}.jar
|
|
|
|
# javadoc
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/plexus/%{name}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/plexus/%{name}
|
|
|
|
%pre javadoc
|
|
# workaround for rpm bug, can be removed in F-18
|
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|
|
|
%post
|
|
%update_maven_depmap
|
|
|
|
%postun
|
|
%update_maven_depmap
|
|
|
|
%files
|
|
%{_javadir}/plexus/*
|
|
%{_mavenpomdir}/*
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/plexus/%{name}
|
|
|
|
%changelog
|
|
* Thu Jun 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-4
|
|
- Fixes according to new guidelines
|
|
- Add spice-parent to Requires
|
|
- Versionless jars & javadocs
|
|
- Use maven3 to build
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Jun 04 2010 Hui Wang <huwang@redhat.com> - 1.4-2
|
|
- Fixed url
|
|
|
|
* Fri May 21 2010 Hui Wang <huwang@redhat.com> - 1.4-1
|
|
- Initial version of the package
|