diff --git a/0001-Adapt-build.patch b/0001-Adapt-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..87e9f3b11c4a5e69685433b4954a2e04b8cbdc99 --- /dev/null +++ b/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/jdom-junit-template.pom b/jdom-junit-template.pom new file mode 100644 index 0000000000000000000000000000000000000000..70c6554704bdf01eecdfae720896ec3321bcd596 --- /dev/null +++ b/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/jdom2.spec b/jdom2.spec new file mode 100644 index 0000000000000000000000000000000000000000..7ad36b144995c36a8a0ed15efd0237195ef0814a --- /dev/null +++ b/jdom2.spec @@ -0,0 +1,61 @@ +Name: jdom2 +Version: 2.0.6 +Release: 13 +Summary: Classes representing the components of an XML document +License: Saxpath +URL: http://www.jdom.org/ +BuildArch: noarch +Source0: https://github.com/hunterhacker/jdom/archive/JDOM-2.0.6.tar.gz +Source1: jdom-contrib-template.pom +Source2: jdom-junit-template.pom +Source3: bnd.properties +Patch0001: 0001-Adapt-build.patch +BuildRequires: javapackages-local ant ant-junit isorelax jaxen xalan-j2 xerces-j2 xml-commons-apis log4j12 aqute-bnd + +%description +JDOM is an in-memory representation of an XML document. XML consists of +elements (which have attributes), text data, 'entity' references, processing +instructions, and comments. XML documents can also have a DocType declaration, +Comments, and Processing Instructions before the root element. + +%package help +Summary: This package contains help documents +Requires: %{name} = %{version}-%{release} +Provides: jdom2-javadoc = %{version}-%{release} +Obsoletes: jdom2-javadoc < %{version}-%{release} + +%description help +Files for help with jdom2. + +%prep +%autosetup -n jdom-JDOM-%{version} -p1 +#find -name 'lib' -exec rm -rf {} \; +rm -rf ./contrib/lib ./lib +find -name '*.jar' -delete +find -name '*.class' -delete +install -D %{SOURCE1} maven/contrib.pom +install -D %{SOURCE2} maven/junit.pom +sed -i.coverage "s|coverage, jars|jars|" build.xml +install -d lib +build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer + +%build +ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven +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 LICENSE.txt + +%files help -f .mfiles-javadoc +%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt + +%changelog +* Thu Dec 12 2019 gulining - 2.0.6-13 +- Pakcage init