Sync from SUSE:ALP:Source:Standard:1.0 kxml revision 110ea17a14b483d6146d288595107966
This commit is contained in:
commit
61c90c8e1b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
34
0001-Unbundle-xpp3-classes.patch
Normal file
34
0001-Unbundle-xpp3-classes.patch
Normal 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
|
||||
|
21
create-tarball.sh
Normal file
21
create-tarball.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: ./create-tarball VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION=${1}
|
||||
NAME="kxml"
|
||||
|
||||
wget https://downloads.sourceforge.net/sourceforge/${NAME}/${NAME}2-src-${VERSION}.zip
|
||||
unzip -d ${NAME}-${VERSION} ${NAME}2-src-${VERSION}.zip
|
||||
rm ${NAME}2-src-${VERSION}.zip
|
||||
|
||||
( cd ${NAME}-${VERSION}
|
||||
find . -name "*.jar" -delete
|
||||
rm -Rf bin/ dist/* www/ samples_midp/ samples/ contrib/
|
||||
)
|
||||
|
||||
tar cJvf ${NAME}-${VERSION}-clean.tar.xz ./${NAME}-${VERSION}
|
||||
|
12
kxml-2.3.0-OSGI-MANIFEST.MF
Normal file
12
kxml-2.3.0-OSGI-MANIFEST.MF
Normal 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
|
BIN
kxml-2.3.0-clean.tar.xz
(Stored with Git LFS)
Normal file
BIN
kxml-2.3.0-clean.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
55
kxml-2.3.0-fix_build.patch
Normal file
55
kxml-2.3.0-fix_build.patch
Normal file
@ -0,0 +1,55 @@
|
||||
diff -urEbwB kxml-2.3.0/build.xml kxml-2.3.0.new/build.xml
|
||||
--- kxml-2.3.0/build.xml 2006-06-22 18:31:10.000000000 +0200
|
||||
+++ kxml-2.3.0.new/build.xml 2018-11-22 14:49:47.427183267 +0100
|
||||
@@ -4,21 +4,29 @@
|
||||
<project name="kxml2" default="build" basedir=".">
|
||||
|
||||
<property name="version" value="2.3.0" />
|
||||
+ <property name="javac.source" value="1.8" />
|
||||
+ <property name="javac.target" value="1.8" />
|
||||
|
||||
|
||||
<target name="javadoc">
|
||||
<delete dir="www/kxml2/javadoc"/>
|
||||
<mkdir dir="www/kxml2/javadoc"/>
|
||||
- <javadoc packagenames="org.kxml2.*" classpath="lib/xmlpull_1_1_3_1.jar"
|
||||
+ <javadoc packagenames="org.kxml2.*"
|
||||
public="yes"
|
||||
+ source="${javac.source}"
|
||||
sourcepath="src"
|
||||
destdir="www/kxml2/javadoc"
|
||||
author="true"
|
||||
version="true"
|
||||
use="true"
|
||||
windowtitle="kxml API"
|
||||
- doctitle="kxml API"
|
||||
- />
|
||||
+ doctitle="kxml API">
|
||||
+ <classpath>
|
||||
+ <fileset dir="lib">
|
||||
+ <include name="**/*.jar"/>
|
||||
+ </fileset>
|
||||
+ </classpath>
|
||||
+ </javadoc>
|
||||
</target>
|
||||
|
||||
|
||||
@@ -48,9 +56,15 @@
|
||||
<javac srcdir="src" verbose="true"
|
||||
destdir="tmpclasses"
|
||||
optimize="true"
|
||||
- target="1.2"
|
||||
- source="1.2"
|
||||
- debuglevel="none"/>
|
||||
+ target="${javac.target}"
|
||||
+ source="${javac.source}"
|
||||
+ debuglevel="none">
|
||||
+ <classpath>
|
||||
+ <fileset dir="lib">
|
||||
+ <include name="**/*.jar"/>
|
||||
+ </fileset>
|
||||
+ </classpath>
|
||||
+ </javac>
|
||||
|
||||
<mkdir dir="dist"/>
|
||||
|
18
kxml.changes
Normal file
18
kxml.changes
Normal file
@ -0,0 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 7 17:26:43 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Fetch the sources using https instead of http protocol
|
||||
* fixes bsc#1182284
|
||||
- Create *.tar.xz instead of *.tar.gz
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 23 07:07:25 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Modified patch:
|
||||
* kxml-2.3.0-fix_build.patch
|
||||
+ specify java source and target levels 1.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 3 14:51:56 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Initial packaging of kxml 2.3.0
|
85
kxml.spec
Normal file
85
kxml.spec
Normal file
@ -0,0 +1,85 @@
|
||||
#
|
||||
# spec file for package kxml
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2000-2008, JPackage Project
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: kxml
|
||||
Version: 2.3.0
|
||||
Release: 0
|
||||
Summary: Small XML pull parser
|
||||
License: MIT
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://kxml.sourceforge.net/
|
||||
# ./create-tarball.sh %%{version}
|
||||
Source0: %{name}-%{version}-clean.tar.xz
|
||||
Source1: https://repo1.maven.org/maven2/net/sf/kxml/kxml2/%{version}/kxml2-%{version}.pom
|
||||
Source2: https://repo1.maven.org/maven2/net/sf/kxml/kxml2-min/%{version}/kxml2-min-%{version}.pom
|
||||
Source3: %{name}-%{version}-OSGI-MANIFEST.MF
|
||||
Source100: create-tarball.sh
|
||||
Patch0: 0001-Unbundle-xpp3-classes.patch
|
||||
Patch1: kxml-2.3.0-fix_build.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: xmvn-install
|
||||
BuildRequires: xmvn-resolve
|
||||
BuildRequires: xpp3 >= 1.1.3.1
|
||||
Requires: xpp3 >= 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.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
Group: Documentation/HTML
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib 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
|
||||
|
||||
# Compat symlinks
|
||||
%{mvn_file} :kxml2 kxml/kxml2 kxml
|
||||
%{mvn_file} :kxml2-min kxml/kxml2-min kxml-min
|
||||
|
||||
%install
|
||||
%mvn_install -J www/kxml2/javadoc
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%license license.txt
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license license.txt
|
||||
|
||||
%changelog
|
32
kxml2-2.3.0.pom
Normal file
32
kxml2-2.3.0.pom
Normal 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
32
kxml2-min-2.3.0.pom
Normal 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>
|
Loading…
Reference in New Issue
Block a user