Suppress requires from batik-all uberjar

This commit is contained in:
Michael Simacek 2017-05-04 11:33:32 +02:00
parent 73b5bf6a91
commit 4caf507be0

View File

@ -2,7 +2,7 @@
Name: batik
Version: 1.9
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Scalable Vector Graphics for Java
License: ASL 2.0 and W3C
URL: https://xmlgraphics.apache.org/batik/
@ -106,6 +106,9 @@ cp -p %{SOURCE1} batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbr
# We don't want a dependency
%pom_xpath_inject 'pom:dependency[pom:artifactId="jython"]' '<optional>true</optional>' batik-script
# It's an uberjar, it shouldn't have requires
%pom_xpath_inject pom:dependency '<optional>true</optional>' batik-all
# eclipse expects xmlgraphics to be optional
%pom_xpath_inject 'pom:dependency[pom:artifactId="xmlgraphics-commons"]' '<optional>true</optional>' batik-css
@ -187,6 +190,9 @@ cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}/
%changelog
* Thu May 04 2017 Michael Simacek <msimacek@redhat.com> - 1.9-3
- Suppress requires from batik-all uberjar
* Wed Apr 26 2017 Michael Simacek <msimacek@redhat.com> - 1.9-2
- Fix OSGi metadata generation and eclipse compatibility