mojo-parent/mojo-parent.spec

76 lines
1.9 KiB
RPMSpec
Raw Normal View History

2010-09-16 07:52:08 +00:00
Name: mojo-parent
Version: 24
2010-09-16 10:15:09 +00:00
Release: 5%{?dist}
2010-09-16 07:52:08 +00:00
Summary: Codehaus MOJO parent project pom file
Group: Development/Libraries
License: ASL 2.0
URL: http://mojo.codehaus.org/
Source0: https://nexus.codehaus.org/content/repositories/releases/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
2010-09-16 08:25:54 +00:00
BuildRequires: jpackage-utils
2010-09-16 10:15:09 +00:00
Requires: plexus-containers-component-javadoc
2010-09-16 07:52:08 +00:00
Requires: maven-plugin-plugin
Requires: junit
Requires: jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
%description
Codehaus MOJO parent project pom file
%prep
%setup -q
# see http://jira.codehaus.org/browse/MOJO-1561
sed -i 's:<artifactId>plexus-javadoc</artifactId>:<artifactId>plexus-component-javadoc</artifactId>:' pom.xml
%install
rm -rf %{buildroot}
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
2010-09-16 08:25:54 +00:00
%add_to_maven_depmap org.codehaus.mojo %{name} %{version} JPP %{name}
2010-09-16 07:52:08 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%defattr(-,root,root,-)
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%changelog
2010-09-16 10:15:09 +00:00
* Thu Sep 16 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-5
- Add component-javadoc to R
2010-09-16 08:25:54 +00:00
* Thu Sep 16 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-4
- Add forgotten jpackage-utils BR
2010-09-16 07:52:08 +00:00
* Tue Sep 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-3
- Change to license used by upstream (ASL 2.0)
* Mon Sep 6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-2
- Removed %%build section and BRs (not really needed)
* Mon Sep 6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-1
- Initial version of the package