111 lines
2.9 KiB
RPMSpec
111 lines
2.9 KiB
RPMSpec
Name: plexus-build-api
|
|
Version: 0.0.6
|
|
Release: 7%{?dist}
|
|
Summary: Plexus Build API
|
|
|
|
Group: Development/Libraries
|
|
License: ASL 2.0
|
|
URL: http://svn.sonatype.org/spice/tags/plexus-build-api-0.0.6
|
|
#svn export http://svn.sonatype.org/spice/tags/plexus-build-api-0.0.6
|
|
#tar zcf plexus-build-api-0.0.6.tar.gz plexus-build-api-0.0.6/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: maven
|
|
BuildRequires: maven-plugin-plugin
|
|
BuildRequires: maven-resources-plugin
|
|
BuildRequires: maven-jar-plugin
|
|
BuildRequires: maven-install-plugin
|
|
BuildRequires: maven-compiler-plugin
|
|
BuildRequires: maven-javadoc-plugin
|
|
BuildRequires: maven-surefire-plugin
|
|
BuildRequires: maven-surefire-provider-junit
|
|
BuildRequires: maven-doxia-sitetools
|
|
BuildRequires: plexus-container-default
|
|
BuildRequires: plexus-utils
|
|
BuildRequires: forge-parent
|
|
BuildRequires: spice-parent
|
|
BuildRequires: junit
|
|
BuildRequires: plexus-maven-plugin
|
|
BuildRequires: maven-shared-reporting-impl
|
|
BuildRequires: plexus-digest
|
|
BuildRequires: maven-surefire-provider-junit4
|
|
|
|
Requires: plexus-container-default
|
|
Requires: plexus-utils
|
|
Requires: jpackage-utils
|
|
Requires: spice-parent
|
|
Requires: java
|
|
Requires(post): jpackage-utils
|
|
Requires(postun): jpackage-utils
|
|
|
|
%description
|
|
Plexus Build API
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: Javadoc for %{name}
|
|
Requires: jpackage-utils
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
mvn-rpmbuild 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
|
|
%{_javadir}/plexus/*
|
|
%{_mavenpomdir}/*
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/plexus/%{name}
|
|
|
|
%changelog
|
|
* Thu Jun 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.6-7
|
|
- Add spice-parent to Requires
|
|
|
|
* Fri Jun 3 2011 Alexander Kurtakov <akurtako@redhat.com> 0.0.6-6
|
|
- Build with maven.
|
|
- Fix requires.
|
|
- Guidelines fixes.
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed May 26 2010 Hui Wang <huwnag@redhat.com> 0.0.6-3
|
|
- Add missing requires
|
|
|
|
* Wed May 26 2010 Hui Wang <huwnag@redhat.com> 0.0.6-2
|
|
- Change JPP-%{name}.pom to JPP.plexus-%{name}.pom
|
|
|
|
* Wed May 19 2010 Hui Wang <huwang@redhat.com> 0.0.6-1
|
|
- Initial version of the package
|