rebuilt from binary distribution [release 1.4.01-4mamba;Sat Feb 03 2024]

This commit is contained in:
Silvan Calarco 2024-02-03 17:00:54 +01:00
parent f2e6e7775f
commit 8fc74a78c7
5 changed files with 20 additions and 157 deletions

View File

@ -1,6 +1,4 @@
# xml-commons-apis # xml-commons-apis
xml-commons-apis is designed to organize and have common packaging for 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.
the various externally-defined standard interfaces for XML. This
includes the DOM, SAX, and JAXP.

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="@NAME@">
<component id="@ID@"
licenseType="@LICENSE@"
version="@VERSION@"
projectHome="@PROJECTHOME@"
description="@DESCRIPTION@"
tag="@TAG@"
>
<artifact id="@ARTIFACTID1@"/>
<artifact id="@ARTIFACTID2@"/>
<export>
<include input="@INCLUDEINPUT1@"/>
<include input="@INCLUDEINPUT2@"/>
</export>
</component>
</project>

View File

@ -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"

View File

@ -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"

View File

@ -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 Name: xml-commons-apis
Version: 1.4.01 Version: 1.4.01
Release: 3mamba Release: 4mamba
Summary: APIs for DOM, SAX, and JAXP Summary: APIs for DOM, SAX, and JAXP
Group: Applications/Publishing Group: Applications/Publishing
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: gil <puntogil@libero.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://xml.apache.org/commons/ URL: https://xerces.apache.org/xml-commons/
#Source: http://apache.panu.it/xml/commons/xml-commons-external-%{version}-src.tar.gz Source0: https://dlcdn.apache.org//xerces/xml-commons/binaries/xml-commons-external-%{version}-bin.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
License: Apache License 2.0, W3C, Public Domain License: Apache License 2.0, W3C, Public Domain
BuildRequires: apache-ant ## AUTOBUILDREQ-BEGIN
BuildRequires: coreutils ## AUTOBUILDREQ-END
BuildRequires: jpackage-utils BuildRequires: javapackages
#BuildRequires: java-openjdk Requires: javapackages
Requires: jpackage-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
%{name} is designed to organize and have common packaging for %{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.
the various externally-defined standard interfaces for XML. This
includes the DOM, SAX, and JAXP.
%package manual %package manual
Summary: Manual for %{name} Summary: Manual for %{name}
Group: Documentation Group: Documentation
%description manual %description manual
%{name} is designed to organize and have common packaging for %{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.
the various externally-defined standard interfaces for XML. This
includes the DOM, SAX, and JAXP.
Manual for %{name}. Manual for %{name}.
%package javadoc %package javadoc
@ -48,63 +30,21 @@ Summary: Javadoc for %{name}
Group: Documentation Group: Documentation
%description javadoc %description javadoc
%{name} is designed to organize and have common packaging for %{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.
the various externally-defined standard interfaces for XML. This
includes the DOM, SAX, and JAXP.
Javadoc for %{name}. 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 %prep
%setup -q -n xml-commons-external-%{version}
%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
%build %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 %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_javadir}
install -pm 644 build/xml-apis.jar \ install -pm 644 xml-apis.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.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 %{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 ln -sf %{name}.jar %{buildroot}%{_javadir}/xml-commons-jaxp-1.3-apis.jar
mkdir -p %{buildroot}%{_javadocdir}/xml-commons-apis-%{version} 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 ln -s xml-commons-apis-%{version} %{buildroot}%{_javadocdir}/xml-commons-apis
rm -rf docs/javadoc 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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_javadir}/dom3-xml-commons-apis-%{version}.jar %{_javadir}/dom3-xml-commons-apis-%{version}.jar
@ -173,17 +91,16 @@ cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/x
%files manual %files manual
%defattr(-,root,root) %defattr(-,root,root)
%doc build/docs/* %doc docs/*
%files javadoc %files javadoc
%defattr(-,root,root) %defattr(-,root,root)
%{_javadocdir}/* %{_javadocdir}/*
%files repolib
%defattr(-,root,root)
%{repodir}
%changelog %changelog
* Sat Feb 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.01-4mamba
- rebuilt from binary distribution
* Wed Mar 23 2011 gil <puntogil@libero.it> 1.4.01-3mamba * Wed Mar 23 2011 gil <puntogil@libero.it> 1.4.01-3mamba
- rebuilt with java-openjdk support - rebuilt with java-openjdk support