From b7f8555f272fa1f85ab3fc2df75746197313e085f281c4912c3fbc86c31150a3 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 11 Oct 2024 18:07:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=62 --- .gitattributes | 23 ++++ .gitignore | 1 + xmlgraphics-commons-2.10-src.tar.gz | 3 + xmlgraphics-commons-2.8-src.tar.gz | 3 + xmlgraphics-commons-build_xml.patch | 54 ++++++++++ xmlgraphics-commons-jdk10.patch | 10 ++ xmlgraphics-commons.changes | 162 ++++++++++++++++++++++++++++ xmlgraphics-commons.spec | 86 +++++++++++++++ 8 files changed, 342 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 xmlgraphics-commons-2.10-src.tar.gz create mode 100644 xmlgraphics-commons-2.8-src.tar.gz create mode 100644 xmlgraphics-commons-build_xml.patch create mode 100644 xmlgraphics-commons-jdk10.patch create mode 100644 xmlgraphics-commons.changes create mode 100644 xmlgraphics-commons.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/xmlgraphics-commons-2.10-src.tar.gz b/xmlgraphics-commons-2.10-src.tar.gz new file mode 100644 index 0000000..a86caf6 --- /dev/null +++ b/xmlgraphics-commons-2.10-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32cbdeb3d18d265c6e3c80032ddd04da44871f6f719cd79710317e447176f57a +size 1618901 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..2a4e3e5 --- /dev/null +++ b/xmlgraphics-commons-build_xml.patch @@ -0,0 +1,54 @@ +--- build.xml 2024-10-11 14:25:27.792649947 +0200 ++++ build.xml 2024-10-11 14:27:02.993303421 +0200 +@@ -261,7 +261,17 @@ + + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -306,7 +316,7 @@ + + + +- ++ + + + +@@ -396,20 +406,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..888527f --- /dev/null +++ b/xmlgraphics-commons.changes @@ -0,0 +1,162 @@ +------------------------------------------------------------------- +Tue Feb 20 14:31:28 UTC 2024 - Fridrich Strba + +- Use %patch -P N instead of deprecated %patchN. + +------------------------------------------------------------------- +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..d43feed --- /dev/null +++ b/xmlgraphics-commons.spec @@ -0,0 +1,86 @@ +# +# spec file for package xmlgraphics-commons +# +# Copyright (c) 2024 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.10 +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 >= 6 +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} +%patch -P 0 +%patch -P 1 -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 -dm 0755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} 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