From ec4d2c82523fd15f88aa6e9cf6e5398775a4c871dd69182758882bbdc5e9848e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 02:15:38 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main xpp3 revision 3c4158209378fe15cef941bdaab61ea5 --- .gitattributes | 23 ++++++ xpp3-1.1.4c-OSGI-MANIFEST.MF | 19 +++++ xpp3-1.1.4c.pom | 40 ++++++++++ xpp3-1.1.4c_src.tgz | 3 + xpp3-sourcetarget.patch | 140 +++++++++++++++++++++++++++++++++++ xpp3.changes | 63 ++++++++++++++++ xpp3.spec | 140 +++++++++++++++++++++++++++++++++++ xpp3_min-1.1.4c.pom | 32 ++++++++ xpp3_xpath-1.1.4c.pom | 25 +++++++ 9 files changed, 485 insertions(+) create mode 100644 .gitattributes create mode 100644 xpp3-1.1.4c-OSGI-MANIFEST.MF create mode 100644 xpp3-1.1.4c.pom create mode 100644 xpp3-1.1.4c_src.tgz create mode 100644 xpp3-sourcetarget.patch create mode 100644 xpp3.changes create mode 100644 xpp3.spec create mode 100644 xpp3_min-1.1.4c.pom create mode 100644 xpp3_xpath-1.1.4c.pom diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/xpp3-1.1.4c-OSGI-MANIFEST.MF b/xpp3-1.1.4c-OSGI-MANIFEST.MF new file mode 100644 index 0000000..2942019 --- /dev/null +++ b/xpp3-1.1.4c-OSGI-MANIFEST.MF @@ -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 diff --git a/xpp3-1.1.4c.pom b/xpp3-1.1.4c.pom new file mode 100644 index 0000000..ca41ce9 --- /dev/null +++ b/xpp3-1.1.4c.pom @@ -0,0 +1,40 @@ + + 4.0.0 + xpp3 + xpp3 + 1.1.4c + jar + MXP1: Xml Pull Parser 3rd Edition (XPP3) + http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/ + 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+. + + + Indiana University Extreme! Lab Software License, vesion 1.1.1 + http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt + repo + The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 ) + + + Public Domain + http://creativecommons.org/licenses/publicdomain + repo + The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package) + + + Apache Software License, version 1.1 + http://www.apache.org/licenses/LICENSE-1.1 + repo + The license applies to the class javax.xml.namespace.QName + + + + http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/ + + + Extreme! Lab, Indiana University + http://www.extreme.indiana.edu/ + + + diff --git a/xpp3-1.1.4c_src.tgz b/xpp3-1.1.4c_src.tgz new file mode 100644 index 0000000..f1dcc1c --- /dev/null +++ b/xpp3-1.1.4c_src.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ee05bec097e70ecf0e9833a1e955ffca0793ac61fde1ef78402087f52835251 +size 571158 diff --git a/xpp3-sourcetarget.patch b/xpp3-sourcetarget.patch new file mode 100644 index 0000000..4c41ed2 --- /dev/null +++ b/xpp3-sourcetarget.patch @@ -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 @@ + + + +- + + + + + +- + + + + +- + + +@@ -249,12 +249,12 @@ + + + +- + + + +- + + +@@ -267,20 +267,20 @@ + + + +- + + + + +- + + + +- +- + + +@@ -298,7 +298,7 @@ + + + +- + + +@@ -312,7 +312,7 @@ + + + +- + + +@@ -328,7 +328,7 @@ + + + +- + + +@@ -344,7 +344,7 @@ + + + +- + + +@@ -358,7 +358,7 @@ + + + +- + + +@@ -389,7 +389,7 @@ + + + +- + + +@@ -424,7 +424,7 @@ + + +- +@@ -433,8 +433,8 @@ + + +- + + diff --git a/xpp3.changes b/xpp3.changes new file mode 100644 index 0000000..cd2bc07 --- /dev/null +++ b/xpp3.changes @@ -0,0 +1,63 @@ +------------------------------------------------------------------- +Fri Jan 12 11:37:59 UTC 2024 - Fridrich Strba + +- Clean up the spec file and cater for broken URLs + +------------------------------------------------------------------- +Fri Mar 18 17:47:34 UTC 2022 - Fridrich Strba + +- Modified patch: + * xpp3-sourcetarget.patch + + Build with source/target levels 8 + +------------------------------------------------------------------- +Fri Nov 23 12:43:24 UTC 2018 - Fridrich Strba + +- Add OSGi manifest to xpp3-1.1.4c.jar + +------------------------------------------------------------------- +Fri Oct 19 20:38:27 UTC 2018 - Fridrich Strba + +- 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) + diff --git a/xpp3.spec b/xpp3.spec new file mode 100644 index 0000000..b3349a5 --- /dev/null +++ b/xpp3.spec @@ -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 diff --git a/xpp3_min-1.1.4c.pom b/xpp3_min-1.1.4c.pom new file mode 100644 index 0000000..b55d6dd --- /dev/null +++ b/xpp3_min-1.1.4c.pom @@ -0,0 +1,32 @@ + + 4.0.0 + xpp3 + xpp3_min + 1.1.4c + jar + MXP1: Xml Pull Parser 3rd Edition (XPP3) + http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/ + 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+. + + + Indiana University Extreme! Lab Software License, vesion 1.1.1 + http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt + repo + The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 ) + + + 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://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/ + + + Extreme! Lab, Indiana University + http://www.extreme.indiana.edu/ + + + diff --git a/xpp3_xpath-1.1.4c.pom b/xpp3_xpath-1.1.4c.pom new file mode 100644 index 0000000..218d60d --- /dev/null +++ b/xpp3_xpath-1.1.4c.pom @@ -0,0 +1,25 @@ + + 4.0.0 + xpp3 + xpp3_xpath + 1.1.4c + jar + MXP1: Xml Pull Parser 3rd Edition (XPP3) + http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/ + 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+. + + + Indiana University Extreme! Lab Software License, vesion 1.1.1 + http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt + repo + + + + http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/ + + + Extreme! Lab, Indiana University + http://www.extreme.indiana.edu/ + + +