Use add_maven_depmap macro

- Use more precise specification of files
This commit is contained in:
Stanislav Ochotnicky 2011-07-27 13:42:49 +02:00
parent 923120451a
commit 8ed628f24e

View File

@ -27,8 +27,8 @@ BuildRequires: maven-doxia-sitetools
%description %description
Plexus interpolator is the outgrowth of multiple iterations of development Plexus interpolator is the outgrowth of multiple iterations of development
focused on providing a more modular, flexible interpolation framework for focused on providing a more modular, flexible interpolation framework for
the expression language style commonly seen in Maven, Plexus, and other the expression language style commonly seen in Maven, Plexus, and other
related projects. related projects.
%package javadoc %package javadoc
@ -50,26 +50,31 @@ mvn-rpmbuild install javadoc:javadoc
install -d -m 0755 %{buildroot}%{_javadir}/plexus install -d -m 0755 %{buildroot}%{_javadir}/plexus
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation.jar install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation.jar
%add_to_maven_depmap org.codehaus.plexus plexus-interpolation %{version} JPP/plexus interpolation
# poms # poms
install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \ install -pm 644 pom.xml \
%{buildroot}%{_mavenpomdir}/JPP.%{name}.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}.pom
%add_maven_depmap JPP.%{name}.pom plexus/interpolation.jar
# javadoc # javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
%files %files
%{_javadir}/plexus/*.jar %{_javadir}/plexus/interpolation.jar
%{_mavenpomdir}/* %{_mavenpomdir}/JPP.%{name}.pom
%{_mavendepmapfragdir}/* %{_mavendepmapfragdir}/%{name}
%files javadoc %files javadoc
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog
* Wed Jul 27 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.14-2
- Use add_maven_depmap macro
- Use more precise specification of files
* Tue Jul 26 2011 Jaromir Capik <jcapik@redhat.com> - 1.14-2 * Tue Jul 26 2011 Jaromir Capik <jcapik@redhat.com> - 1.14-2
- Removal of plexus-maven-plugin dependency (not needed) - Removal of plexus-maven-plugin dependency (not needed)
- Minor spec file changes according to the latest guidelines - Minor spec file changes according to the latest guidelines