diff --git a/jdom-1.1-OSGiManifest.patch b/jdom-1.1-OSGiManifest.patch new file mode 100644 index 0000000..5a06e13 --- /dev/null +++ b/jdom-1.1-OSGiManifest.patch @@ -0,0 +1,20 @@ +diff -up a/package/META-INF/MANIFEST.MF.osgimanifest b/package/META-INF/MANIFEST.MF +--- a/package/META-INF/MANIFEST.MF.osgimanifest 2008-07-21 16:00:59.000000000 -0400 ++++ b/package/META-INF/MANIFEST.MF 2008-07-21 16:02:20.000000000 -0400 +@@ -1,4 +1,16 @@ + Manifest-Version: 1.0 ++Bundle-RequiredExecutionEnvironment: J2SE-1.4 ++Bundle-SymbolicName: org.jdom ++Bundle-ManifestVersion: 2 ++Bundle-Name: %Bundle-Name.0 ++Bundle-Localization: plugin ++Bundle-Version: 1.1.2 ++Bundle-Vendor: %Bundle-Vendor.0 ++Export-Package: org.jdom;version="1.1.2",org.jdom.adapters;version="1. ++ 1.2",org.jdom.filter;version="1.1.2",org.jdom.input;version="1.1.2",o ++ rg.jdom.output;version="1.1.2",org.jdom.transform;version="1.1.2",org ++ .jdom.xpath;version="1.1.2" ++Require-Bundle: org.apache.xerces;resolution:=optional + + Name: org/jdom/ + Specification-Title: JDOM Classes diff --git a/jdom-1.1.3.pom b/jdom-1.1.3.pom new file mode 100644 index 0000000..74b7e28 --- /dev/null +++ b/jdom-1.1.3.pom @@ -0,0 +1,75 @@ + + 4.0.0 + org.jdom + jdom + jar + + JDOM + 1.1.3 + + + 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 + + + + + + jaxen + jaxen + 1.1.3 + true + + + xerces + xercesImpl + 2.10.0 + true + + + + + + 1.2 + + \ No newline at end of file diff --git a/jdom-1.1.3.tar.gz b/jdom-1.1.3.tar.gz new file mode 100644 index 0000000..a5bfa11 Binary files /dev/null and b/jdom-1.1.3.tar.gz differ diff --git a/jdom-crosslink.patch b/jdom-crosslink.patch new file mode 100644 index 0000000..a21cbd8 --- /dev/null +++ b/jdom-crosslink.patch @@ -0,0 +1,11 @@ +--- a/build.xml.orig 2010-02-05 12:37:26.594658382 +0000 ++++ b/build.xml 2010-02-05 12:38:09.201658171 +0000 +@@ -277,7 +277,7 @@ + bottom="Copyright © ${year} Jason Hunter, Brett McLaughlin. All Rights Reserved."> + + +- ++ + + + diff --git a/jdom.spec b/jdom.spec new file mode 100644 index 0000000..cfd9679 --- /dev/null +++ b/jdom.spec @@ -0,0 +1,65 @@ +Name: jdom +Version: 1.1.3 +Release: 18 +Epoch: 0 +Summary: Java alternative for DOM and SAX +License: Saxpath +URL: http://www.jdom.org/ +Source0: http://jdom.org/dist/binary/archive/jdom-%{version}.tar.gz +Source1: https://repo1.maven.org/maven2/org/jdom/jdom/%{version}/jdom-%{version}.pom +Patch0000: jdom-crosslink.patch +Patch0001: jdom-1.1-OSGiManifest.patch + +BuildRequires: ant javapackages-local mvn(jaxen:jaxen) mvn(xerces:xercesImpl) +BuildArch: noarch + +%description +JDOM is a Java representation of an XML document and it provides a way to represent +that document for easy and efficient reading, manipulation, and writing. +It's an alternative to DOM and SAX, although it integrates well with both DOM and SAX. + +%package help +Summary: Help documents for jdom +Provides: jdom-javadoc = %{version}-%{release} +Obsoletes: jdom-javadoc < %{version}-%{release} + +%description help +The package contains man pages and other related documents for jdom. + +%package demo +Summary: Demos for jdom +Requires: jdom = %{epoch}:%{version}-%{release} + +%description demo +The package contains demonstrations and samples for jdom. + +%prep +%autosetup -n jdom -p1 +find . -name "*.jar" -exec rm -f {} \; +find . -name "*.class" -exec rm -f {} \; + +%build +export CLASSPATH=$(build-classpath xerces-j2 jaxen) +ant -Dj2se.apidoc=%{_javadocdir}/java package javadoc-link + +%install +%mvn_file : jdom +%mvn_alias : jdom:jdom +%mvn_artifact %{SOURCE1} build/jdom-*-snap.jar +%mvn_install -J build/apidocs +install -d %{buildroot}%{_datadir}/jdom +cp -pr samples %{buildroot}%{_datadir}/jdom + +%files -f .mfiles +%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt LICENSE.txt + +%files help -f .mfiles-javadoc +%doc LICENSE.txt + +%files demo +%{_datadir}/jdom +%doc LICENSE.txt + +%changelog +* Mon Jun 8 2020 leiju - 1.1.3-18 +- Package init diff --git a/jdom.yaml b/jdom.yaml new file mode 100644 index 0000000..004f0ba --- /dev/null +++ b/jdom.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/hunterhacker/jdom +version_control: github +src_repo: hunterhacker/jdom +tag_prefix: "JDOM-" +seperator: "."