!1 Package Init

Merge pull request !1 from 窃格瓦拉/master
This commit is contained in:
openeuler-ci-bot 2020-02-18 11:39:28 +08:00 committed by Gitee
commit 97b597ed36
6 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,34 @@
From 4163fd75bd60cf559cfb677194a8bfbef2b60f98 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
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 @@
<delete dir="tmpclasses"/>
<mkdir dir="tmpclasses"/>
- <unzip src="lib/xmlpull_1_1_3_1.jar" dest="tmpclasses" overwrite="true"/>
-
<!-- debug="off" -->
<javac srcdir="src" verbose="true"
@@ -68,8 +66,6 @@
<jar jarfile="dist/kxml2-min-${version}.jar">
<fileset dir="tmpclasses">
<!-- <include name="META-INF/**"/> -->
- <include name="org/xmlpull/v1/XmlPullParser.class"/>
- <include name="org/xmlpull/v1/XmlPullParserException.class"/>
<include name="org/kxml2/io/KXmlParser.class"/>
</fileset>
</jar>
--
2.5.0

View File

@ -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

52
kxml.spec Normal file
View File

@ -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 <lihao129@huawei.com> - 2.3.0-19
- Package init

32
kxml2-2.3.0.pom Normal file
View File

@ -0,0 +1,32 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.sf.kxml</groupId>
<artifactId>kxml2</artifactId>
<version>2.3.0</version>
<packaging>jar</packaging>
<name>kXML 2 is a small XML pull parser based on the common XML pull API</name>
<url>http://kxml.sourceforge.net/</url>
<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 the common XML pull API.</description>
<licenses>
<license>
<name>BSD style</name>
<url>http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/license.txt?view=markup</url>
<distribution>repo</distribution>
<comments>The license applies to the kXML2 classes (all classes below the org.kxml2 package).</comments>
</license>
<license>
<name>Public Domain</name>
<url>http://creativecommons.org/licenses/publicdomain</url>
<distribution>repo</distribution>
<comments>The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package)</comments>
</license>
</licenses>
<scm>
<url>http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/</url>
</scm>
<organization>
<name>Stefan Haustein, Oberhausen, Rhld., Germany</name>
<url>http://kxml.sourceforge.net/</url>
</organization>
<dependencies/>
</project>

32
kxml2-min-2.3.0.pom Normal file
View File

@ -0,0 +1,32 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.sf.kxml</groupId>
<artifactId>kxml2-min</artifactId>
<version>2.3.0</version>
<packaging>jar</packaging>
<name>kXML 2 is a small XML pull parser based on the common XML pull API</name>
<url>http://kxml.sourceforge.net/</url>
<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 the common XML pull API. This archive contains only the kXML 2 parser.</description>
<licenses>
<license>
<name>BSD style</name>
<url>http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/license.txt?view=markup</url>
<distribution>repo</distribution>
<comments>The license applies to the kXML2 classes (all classes below the org.kxml2 package).</comments>
</license>
<license>
<name>Public Domain</name>
<url>http://creativecommons.org/licenses/publicdomain</url>
<distribution>repo</distribution>
<comments>The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package)</comments>
</license>
</licenses>
<scm>
<url>http://kxml.cvs.sourceforge.net/viewvc/kxml/kxml2/</url>
</scm>
<organization>
<name>Stefan Haustein, Oberhausen, Rhld., Germany</name>
<url>http://kxml.sourceforge.net/</url>
</organization>
<dependencies/>
</project>

BIN
kxml2-src-2.3.0.zip Normal file

Binary file not shown.