commit a472e2de7ffb5b91bb18d5d829a9d28ac81e44fde3193765a2aebd15b0bcbc70 Author: Adrian Schröter Date: Sat May 4 02:10:22 2024 +0200 Sync from SUSE:SLFO:Main xmlgraphics-commons revision ab14363fc4282aec28be60cbfefe2cb7 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/xmlgraphics-commons-2.8-src.tar.gz b/xmlgraphics-commons-2.8-src.tar.gz new file mode 100644 index 0000000..eb6130f --- /dev/null +++ b/xmlgraphics-commons-2.8-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:161365a233a5328f53a0920e8c4aa7f34aa2b9361eec889c6de590fb9846a39e +size 2243271 diff --git a/xmlgraphics-commons-build_xml.patch b/xmlgraphics-commons-build_xml.patch new file mode 100644 index 0000000..97ed17a --- /dev/null +++ b/xmlgraphics-commons-build_xml.patch @@ -0,0 +1,45 @@ +--- build.xml 2018-05-14 11:00:43.000000000 +0200 ++++ build.xml 2020-04-03 14:37:25.091265000 +0200 +@@ -251,7 +251,17 @@ + + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -357,20 +367,13 @@ + + + +- +- +- +- +- +- +- ++ + NOTE: + ************************************************************************** +-* One or more of the Junit tests had Failures or Errors or were skipped! * ++* One or more of the Junit tests MAY have had Failures or Errors or were skipped! * + * Please check the output above for relevant messages. * + ************************************************************************** +- +- All Junit tests passed! ++ + + + diff --git a/xmlgraphics-commons-jdk10.patch b/xmlgraphics-commons-jdk10.patch new file mode 100644 index 0000000..e7b08c9 --- /dev/null +++ b/xmlgraphics-commons-jdk10.patch @@ -0,0 +1,10 @@ +--- xmlgraphics-commons-2.1/build.xml 2016-01-07 14:46:18.000000000 +0100 ++++ xmlgraphics-commons-2.1/build.xml 2017-12-22 14:35:12.045945039 +0100 +@@ -402,7 +402,6 @@ + source="${javac.source}"> +
+
+- + + + diff --git a/xmlgraphics-commons.changes b/xmlgraphics-commons.changes new file mode 100644 index 0000000..0bb4d99 --- /dev/null +++ b/xmlgraphics-commons.changes @@ -0,0 +1,157 @@ +------------------------------------------------------------------- +Wed Dec 28 12:37:08 UTC 2022 - Dirk Müller + +- update to 2.8: + * Minor changes to support FOP 2.8 release + +------------------------------------------------------------------- +Fri Mar 18 17:52:48 UTC 2022 - Fridrich Strba + +- Build with source/target levels 8 + +------------------------------------------------------------------- +Sun Jan 24 18:23:07 UTC 2021 - Fridrich Strba + +- Update to version 2.6: + * fixes bsc#1182754, CVE-2020-11988 + * minor release + * changes: + + Fix test on Windows + + XGC-122: Dont load DTDs in XMP + + XGC-123: Decode image at page load rather than document load + +------------------------------------------------------------------- +Thu Jun 4 05:05:24 UTC 2020 - Fridrich Strba + +- Update to version 2.4: + * minor release + * no changelog available + +------------------------------------------------------------------- +Fri Apr 3 12:42:45 UTC 2020 - Fridrich Strba + +- Modified patch: + * xmlgraphics-commons-build_xml.patch + + improve a bit more the OSGi manifest to be able to use it + from eclipse + +------------------------------------------------------------------- +Sat Jan 19 08:03:42 UTC 2019 - Fridrich Strba + +- Modified patch: + * xmlgraphics-commons-build_xml.patch + + Add Bundle-SymbolicName and Bundle-Version attributes to + generate the right OSGi provides +- Sanitize spec file and remove unused requires + +------------------------------------------------------------------- +Tue Aug 28 13:44:48 UTC 2018 - tchvatal@suse.com + +- Do not run target maven_artifacts as it just copies file from a->b + and fails with newer ant + +------------------------------------------------------------------- +Tue Aug 28 13:12:00 UTC 2018 - tchvatal@suse.com + +- Update to version 2.3: + * no changelog available + +------------------------------------------------------------------- +Fri Dec 22 13:37:24 UTC 2017 - fstrba@suse.com + +- Added patch: + * xmlgraphics-commons-jdk10.patch + + Fix building with jdk10 + +------------------------------------------------------------------- +Fri Sep 29 08:43:00 UTC 2017 - fstrba@suse.com + +- Don't condition the maven defines on release version, but on + _maven_repository being defined + +------------------------------------------------------------------- +Tue Sep 19 07:32:15 UTC 2017 - fstrba@suse.com + +- Fix build with jdk9: specify java source and target level 1.6 + +------------------------------------------------------------------- +Fri May 19 11:03:58 UTC 2017 - vsistek@suse.com + +- Add BuildRequires: javapackages-local (for maven conversions) + +------------------------------------------------------------------- +Mon Mar 20 15:20:21 UTC 2017 - sknorr@suse.com + +- Needed as a dependency for FOP 2.1 (FATE#322405) +- Switch between maven-metadata/maven-fragments as appropriate + for SLE/openSUSE + +------------------------------------------------------------------- +Mon Mar 6 09:54:30 UTC 2017 - sknorr@suse.com + +- Switch between maven-metadata/maven-fragments as appropriate + for SLE/openSUSE (FATE#322405) + +------------------------------------------------------------------- +Thu Mar 3 11:27:53 UTC 2016 - fvogt@suse.com + +- Update to version 2.1 + - No changelog available + +------------------------------------------------------------------- +Wed Mar 18 09:46:25 UTC 2015 - tchvatal@suse.com + +- Fix build with new javapackages-tools + +------------------------------------------------------------------- +Fri Dec 5 12:35:21 UTC 2014 - p.drouand@gmail.com + +- Update to version 2.0 + + No changelog available +- Do not use gpg_verify anymore; OBS handles source verification +- Remove dependency on java-devel + +------------------------------------------------------------------- +Mon Sep 9 11:06:29 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Fri Sep 6 07:55:29 UTC 2013 - mvyskocil@suse.com + +- format spec file +- use new add_maven_depmap macro +- build require apache-commons packages +- add gpg verification + +------------------------------------------------------------------- +Wed Jan 23 09:27:51 UTC 2013 - mvyskocil@suse.com + +- fix javadoc installation + +------------------------------------------------------------------- +Wed Oct 31 08:28:00 UTC 2012 - mvyskocil@suse.com + +- remove the symlink madness - jar and javadoc are not versioned anymore + +------------------------------------------------------------------- +Wed Oct 24 10:13:01 UTC 2012 - mvyskocil@suse.com + +- update to 1.5 + * bug fix release + * improved code practices + * improved coverage of CCITTFax Group 3 image formats + * removed com.sun classes usage + * see http://xmlgraphics.apache.org/commons/changes.html#version_1.5 + * drop upstreamed java7 patch + +------------------------------------------------------------------- +Mon Jun 18 13:46:01 UTC 2012 - mvyskocil@suse.cz + +- fix jdk7 build (Fedora patch) + +------------------------------------------------------------------- +Wed Nov 3 13:47:59 UTC 2010 - mvyskocil@suse.cz + +- Initial packaging for SUSE (xmlgraphics-commons-1.3.1-2.jpp5.src.rpm) + diff --git a/xmlgraphics-commons.spec b/xmlgraphics-commons.spec new file mode 100644 index 0000000..6793c65 --- /dev/null +++ b/xmlgraphics-commons.spec @@ -0,0 +1,87 @@ +# +# spec file for package xmlgraphics-commons +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2000-2008, JPackage Project +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: xmlgraphics-commons +Version: 2.8 +Release: 0 +Summary: XML Graphics Commons +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://xmlgraphics.apache.org/commons/ +Source0: https://archive.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz +Patch0: xmlgraphics-commons-build_xml.patch +Patch1: xmlgraphics-commons-jdk10.patch +BuildRequires: ant >= 1.6.5 +BuildRequires: commons-io >= 1.1 +BuildRequires: commons-logging +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local +Requires: mvn(commons-io:commons-io) >= 1.1 +Requires: mvn(commons-logging:commons-logging) +BuildArch: noarch + +%description +Apache XML Graphics Commons is a library that consists of +several reusable components used by Apache Batik and +Apache FOP. Many of these components can easily be used +separately outside the domains of SVG and XSL-FO. You will +find components such as a PDF library, an RTF library, +Graphics2D implementations that let you generate PDF & +PostScript files, and much more. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for package %{name}. + +%prep +%setup -q %{name}-%{version} +%patch0 +%patch1 -p1 +find . -name "*.jar" | xargs rm + +%build +export CLASSPATH= +build-jar-repository -s lib commons-io commons-logging +ant -Djavac.source=1.8 -Djavac.target=1.8 package javadocs + +%install +# jar +install -Dpm 644 build/%{name}-%{version}.jar \ + %{buildroot}%{_javadir}/%{name}.jar +# pom +install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar + +mkdir -p %{buildroot}%{_javadocdir}/%{name} +cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE NOTICE +%doc README + +%files javadoc +%license LICENSE NOTICE +%{_javadocdir}/%{name} + +%changelog