From 86ee99699908461186c1b4b6adfb41dc141f148d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 30 2022 18:56:00 +0000 Subject: import jdom2-2.0.6-14.module+el8.3.0+7256+fe62c937 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cde5223 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jdom2-2.0.6.tar.gz diff --git a/.jdom2.metadata b/.jdom2.metadata new file mode 100644 index 0000000..69874d0 --- /dev/null +++ b/.jdom2.metadata @@ -0,0 +1 @@ +d47a717b9ea4e9917652d4b80a669b5f55fe7639 SOURCES/jdom2-2.0.6.tar.gz diff --git a/SOURCES/0001-Adapt-build.patch b/SOURCES/0001-Adapt-build.patch new file mode 100644 index 0000000..87e9f3b --- /dev/null +++ b/SOURCES/0001-Adapt-build.patch @@ -0,0 +1,101 @@ +From 05a8a2fa49e92ad36a86d5d73588a2e46bf9ff95 Mon Sep 17 00:00:00 2001 +From: Michael Simacek +Date: Mon, 23 Jul 2018 14:30:14 +0200 +Subject: [PATCH] Adapt build + +--- + build.xml | 40 +++++++++++++++++++++++++--------------- + 1 file changed, 25 insertions(+), 15 deletions(-) + +diff --git a/build.xml b/build.xml +index cd7c2ed..10d8df6 100644 +--- a/build.xml ++++ b/build.xml +@@ -112,17 +112,7 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- +- +- +- +- +- +- +- +- +- +- ++ + + + +@@ -289,6 +279,7 @@ For instructions on how to build JDOM, please view the README.txt file. + header="<b>${Name}<br><font size='-1'>${version}</font></b>" + bottom="Copyright © ${year} Jason Hunter, Brett McLaughlin. All Rights Reserved."> + ++ + + + +@@ -373,11 +364,11 @@ For instructions on how to build JDOM, please view the README.txt file. + + +- ++ + + + +@@ -401,6 +392,7 @@ For instructions on how to build JDOM, please view the README.txt file. + + + ++ + + + +@@ -528,7 +520,25 @@ For instructions on how to build JDOM, please view the README.txt file. + + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + 4.0.0 + org.jdom + @artifactID@-contrib + jar + + JDOM Contrib + @version@ + + + A complete, Java-based solution for accessing, manipulating, + and outputting XML data + + http://www.jdom.org + + + JDOM + http://www.jdom.org + + + + + JDOM-interest Mailing List + jdom-interest@jdom.org + http://jdom.markmail.org/ + + + + + + Similar to Apache License but with the acknowledgment clause removed + https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt + repo + + + + + + git@github.com:/hunterhacker/jdom + scm:git:git@github.com:hunterhacker/jdom + scm:git:git@github.com:hunterhacker/jdom + + + + + hunterhacker + Jason Hunter + jhunter@servlets.com + + + rolfl + Rolf Lear + jdom@tuis.net + + + + + + org.jdom + @artifactID@ + @version@ + + + jaxen + jaxen + 1.1.4 + true + + + xerces + xercesImpl + 2.10.0 + true + + + isorelax + isorelax + 20030108 + true + + + stax + stax-api + 1.0.1 + true + + + + + @jdk@ + + \ No newline at end of file diff --git a/SOURCES/jdom-junit-template.pom b/SOURCES/jdom-junit-template.pom new file mode 100644 index 0000000..70c6554 --- /dev/null +++ b/SOURCES/jdom-junit-template.pom @@ -0,0 +1,120 @@ + + 4.0.0 + org.jdom + @artifactID@-junit + jar + + JDOM Junit + @version@ + + + A complete, Java-based solution for accessing, manipulating, + and outputting XML data + + http://www.jdom.org + + + JDOM + http://www.jdom.org + + + + + JDOM-interest Mailing List + jdom-interest@jdom.org + http://jdom.markmail.org/ + + + + + + Similar to Apache License but with the acknowledgment clause removed + https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt + repo + + + + + + git@github.com:/hunterhacker/jdom + scm:git:git@github.com:hunterhacker/jdom + scm:git:git@github.com:hunterhacker/jdom + + + + + hunterhacker + Jason Hunter + jhunter@servlets.com + + + rolfl + Rolf Lear + jdom@tuis.net + + + + + + org.jdom + @artifactID@ + @version@ + + + jaxen + jaxen + 1.1.4 + true + + + xerces + xercesImpl + 2.10.0 + true + + + junit + junit + 4.11 + true + + + asm + asm + 3.3.1 + true + + + asm + asm-tree + 3.3.1 + true + + + log4j + log4j + 1.2.17 + true + + + net.sourceforge.cobertura + cobertura + 1.9.4.1 + true + + + net.sourceforge.cobertura + cobertura-runtime + 1.9.4.1 + true + + + + + @jdk@ + + \ No newline at end of file diff --git a/SPECS/jdom2.spec b/SPECS/jdom2.spec new file mode 100644 index 0000000..879249c --- /dev/null +++ b/SPECS/jdom2.spec @@ -0,0 +1,147 @@ +Name: jdom2 +Version: 2.0.6 +Release: 14%{?dist} +Summary: Java manipulation of XML made easy +License: Saxpath +URL: http://www.jdom.org/ +# ./generate-tarball.sh +Source0: %{name}-%{version}.tar.gz +# originally taken from http://repo1.maven.org/maven2/org/jdom/jdom-contrib/1.1.3/jdom-contrib-1.1.3.pom +Source1: jdom-contrib-template.pom +Source2: jdom-junit-template.pom +# Bnd tool configuration +Source3: bnd.properties +# Remove bundled jars that might not have clear licensing +Source4: generate-tarball.sh +# Use system libraries +# Disable gpg signatures +# Process contrib and junit pom files +Patch0: 0001-Adapt-build.patch + +BuildRequires: javapackages-local +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: isorelax +BuildRequires: jaxen +BuildRequires: xalan-j2 +BuildRequires: xerces-j2 +BuildRequires: xml-commons-apis +BuildRequires: log4j12 +#BuildRequires: aqute-bnd + +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 seeks to provide a robust, +light-weight means of reading and writing XML data without the +complex and memory-consumptive options that current API +offerings provide. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n jdom-JDOM-%{version} + +%patch0 -p1 + +cp -p %{SOURCE1} maven/contrib.pom +cp -p %{SOURCE2} maven/junit.pom + +sed -i 's/\r//' LICENSE.txt README.txt + +# Unable to run coverage: use log4j12 but switch to log4j 2.x +sed -i.coverage "s|coverage, jars|jars|" build.xml + +%build +mkdir lib +build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer +ant -Dversion=%{version} -Dcompile.source=1.6 -Dcompile.target=1.6 -Dj2se.apidoc=%{_javadocdir}/java maven + +# Make jar into an OSGi bundle +# XXX disabled until BND is fixed +#bnd wrap --output build/package/jdom-%{version}.bar --properties %{SOURCE3} \ +# --version %{version} build/package/jdom-%{version}.jar +#mv build/package/jdom-%{version}.bar build/package/jdom-%{version}.jar + +%install +%mvn_artifact build/maven/core/%{name}-%{version}.pom build/package/jdom-%{version}.jar +%mvn_artifact build/maven/core/%{name}-%{version}-contrib.pom build/package/jdom-%{version}-contrib.jar +%mvn_artifact build/maven/core/%{name}-%{version}-junit.pom build/package/jdom-%{version}-junit.jar +%mvn_install -J build/apidocs + +%files -f .mfiles +%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Tue Nov 05 2019 Mikolaj Izdebski - 2.0.6-14 +- Mass rebuild for javapackages-tools 201902 + +* Fri May 24 2019 Mikolaj Izdebski - 2.0.6-13 +- Mass rebuild for javapackages-tools 201901 + +* Mon Jul 23 2018 Michael Simacek - 2.0.6-12 +- Repack tarball without bundled jars +- The repacked jar contains slightly different source (force push by upstream?) +- Correct license tag + +* Tue Jul 17 2018 Mikolaj Izdebski - 2.0.6-11 +- Remove unneeded buildrequires + +* Fri Jul 13 2018 Fedora Release Engineering - 2.0.6-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 2.0.6-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.0.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed May 31 2017 Michael Simacek - 2.0.6-7 +- Avoid hardcoded jar paths + +* Fri Feb 10 2017 Fedora Release Engineering - 2.0.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Apr 14 2016 Mat Booth - 2.0.6-6 +- Add OSGi metadata to main jar +- Fix file listed twice warning + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 2.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Mar 24 2015 Mikolaj Izdebski - 2.0.6-3 +- Remove unneeded BR on cobertura + +* Fri Feb 06 2015 gil cattaneo 2.0.6-2 +- introduce license macro + +* Tue Oct 21 2014 gil cattaneo 2.0.6-1 +- update to 2.0.6 (rhbz#1118627) + +* Sun Jun 08 2014 Fedora Release Engineering - 2.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 2.0.5-3 +- Use Requires: java-headless rebuild (#1067528) + +* Thu Nov 14 2013 gil cattaneo 2.0.5-2 +- use objectweb-asm3 + +* Thu Sep 12 2013 gil cattaneo 2.0.5-1 +- initial rpm