From d7f6fa0d5b7b6238333924101b365dd44a29429f387e583f88339a886e1c03d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 02:08:52 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main xml-commons-apis revision 61d1f3e02bfb434c7e15cd73dde22992 --- .gitattributes | 23 ++++ xml-apis-2.0.2.pom | 13 +++ xml-apis-ext-1.3.04.pom | 41 +++++++ xml-commons-apis-MANIFEST.MF | 24 +++++ xml-commons-apis-ext-MANIFEST.MF | 11 ++ xml-commons-apis.changes | 37 +++++++ xml-commons-apis.spec | 144 +++++++++++++++++++++++++ xml-commons-external-1.4.01-src.tar.xz | 3 + 8 files changed, 296 insertions(+) create mode 100644 .gitattributes create mode 100644 xml-apis-2.0.2.pom create mode 100644 xml-apis-ext-1.3.04.pom create mode 100644 xml-commons-apis-MANIFEST.MF create mode 100644 xml-commons-apis-ext-MANIFEST.MF create mode 100644 xml-commons-apis.changes create mode 100644 xml-commons-apis.spec create mode 100644 xml-commons-external-1.4.01-src.tar.xz 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/xml-apis-2.0.2.pom b/xml-apis-2.0.2.pom new file mode 100644 index 0000000..8fa3be1 --- /dev/null +++ b/xml-apis-2.0.2.pom @@ -0,0 +1,13 @@ + + 4.0.0 + xml-apis + xml-apis + 2.0.2 + + + xml-apis + xml-apis + 1.0.b2 + + + \ No newline at end of file diff --git a/xml-apis-ext-1.3.04.pom b/xml-apis-ext-1.3.04.pom new file mode 100644 index 0000000..2d57514 --- /dev/null +++ b/xml-apis-ext-1.3.04.pom @@ -0,0 +1,41 @@ + + + apache + org.apache + 3 + + 4.0.0 + xml-apis + xml-apis-ext + XML Commons External Components XML APIs Extensions + 1.3.04 + xml-commons provides an Apache-hosted set of DOM, SAX, and + JAXP interfaces for use in other xml-based projects. Our hope is that we + can standardize on both a common version and packaging scheme for these + critical XML standards interfaces to make the lives of both our developers + and users easier. The External Components portion of xml-commons contains + interfaces that are defined by external standards organizations. For DOM, + that's the W3C; for SAX it's David Megginson and sax.sourceforge.net; for + JAXP it's Sun. + http://xml.apache.org/commons/components/external/ + + bugzilla + http://issues.apache.org/bugzilla/ + + + + XML Commons Developer's List + commons-dev-subscribe@xml.apache.org + commons-dev-unsubscribe@xml.apache.org + commons-dev@xml.apache.org + http://mail-archives.apache.org/mod_mbox/xml-commons-dev/ + + + + scm:svn:http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_3_04/ + http://svn.apache.org/viewvc/xml/commons/tags/xml-commons-external-1_3_04/ + + + deployed + + \ No newline at end of file diff --git a/xml-commons-apis-MANIFEST.MF b/xml-commons-apis-MANIFEST.MF new file mode 100644 index 0000000..9065caf --- /dev/null +++ b/xml-commons-apis-MANIFEST.MF @@ -0,0 +1,24 @@ +Manifest-Version: 1.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.2 +Bundle-SymbolicName: javax.xml +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name.0 +Bundle-Localization: plugin +Bundle-Version: 1.3.4.v201005080400 +Bundle-Vendor: %Bundle-Vendor.0 +Require-Bundle: system.bundle +Export-Package: javax.xml;version="1.3",javax.xml.datatype;version="1. + 3",javax.xml.namespace;version="1.3",javax.xml.parsers;version="1.3", + javax.xml.stream;version="1.3",javax.xml.stream.events;version="1.3", + javax.xml.stream.util;version="1.3",javax.xml.transform;version="1.3" + ,javax.xml.transform.dom;version="1.3",javax.xml.transform.sax;versio + n="1.3",javax.xml.transform.stax;version="1.3",javax.xml.transform.st + ream;version="1.3",javax.xml.validation;version="1.3",javax.xml.xpath + ;version="1.3",org.apache.xmlcommons;version="1.3.4",org.w3c.dom;vers + ion="3.0",org.w3c.dom.bootstrap;version="3.0",org.w3c.dom.css;version + ="3.0",org.w3c.dom.events;version="3.0",org.w3c.dom.html;version="3.0 + ",org.w3c.dom.ls;version="3.0",org.w3c.dom.ranges;version="3.0",org.w + 3c.dom.stylesheets;version="3.0",org.w3c.dom.traversal;version="3.0", + org.w3c.dom.views;version="3.0",org.w3c.dom.xpath;version="3.0",org.x + ml.sax;version="2.0.2",org.xml.sax.ext;version="2.0.2",org.xml.sax.he + lpers;version="2.0.2" diff --git a/xml-commons-apis-ext-MANIFEST.MF b/xml-commons-apis-ext-MANIFEST.MF new file mode 100644 index 0000000..4ed3042 --- /dev/null +++ b/xml-commons-apis-ext-MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.4,J2SE-1.3,CDC-1.0/Foundat + ion-1.0 +Bundle-SymbolicName: org.w3c.dom.svg +Import-Package: org.w3c.dom +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-Version: 1.1.0.v200806040011 +Bundle-Vendor: %providerName +Export-Package: org.w3c.dom.svg;version="1.1.0" diff --git a/xml-commons-apis.changes b/xml-commons-apis.changes new file mode 100644 index 0000000..f33cd6c --- /dev/null +++ b/xml-commons-apis.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Fri Mar 18 16:27:31 UTC 2022 - Fridrich Strba + +- Build with source/target levels 8 + +------------------------------------------------------------------- +Mon Apr 8 11:37:06 UTC 2019 - Fridrich Strba + +- Do not depend on the apache-parent, since we are not building + using Maven. + +------------------------------------------------------------------- +Fri Feb 1 16:34:45 UTC 2019 - Fridrich Strba + +- BuildIgnore xml-apis and xml-resolver, since this does not + strictly require them for build + +------------------------------------------------------------------- +Fri Feb 1 12:54:51 UTC 2019 - Fridrich Strba + +- BuildIgnore xerces-j2 to break cycle of OSGi requires + +------------------------------------------------------------------- +Thu Dec 13 10:47:17 UTC 2018 - Fridrich Strba + +- Obsolete the different other xml-apis providers + +------------------------------------------------------------------- +Tue Dec 11 01:18:50 UTC 2018 - Jan Engelhardt + +- Fix RPM groups. Use improved file deletion. + +------------------------------------------------------------------- +Thu Dec 6 10:43:20 UTC 2018 - Fridrich Strba + +- Initial package of xml-commons-apis +- Provide different api versions to simplify upgrades diff --git a/xml-commons-apis.spec b/xml-commons-apis.spec new file mode 100644 index 0000000..c241d33 --- /dev/null +++ b/xml-commons-apis.spec @@ -0,0 +1,144 @@ +# +# spec file for package xml-commons-apis +# +# Copyright (c) 2022 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: xml-commons-apis +Version: 1.4.01 +Release: 0 +Summary: APIs for DOM, SAX, and JAXP +License: Apache-2.0 AND W3C AND SUSE-Public-Domain +Group: Development/Libraries/Java +URL: http://xml.apache.org/commons/ +# From source control because the published tarball doesn't include some docs: +# svn export http://svn.apache.org/repos/asf/xerces/xml-commons/tags/xml-commons-external-1_4_01/java/external +# tar cJf xml-commons-external-1.4.01-src.tar.xz external +Source0: xml-commons-external-1.4.01-src.tar.xz +Source1: %{name}-MANIFEST.MF +Source2: %{name}-ext-MANIFEST.MF +Source3: http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom +Source4: http://repo1.maven.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.pom +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local +BuildRequires: xz +#!BuildIgnore: xerces-j2 xml-apis xml-resolver +Conflicts: xml-commons-apis-bootstrap +Provides: xerces-j2-xml-apis +Provides: xml-apis = %{version}-%{release} +Provides: xml-commons-jaxp-1.1-apis +Provides: xml-commons-jaxp-1.2-apis +Provides: xml-commons-jaxp-1.3-apis +Provides: xml-commons-jaxp-1.4-apis +Obsoletes: xerces-j2-xml-apis +Obsoletes: xml-commons-jaxp-1.1-apis +Obsoletes: xml-commons-jaxp-1.2-apis +Obsoletes: xml-commons-jaxp-1.3-apis +Obsoletes: xml-commons-jaxp-1.4-apis +BuildArch: noarch + +%description +xml-commons-apis is designed to organize and have common packaging for +the various externally-defined standard interfaces for XML. This +includes the DOM, SAX, and JAXP. + +%package manual +Summary: Manual for %{name} +Group: Documentation/HTML + +%description manual +%{summary}. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +%{summary}. + +%prep +%setup -q -n external +# Make sure upstream hasn't sneaked in any jars we don't know about +find "(" -name "*.class" -o -name "*.jar" ")" -delete + +# Fix file encodings +iconv -f iso8859-1 -t utf-8 LICENSE.dom-documentation.txt > \ + LICENSE.dom-doc.temp && mv -f LICENSE.dom-doc.temp LICENSE.dom-documentation.txt +iconv -f iso8859-1 -t utf-8 LICENSE.dom-software.txt > \ + LICENSE.dom-sof.temp && mv -f LICENSE.dom-sof.temp LICENSE.dom-software.txt + +# remove bogus section from poms +cp %{SOURCE3} %{SOURCE4} . +sed -i '/distributionManagement/,/\/distributionManagement/ {d}' *.pom + +%pom_remove_parent xml-apis-ext*.pom + +%build +ant -Dant.build.javac.source=8 -Dant.build.javac.target=8 jar javadoc + +# inject OSGi manifests +jar ufm build/xml-apis.jar %{SOURCE1} +jar ufm build/xml-apis-ext.jar %{SOURCE2} + +%install +# jar +install -d -m 0755 %{buildroot}%{_javadir} +install -pm 644 build/xml-apis.jar %{buildroot}%{_javadir}/xml-commons-apis.jar +pushd %{buildroot}%{_javadir} + for i in \ + jaxp jaxp11 jaxp12 jaxp13 jaxp14 dom3 xerces-j2-xml-apis \ + xml-commons-jaxp-1.4-apis xml-commons-jaxp-1.3-apis \ + xml-commons-jaxp-1.2-apis xml-commons-jaxp-1.1-apis \ + xml-apis; do + ln -s xml-commons-apis.jar ${i}.jar + done +popd +install -pm 644 build/xml-apis-ext.jar %{buildroot}%{_javadir}/xml-commons-apis-ext.jar +pushd %{buildroot}%{_javadir} + for i in xml-commons-jaxp-1.3-apis-ext xml-commons-jaxp-1.4-apis-ext; do + ln -s xml-commons-apis-ext.jar ${i}.jar + done +popd + +# pom +install -d -m 0755 %{buildroot}%{_mavenpomdir} +install -pm 644 xml-apis-[0-9]*.pom %{buildroot}%{_mavenpomdir}/xml-commons-apis.pom +%add_maven_depmap xml-commons-apis.pom xml-commons-apis.jar +install -pm 644 xml-apis-ext*.pom %{buildroot}%{_mavenpomdir}/xml-commons-apis-ext.pom +%add_maven_depmap xml-commons-apis-ext.pom xml-commons-apis-ext.jar -a xerces:dom3-xml-apis + +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} +cp -a build/docs/javadoc/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +# prevent apis javadoc from being included in doc +rm -rf build/docs/javadoc +%fdupes -s build/docs/ + +%files -f .mfiles +%license LICENSE LICENSE.dom-documentation.txt LICENSE.dom-software.txt LICENSE.sac.html LICENSE.sax.txt +%doc NOTICE README.dom.txt README-sax README.sax.txt +%{_javadir}/* + +%files manual +%doc build/docs/* + +%files javadoc +%{_javadocdir}/%{name} + +%changelog diff --git a/xml-commons-external-1.4.01-src.tar.xz b/xml-commons-external-1.4.01-src.tar.xz new file mode 100644 index 0000000..c2bfdfd --- /dev/null +++ b/xml-commons-external-1.4.01-src.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a3e7fc5a6714e22722f10fb4b8ae4cfa23d066d48b607721c9b17aa761dd75e +size 565008