From 8fc74a78c77b60a227bb8f8865600f26e2a022ce Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 3 Feb 2024 17:00:54 +0100 Subject: [PATCH] rebuilt from binary distribution [release 1.4.01-4mamba;Sat Feb 03 2024] --- README.md | 4 +- java-component-info10.xml | 19 ----- xml-commons-apis-MANIFEST.MF | 22 ------ xml-commons-apis-ext-MANIFEST.MF | 11 --- xml-commons-apis.spec | 121 +++++-------------------------- 5 files changed, 20 insertions(+), 157 deletions(-) delete mode 100644 java-component-info10.xml delete mode 100644 xml-commons-apis-MANIFEST.MF delete mode 100644 xml-commons-apis-ext-MANIFEST.MF diff --git a/README.md b/README.md index 23d0468..52f7c28 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # xml-commons-apis -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. +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. diff --git a/java-component-info10.xml b/java-component-info10.xml deleted file mode 100644 index d7435d1..0000000 --- a/java-component-info10.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - diff --git a/xml-commons-apis-MANIFEST.MF b/xml-commons-apis-MANIFEST.MF deleted file mode 100644 index b6b607a..0000000 --- a/xml-commons-apis-MANIFEST.MF +++ /dev/null @@ -1,22 +0,0 @@ -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.v200806030440 -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.transform;version="1.3",javax.xml.transform.dom;version="1. - 3",javax.xml.transform.sax;version="1.3",javax.xml.transform.stream;v - ersion="1.3",javax.xml.validation;version="1.3",javax.xml.xpath;versi - on="1.3",org.apache.xmlcommons;version="1.3.4",org.w3c.dom;version="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.w3c.dom - .stylesheets;version="3.0",org.w3c.dom.traversal;version="3.0",org.w3 - c.dom.views;version="3.0",org.w3c.dom.xpath;version="3.0",org.xml.sax - ;version="2.0.2",org.xml.sax.ext;version="2.0.2",org.xml.sax.helpers; - version="2.0.2" diff --git a/xml-commons-apis-ext-MANIFEST.MF b/xml-commons-apis-ext-MANIFEST.MF deleted file mode 100644 index b1da9e2..0000000 --- a/xml-commons-apis-ext-MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -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.spec b/xml-commons-apis.spec index 103ebde..bc36cc7 100644 --- a/xml-commons-apis.spec +++ b/xml-commons-apis.spec @@ -1,46 +1,28 @@ -#%define majver %(echo %version | cut -d. -f 1-2) -%define repodir %{_javadir}/repository.jboss.com/apache-xml-commons/%{version}-brew -%define repodirlib %{repodir}/lib -%define repodirsrc %{repodir}/src - Name: xml-commons-apis Version: 1.4.01 -Release: 3mamba +Release: 4mamba Summary: APIs for DOM, SAX, and JAXP Group: Applications/Publishing Vendor: openmamba Distribution: openmamba -Packager: gil -URL: http://xml.apache.org/commons/ -#Source: http://apache.panu.it/xml/commons/xml-commons-external-%{version}-src.tar.gz -# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_4_01/java/external/ -# tar czf xml-commons-external-1.4.01-src-svn.tar.gz external -Source0: xml-commons-external-%{version}-src-svn.tar.gz -Source1: java-component-info10.xml -Source2: xml-commons-apis-MANIFEST.MF -Source3: xml-commons-apis-ext-MANIFEST.MF +Packager: Silvan Calarco +URL: https://xerces.apache.org/xml-commons/ +Source0: https://dlcdn.apache.org//xerces/xml-commons/binaries/xml-commons-external-%{version}-bin.tar.gz License: Apache License 2.0, W3C, Public Domain -BuildRequires: apache-ant -BuildRequires: coreutils -BuildRequires: jpackage-utils -#BuildRequires: java-openjdk -Requires: jpackage-utils -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: javapackages +Requires: javapackages %description -%{name} is designed to organize and have common packaging for -the various externally-defined standard interfaces for XML. This -includes the DOM, SAX, and JAXP. +%{name} 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 %description manual -%{name} is designed to organize and have common packaging for -the various externally-defined standard interfaces for XML. This -includes the DOM, SAX, and JAXP. - +%{name} is designed to organize and have common packaging for the various externally-defined standard interfaces for XML. This includes the DOM, SAX, and JAXP. Manual for %{name}. %package javadoc @@ -48,63 +30,21 @@ Summary: Javadoc for %{name} Group: Documentation %description javadoc -%{name} is designed to organize and have common packaging for -the various externally-defined standard interfaces for XML. This -includes the DOM, SAX, and JAXP. - +%{name} is designed to organize and have common packaging for the various externally-defined standard interfaces for XML. This includes the DOM, SAX, and JAXP. Javadoc for %{name}. -%package repolib -Group: Development/Libraries/Java -Summary: Artifacts to be uploaded to a repository library -Requires: xml-commons-resolver-repolib - -%description repolib -%{name} is designed to organize and have common packaging for -the various externally-defined standard interfaces for XML. This -includes the DOM, SAX, and JAXP. - -This package contains artifacts to be uploaded to a repository library. -This package is not meant to be installed but so its contents -can be extracted through rpm2cpio - %prep - -%setup -q -n external -for j in $(find . -name "*.jar"); do - mv $j $j.no -done -for j in $(find . -name "*.gz"); do - rm -rf $j -done - -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 - -rm -rf build +%setup -q -n xml-commons-external-%{version} %build -export OPT_JAR_LIST="./external/build/xml-apis.jar" -export JAVA_HOME=%java_home -ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar javadoc - -mkdir -p META-INF -cp -p %{SOURCE2} META-INF/MANIFEST.MF -touch META-INF/MANIFEST.MF -zip -u build/xml-apis.jar META-INF/MANIFEST.MF -cp -p %{SOURCE3} META-INF/MANIFEST.MF -touch META-INF/MANIFEST.MF -zip -u build/xml-apis-ext.jar META-INF/MANIFEST.MF %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} -install -pm 644 build/xml-apis.jar \ +install -pm 644 xml-apis.jar \ %{buildroot}%{_javadir}/%{name}-%{version}.jar -install -pm 644 build/xml-apis-ext.jar \ +install -pm 644 xml-apis-ext.jar \ %{buildroot}%{_javadir}/%{name}-ext-%{version}.jar ( @@ -128,36 +68,14 @@ ln -sf %{name}.jar %{buildroot}%{_javadir}/jaxp.jar ln -sf %{name}.jar %{buildroot}%{_javadir}/xml-commons-jaxp-1.3-apis.jar mkdir -p %{buildroot}%{_javadocdir}/xml-commons-apis-%{version} -cp -pr build/docs/javadoc/* %{buildroot}%{_javadocdir}/xml-commons-apis-%{version} +cp -pr docs/javadoc/* %{buildroot}%{_javadocdir}/xml-commons-apis-%{version} ln -s xml-commons-apis-%{version} %{buildroot}%{_javadocdir}/xml-commons-apis rm -rf docs/javadoc -mkdir -p %{buildroot}%{repodir} -mkdir -p %{buildroot}%{repodirlib} -install -pm 644 %{SOURCE1} %{buildroot}%{repodir}/component-info.xml -sed -i "s/@NAME@/apache-xerces-component-info/g" %{buildroot}%{repodir}/component-info.xml -sed -i "s/@ID@/apache-xml-commons/g" %{buildroot}%{repodir}/component-info.xml -tag=`echo xml-commons-%{version}-%{release} | sed 's|\.|_|g'` -sed -i "s/@TAG@/$tag/g" %{buildroot}%{repodir}/component-info.xml -sed -i 's/@VERSION@/%{version}-brew/g' %{buildroot}%{repodir}/component-info.xml -sed -i "s/@LICENSE@/Apache Software License 2.0/g" %{buildroot}%{repodir}/component-info.xml -sed -i "s|@PROJECTHOME@|%{url}|g" %{buildroot}%{repodir}/component-info.xml -sed -i "s/@DESCRIPTION@/Common code for XML projects/g" %{buildroot}%{repodir}/component-info.xml -sed -i "s/@ARTIFACTID1@/resolver.jar/g" %{buildroot}%{repodir}/component-info.xml -sed -i "s/@ARTIFACTID2@/xml-apis.jar/g" %{buildroot}%{repodir}/component-info.xml -sed -i "s/@INCLUDEINPUT1@/resolver.jar/g" %{buildroot}%{repodir}/component-info.xml -sed -i "s/@INCLUDEINPUT2@/xml-apis.jar/g" %{buildroot}%{repodir}/component-info.xml -mkdir -p %{buildroot}%{repodirsrc} -install -pm 644 %{SOURCE0} %{buildroot}%{repodirsrc} -cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/xml-apis.jar - - -#%{_bindir}/aot-compile-rpm %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" - %files %defattr(-,root,root) %{_javadir}/dom3-xml-commons-apis-%{version}.jar @@ -173,17 +91,16 @@ cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/x %files manual %defattr(-,root,root) -%doc build/docs/* +%doc docs/* %files javadoc %defattr(-,root,root) %{_javadocdir}/* -%files repolib -%defattr(-,root,root) -%{repodir} - %changelog +* Sat Feb 03 2024 Silvan Calarco 1.4.01-4mamba +- rebuilt from binary distribution + * Wed Mar 23 2011 gil 1.4.01-3mamba - rebuilt with java-openjdk support