commit 863fc4f3262c7e9337a03bbfcb7448b4ed097e45bf4489f480786543179230c6 Author: Adrian Schröter Date: Fri May 3 14:00:44 2024 +0200 Sync from SUSE:SLFO:Main jdom2 revision f59c483a7e8623509d804278e06f4c92 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/0001-Adapt-build.patch b/0001-Adapt-build.patch new file mode 100644 index 0000000..9d9a26d --- /dev/null +++ b/0001-Adapt-build.patch @@ -0,0 +1,119 @@ +From cf7e676edc7ab9d4b8b130ca4d8ecbd291995dea Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Mon, 20 Apr 2020 09:29:12 +0200 +Subject: [PATCH] Adapt build + +--- + build.xml | 61 +++---------------------------------------------------- + 1 file changed, 3 insertions(+), 58 deletions(-) + +diff --git a/build.xml b/build.xml +index ed632c2..d80abff 100644 +--- a/build.xml ++++ b/build.xml +@@ -112,17 +112,7 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- +- +- +- +- +- +- +- +- +- +- ++ + + + +@@ -296,7 +286,7 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- + + +@@ -316,27 +306,6 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +@@ -505,7 +474,7 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- + + +@@ -517,8 +486,6 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- +- + + + +@@ -532,28 +499,6 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +-- +2.37.2 + diff --git a/_service b/_service new file mode 100644 index 0000000..0e6060f --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + git + https://github.com/hunterhacker/jdom.git + JDOM-2.0.6.1 + JDOM-* + @PARENT_TAG@ + JDOM-(.*) + lib/* + */lib + + + *.tar + xz + + + diff --git a/jdom-2.0.6.1.tar.xz b/jdom-2.0.6.1.tar.xz new file mode 100644 index 0000000..a877a0a --- /dev/null +++ b/jdom-2.0.6.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:193268524d7d4a69bc11038e5d7b3b602162efb30cf1a706a27abf397016bec3 +size 458972 diff --git a/jdom2.changes b/jdom2.changes new file mode 100644 index 0000000..f0a4eb2 --- /dev/null +++ b/jdom2.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Wed Aug 23 14:59:34 UTC 2023 - Fridrich Strba + +- Drop unused *-junit and *-contrib artifacts +- Reduce drastically dependencies +- Modified patch: + * 0001-Adapt-build.patch + + drop junit and contrib jars + +------------------------------------------------------------------- +Tue Jan 18 07:47:46 UTC 2022 - Fridrich Strba + +- Upgrade to 2.0.6.1 + * Upstream release to fix CVE-2021-33813 +- Removed patch: + * jdom2-CVE-2021-33813.patch + + integrated upstream +- Modified patch: + * 0001-Adapt-build.patch + + rebase to changed context + +------------------------------------------------------------------- +Thu Jun 17 09:17:40 UTC 2021 - Pedro Monreal + +- Security fix: [bsc#1187446, CVE-2021-33813] + * XXE issue in SAXBuilder can cause a denial of service via + a crafted HTTP request +- Add jdom2-CVE-2021-33813.patch + +------------------------------------------------------------------- +Tue Oct 1 12:07:53 UTC 2019 - Fridrich Strba + +- Remove unnecessary dependency on log4j + +------------------------------------------------------------------- +Wed Feb 13 12:18:12 UTC 2019 - Jan Engelhardt + +- Trim filler wording from description. + +------------------------------------------------------------------- +Sat Feb 9 06:29:42 UTC 2019 - Fridrich Strba + +- Initial packaging of jdom2 version 2.0.6 diff --git a/jdom2.spec b/jdom2.spec new file mode 100644 index 0000000..0ca5d76 --- /dev/null +++ b/jdom2.spec @@ -0,0 +1,89 @@ +# +# spec file for package jdom2 +# +# Copyright (c) 2023 SUSE LLC +# +# 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: jdom2 +Version: 2.0.6.1 +Release: 0 +Summary: Java manipulation of XML +License: Saxpath +Group: Development/Libraries/Java +URL: http://www.jdom.org/ +Source0: jdom-%{version}.tar.xz +Patch0: 0001-Adapt-build.patch +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local +BuildArch: noarch + +%description +JDOM is a Java-oriented object model which models XML documents. +It provides a Java-centric means of generating and manipulating +XML documents. While JDOM inter-operates well with existing +standards such as the Simple API for XML (SAX) and the Document +Object Model (DOM), it is not an abstraction layer or +enhancement to those APIs. Rather, it provides a means of +reading and writing XML data. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n jdom-%{version} + +%patch0 -p1 + +sed -i 's/\r//' LICENSE.txt + +# Unable to run coverage: use log4j12 but switch to log4j 2.x +sed -i.coverage "s|coverage, jars|jars|" build.xml + +# XPath functionality is not needed +rm -rf core/src/java/org/jdom2/xpath/ +sed -i '/import org.jdom2.xpath.XPathFactory/d' core/src/java/org/jdom2/JDOMConstants.java + +%build +mkdir -p lib +%{ant} -Dversion=%{version} -Dcompile.target=8 -Dcompile.source=8 -Dj2se.apidoc=%{_javadocdir}/java maven + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 build/package/jdom-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 build/maven/core/%{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr build/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc CHANGES.txt COMMITTERS.txt README.md TODO.txt +%license LICENSE.txt + +%files javadoc +%{_javadocdir}/%{name} + +%changelog