Update to current packaging guidelines

- Resolves: rhbz#1107290
This commit is contained in:
Mikolaj Izdebski 2014-08-04 14:14:28 +02:00
parent 3dc5759850
commit ab3511d7f8

View File

@ -1,6 +1,6 @@
Name: xmlgraphics-commons Name: xmlgraphics-commons
Version: 1.5 Version: 1.5
Release: 3%{?dist} Release: 4%{?dist}
Epoch: 0 Epoch: 0
Summary: XML Graphics Commons Summary: XML Graphics Commons
@ -61,16 +61,13 @@ ant package javadocs
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -Dpm 0644 build/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar install -Dpm 0644 build/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
install -pm 644 %{name}.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom install -pm 644 %{name}.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar %add_maven_depmap
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%files %files -f .mfiles
%doc LICENSE NOTICE README %doc LICENSE NOTICE README
%{_mavendepmapfragdir}/%{name}
%{_mavenpomdir}/JPP-%{name}.pom
%{_javadir}/*.jar
%files javadoc %files javadoc
%doc LICENSE NOTICE %doc LICENSE NOTICE
@ -78,6 +75,10 @@ cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%changelog %changelog
* Mon Aug 4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-4
- Update to current packaging guidelines
- Resolves: rhbz#1107290
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-3 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild