Sync from SUSE:ALP:Source:Standard:1.0 xpp3 revision 3c4158209378fe15cef941bdaab61ea5

This commit is contained in:
Adrian Schröter 2024-02-20 09:29:06 +01:00
commit e5aea3d8db
9 changed files with 485 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

View File

@ -0,0 +1,19 @@
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.xmlpull
Bundle-Version: 1.1.4
Export-Package: org.xmlpull.mxp1,
org.xmlpull.mxp1_serializer,
org.xmlpull.v1,
org.xmlpull.v1.builder,
org.xmlpull.v1.builder.adapter,
org.xmlpull.v1.builder.impl,
org.xmlpull.v1.dom2_builder,
org.xmlpull.v1.parser_pool,
org.xmlpull.v1.sax2,
org.xmlpull.v1.util,
org.xmlpull.v1.wrapper,
org.xmlpull.v1.wrapper.classic
Import-Package: javax.xml.parsers;resolution:=optional,
org.w3c.dom;resolution:=optional,
org.xml.sax;resolution:=optional,
org.xml.sax.helpers;resolution:=optional

40
xpp3-1.1.4c.pom Normal file
View File

@ -0,0 +1,40 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.4c</version>
<packaging>jar</packaging>
<name>MXP1: Xml Pull Parser 3rd Edition (XPP3)</name>
<url>http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/</url>
<description>MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.</description>
<licenses>
<license>
<name>Indiana University Extreme! Lab Software License, vesion 1.1.1</name>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt</url>
<distribution>repo</distribution>
<comments>The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 )</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>
<license>
<name>Apache Software License, version 1.1</name>
<url>http://www.apache.org/licenses/LICENSE-1.1</url>
<distribution>repo</distribution>
<comments>The license applies to the class javax.xml.namespace.QName</comments>
</license>
</licenses>
<scm>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/</url>
</scm>
<organization>
<name>Extreme! Lab, Indiana University</name>
<url>http://www.extreme.indiana.edu/</url>
</organization>
<dependencies/>
</project>

BIN
xpp3-1.1.4c_src.tgz (Stored with Git LFS) Normal file

Binary file not shown.

140
xpp3-sourcetarget.patch Normal file
View File

@ -0,0 +1,140 @@
--- xpp3-1.1.4c/build.xml 2006-11-11 02:41:08.000000000 +0100
+++ xpp3-1.1.4c/build.xml 2017-09-11 18:57:52.820569880 +0200
@@ -220,20 +220,20 @@
<target name="api" depends="prepare,update_api">
<mkdir dir="${build_api}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_api}" destdir="${build_api}" classpath="${build_api}"/>
</target>
<target name="impl_min" depends="prepare,api">
<mkdir dir="${build_classes_min}"/>
<touch file="${build_classes_min}/${xpp3_tag}_MIN_VERSION"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_api}" destdir="${build_classes_min}" classpath="${build_classes_min}">
<include name="**/*.java"/>
<exclude name="**/*Factory.java"/>
<exclude name="**/*Serializer.java"/>
</javac>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_impl_min}" destdir="${build_classes_min}" classpath="${build_classes_min}"/>
<mkdir dir="${build_classes_min}/META-INF/services"/>
<copy todir="${build_classes_min}/META-INF/services">
@@ -249,12 +249,12 @@
</target>
<target name="serializer" depends="prepare,api">
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_impl_serializer}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
<target name="builder" depends="prepare,api">
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_builder}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
@@ -267,20 +267,20 @@
<target name="xpath" depends="builder">
<mkdir dir="${build_xpath}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_xpath}" destdir="${build_xpath}" classpath="${build_api}:${build_classes}"/>
</target>
<target name="xpath_samples" depends="check_junit,xpath" if="junit_present">
<mkdir dir="${build_samples}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_xpath_samples}" destdir="${build_samples}" classpath="${build_api}:${build_classes}:${build_xpath}"/>
</target>
<target name="impl" depends="impl_min,serializer">
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_impl_min}" destdir="${build_classes}" classpath="${build_api}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_impl_standard}" destdir="${build_classes}" classpath="${build_api}"/>
<mkdir dir="${build_classes}/META-INF/services"/>
<copy todir="${build_classes}/META-INF/services">
@@ -298,7 +298,7 @@
<target name="parser_pool" depends="api,update_parser_pool">
<mkdir dir="${build_classes}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_parser_pool}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
@@ -312,7 +312,7 @@
<target name="dom2_builder" depends="api,check_dom2,update_dom2_builder">
<mkdir dir="${build_classes}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_dom2_builder}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
@@ -328,7 +328,7 @@
<target name="sax2_driver" depends="api,check_sax2,update_sax2_driver">
<mkdir dir="${build_classes}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_sax2_driver}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
@@ -344,7 +344,7 @@
<target name="util" depends="api,update_util">
<mkdir dir="${build_classes}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_util}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
@@ -358,7 +358,7 @@
<target name="wrapper" depends="api,util,update_wrapper">
<mkdir dir="${build_classes}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_wrapper}" destdir="${build_classes}" classpath="${build_api}"/>
</target>
@@ -389,7 +389,7 @@
<target name="xmlpull_samples" depends="api,update_samples">
<mkdir dir="${build_samples}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_samples}" destdir="${build_samples}" classpath="${build_api}"/>
</target>
@@ -424,7 +424,7 @@
<target name="tests_addons" if="junit_present"
depends="check_junit,impl,update_tests,wrapper,dom2_builder">
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
srcdir="${src_addons_tests}" destdir="${build_tests}"
classpath="${build_api}:${build_classes}"
/>
@@ -433,8 +433,8 @@
<target name="tests_main" if="junit_present"
depends="check_junit,impl,update_tests">
<mkdir dir="${build_tests}"/>
- <javac debug="${debug}" deprecation="${deprecation}" source="1.2" target="1.1"
- srcdir="${src_tests}" destdir="${build_tests}" classpath="${build_api}"
+ <javac debug="${debug}" deprecation="${deprecation}" source="1.8" target="1.8"
+ srcdir="${src_tests}" destdir="${build_tests}" classpath="${build_api}" encoding="ISO-8859-1"
/>
<copy todir="${build_tests_xml}">
<fileset dir="${src_xml_tests}">

63
xpp3.changes Normal file
View File

@ -0,0 +1,63 @@
-------------------------------------------------------------------
Fri Jan 12 11:37:59 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Clean up the spec file and cater for broken URLs
-------------------------------------------------------------------
Fri Mar 18 17:47:34 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* xpp3-sourcetarget.patch
+ Build with source/target levels 8
-------------------------------------------------------------------
Fri Nov 23 12:43:24 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Add OSGi manifest to xpp3-1.1.4c.jar
-------------------------------------------------------------------
Fri Oct 19 20:38:27 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Install maven pom files and generate mvn(...) provides
-------------------------------------------------------------------
Mon Sep 11 16:58:24 UTC 2017 - fstrba@suse.com
- Added patch:
* xpp3-sourcetarget.patch
+ Specify java soirce and target level 1.6 in order to allow
building with jdk9
+ Specify encoding ISO-8859-1 for files with non-ASCII
characters
-------------------------------------------------------------------
Fri May 19 16:26:28 UTC 2017 - tchvatal@suse.com
- Do not require javapackage-tools
-------------------------------------------------------------------
Thu Dec 4 19:34:27 UTC 2014 - p.drouand@gmail.com
- Remove redundant %clean section
-------------------------------------------------------------------
Thu Dec 4 18:59:47 UTC 2014 - p.drouand@gmail.com
- Update to version 1.1.4c
+ The changes file doesn't contain an entry for 1.1.4c release
-------------------------------------------------------------------
Fri Jul 11 13:50:12 UTC 2014 - tchvatal@suse.com
- Do not version java docdir.
-------------------------------------------------------------------
Mon Sep 9 11:06:31 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Tue May 12 15:33:12 CEST 2009 - mvyskocil@suse.cz
- Initial SUSE packaging of xpp3 1.1.3.8 (from jpp 5.0)

140
xpp3.spec Normal file
View File

@ -0,0 +1,140 @@
#
# spec file for package xpp3
#
# Copyright (c) 2024 SUSE LLC
#
# 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: xpp3
Version: 1.1.4c
Release: 0
Summary: XML Pull Parser
License: Apache-1.1
Group: Development/Libraries/Java
URL: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
# The http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/ does not exist any
# more. So we used our cached tarball
Source0: xpp3-%{version}_src.tgz
Source1: https://repo1.maven.org/maven2/xpp3/xpp3/%{version}/xpp3-%{version}.pom
Source2: https://repo1.maven.org/maven2/xpp3/xpp3_min/%{version}/xpp3_min-%{version}.pom
Source3: https://repo1.maven.org/maven2/xpp3/xpp3_xpath/%{version}/xpp3_xpath-%{version}.pom
Source4: %{name}-%{version}-OSGI-MANIFEST.MF
Patch0: xpp3-sourcetarget.patch
BuildRequires: ant >= 1.6
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6
BuildRequires: junit
BuildRequires: perl
BuildRequires: xml-commons-apis
BuildArch: noarch
%description
Xml Pull Parser 3rd Edition (XPP3) MXP1 is a new XmlPull parsing engine
that is based on ideas from XPP and in particular XPP2 but completely
revised and rewritten to take best advantage of latest JIT JVMs such as
Hotspot in JDK 1.4.
%package minimal
Summary: XML Pull Parser
Group: Development/Libraries/Java
%description minimal
Xml Pull Parser 3rd Edition (XPP3) MXP1 is a new XmlPull parsing engine
that is based on ideas from XPP and in particular XPP2 but completely
revised and rewritten to take best advantage of latest JIT JVMs such as
Hotspot in JDK 1.4.
%package javadoc
Summary: XML Pull Parser
Group: Development/Libraries/Java
%description javadoc
Xml Pull Parser 3rd Edition (XPP3) MXP1 is a new XmlPull parsing engine
that is based on ideas from XPP and in particular XPP2 but completely
revised and rewritten to take best advantage of latest JIT JVMs such as
Hotspot in JDK 1.4.
%prep
%setup -q
%patch0 -p1
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
# "src/java/addons_tests" does not exist
sed -i 's|depends="junit_main,junit_addons"|depends="junit_main"|' build.xml
%build
export CLASSPATH=$(build-classpath xml-commons-apis junit)
ant xpp3 junit apidoc
# Add OSGi metadata
jar ufm build/%{name}-%{version}.jar %{SOURCE4}
%install
# jars
mkdir -p %{buildroot}%{_javadir}
cp -p build/%{name}-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
cp -p build/%{name}_min-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-minimal-%{version}.jar
cp -p build/%{name}_xpath-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-xpath-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name}
rm -rf doc/{build.txt,api}
# Install pom file
install -d -m 755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-minimal.pom
%{mvn_install_pom} %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-xpath.pom
%add_maven_depmap %{name}.pom %{name}.jar
%add_maven_depmap %{name}-minimal.pom %{name}-minimal.jar -f minimal
%add_maven_depmap %{name}-xpath.pom %{name}-xpath.jar -f xpath
%files
%defattr(0644,root,root,0755)
%license LICENSE.txt
%doc README.html doc/*
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}-xpath.jar
%{_javadir}/%{name}-xpath-%{version}.jar
%{_mavenpomdir}/%{name}.pom
%{_mavenpomdir}/%{name}-xpath.pom
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%{_mavendepmapfragdir}/%{name}-xpath
%else
%{_datadir}/maven-metadata/%{name}.xml*
%{_datadir}/maven-metadata/%{name}-xpath.xml*
%endif
%files minimal
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-minimal.jar
%{_javadir}/%{name}-minimal-%{version}.jar
%{_mavenpomdir}/%{name}-minimal.pom
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}-minimal
%else
%{_datadir}/maven-metadata/%{name}-minimal.xml*
%endif
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}
%changelog

32
xpp3_min-1.1.4c.pom Normal file
View File

@ -0,0 +1,32 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>xpp3</groupId>
<artifactId>xpp3_min</artifactId>
<version>1.1.4c</version>
<packaging>jar</packaging>
<name>MXP1: Xml Pull Parser 3rd Edition (XPP3)</name>
<url>http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/</url>
<description>MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.</description>
<licenses>
<license>
<name>Indiana University Extreme! Lab Software License, vesion 1.1.1</name>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt</url>
<distribution>repo</distribution>
<comments>The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 )</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://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/</url>
</scm>
<organization>
<name>Extreme! Lab, Indiana University</name>
<url>http://www.extreme.indiana.edu/</url>
</organization>
<dependencies/>
</project>

25
xpp3_xpath-1.1.4c.pom Normal file
View File

@ -0,0 +1,25 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>xpp3</groupId>
<artifactId>xpp3_xpath</artifactId>
<version>1.1.4c</version>
<packaging>jar</packaging>
<name>MXP1: Xml Pull Parser 3rd Edition (XPP3)</name>
<url>http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/</url>
<description>MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.</description>
<licenses>
<license>
<name>Indiana University Extreme! Lab Software License, vesion 1.1.1</name>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/</url>
</scm>
<organization>
<name>Extreme! Lab, Indiana University</name>
<url>http://www.extreme.indiana.edu/</url>
</organization>
<dependencies/>
</project>