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

@ -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