diff --git a/0001-Unbundle-xpp3-classes.patch b/0001-Unbundle-xpp3-classes.patch new file mode 100644 index 0000000..a76f50c --- /dev/null +++ b/0001-Unbundle-xpp3-classes.patch @@ -0,0 +1,34 @@ +From 4163fd75bd60cf559cfb677194a8bfbef2b60f98 Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Tue, 19 Jan 2016 10:35:19 +0100 +Subject: [PATCH] Unbundle xpp3 classes + +--- + build.xml | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/build.xml b/build.xml +index 780e516..bbc4536 100644 +--- a/build.xml ++++ b/build.xml +@@ -41,8 +41,6 @@ + + + +- +- + + + + + +- +- + + + +-- +2.5.0 + diff --git a/kxml-2.3.0-OSGI-MANIFEST.MF b/kxml-2.3.0-OSGI-MANIFEST.MF new file mode 100644 index 0000000..27d3ffd --- /dev/null +++ b/kxml-2.3.0-OSGI-MANIFEST.MF @@ -0,0 +1,12 @@ +Bundle-SymbolicName: org.kxml2 +Export-Package: org.kxml2.io;version="2.3.0", + org.kxml2.kdom;version="2.3.0", + org.kxml2.wap;version="2.3.0", + org.kxml2.syncml;version="2.3.0", + org.kxml2.wml;version="2.3.0", + org.kxml2.wv;version="2.3.0" +Import-Package: org.xmlpull.v1 +Bundle-Version: 2.3.0 +Bundle-Vendor: fedoraproject.org +Bundle-Name: kxml2-2.3.0 +Bundle-ManifestVersion: 2 diff --git a/kxml.spec b/kxml.spec new file mode 100644 index 0000000..0878819 --- /dev/null +++ b/kxml.spec @@ -0,0 +1,52 @@ +Name: kxml +Version: 2.3.0 +Release: 19 +Summary: Small XmlPull compatible parser +License: MIT +URL: http://kxml.sourceforge.net/ +Source0: https://iweb.dl.sourceforge.net/project/kxml/kxml2/2.3.0/kxml2-src-2.3.0.zip +Source1: http://repo1.maven.org/maven2/net/sf/kxml/kxml2/%{version}/kxml2-%{version}.pom +Source2: http://repo1.maven.org/maven2/net/sf/kxml/kxml2-min/%{version}/kxml2-min-%{version}.pom +Source3: %{name}-%{version}-OSGI-MANIFEST.MF + +Patch0001: 0001-Unbundle-xpp3-classes.patch + +BuildRequires: javapackages-local ant xpp3 >= 0:1.1.3.1 +Requires: xpp3 >= 0:1.1.3.1 +BuildArch: noarch + +%description +kXML is a small XML pull parser, specially designed for constrained environments such as Applets, Personal +Java or MIDP devices. In contrast to kXML 1, kXML 2 is based on theXML pull API. + +%package help +Summary: Help package for kxml +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +This package contains the API help documentation for kxml. + +%prep +%autosetup -c -n %{name}-%{version} -p1 + +%build +export OPT_JAR_LIST=xpp3 +ant +jar ufm dist/%{name}2-%{version}.jar %{SOURCE3} +%mvn_artifact %{SOURCE1} dist/%{name}2-%{version}.jar +%mvn_artifact %{SOURCE2} dist/%{name}2-min-%{version}.jar +%mvn_file :kxml2 kxml/kxml2 kxml +%mvn_file :kxml2-min kxml/kxml2-min kxml-min + +%install +%mvn_install -J www/kxml2/javadoc + +%files -f .mfiles +%license license.txt + +%files help -f .mfiles-javadoc + +%changelog +* Tue Feb 18 2020 lihao - 2.3.0-19 +- Package init diff --git a/kxml2-2.3.0.pom b/kxml2-2.3.0.pom new file mode 100644 index 0000000..0877547 --- /dev/null +++ b/kxml2-2.3.0.pom @@ -0,0 +1,32 @@ + + 4.0.0 + net.sf.kxml + kxml2 + 2.3.0 + jar + kXML 2 is a small XML pull parser based on the common XML pull API + http://kxml.sourceforge.net/ + kXML is a small XML pull parser, specially designed for constrained environments such as Applets, Personal Java or MIDP devices. In contrast to kXML 1, kXML 2 is based on the common XML pull API. + + + BSD style + http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/license.txt?view=markup + repo + The license applies to the kXML2 classes (all classes below the org.kxml2 package). + + + Public Domain + http://creativecommons.org/licenses/publicdomain + repo + The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package) + + + + http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/ + + + Stefan Haustein, Oberhausen, Rhld., Germany + http://kxml.sourceforge.net/ + + + diff --git a/kxml2-min-2.3.0.pom b/kxml2-min-2.3.0.pom new file mode 100644 index 0000000..df28f9d --- /dev/null +++ b/kxml2-min-2.3.0.pom @@ -0,0 +1,32 @@ + + 4.0.0 + net.sf.kxml + kxml2-min + 2.3.0 + jar + kXML 2 is a small XML pull parser based on the common XML pull API + http://kxml.sourceforge.net/ + kXML is a small XML pull parser, specially designed for constrained environments such as Applets, Personal Java or MIDP devices. In contrast to kXML 1, kXML 2 is based on the common XML pull API. This archive contains only the kXML 2 parser. + + + BSD style + http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/license.txt?view=markup + repo + The license applies to the kXML2 classes (all classes below the org.kxml2 package). + + + Public Domain + http://creativecommons.org/licenses/publicdomain + repo + The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package) + + + + http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/ + + + Stefan Haustein, Oberhausen, Rhld., Germany + http://kxml.sourceforge.net/ + + + diff --git a/kxml2-src-2.3.0.zip b/kxml2-src-2.3.0.zip new file mode 100644 index 0000000..39e975b Binary files /dev/null and b/kxml2-src-2.3.0.zip differ