From 22aa6c1ea6dd137af3152e3c7c4fe1a5d89dd766 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2014 09:46:31 +0000 Subject: import devtoolset-3-xml-commons-apis-1.4.01-12.2.el7 --- diff --git a/.devtoolset-3-xml-commons-apis.metadata b/.devtoolset-3-xml-commons-apis.metadata new file mode 100644 index 0000000..7ac018d --- /dev/null +++ b/.devtoolset-3-xml-commons-apis.metadata @@ -0,0 +1 @@ +2e769f68fd3d3ab8be1539fafc8e0bf704098b3d SOURCES/xml-commons-external-1.4.01-src.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..061e089 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/xml-commons-external-1.4.01-src.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/xml-apis-2.0.2.pom b/SOURCES/xml-apis-2.0.2.pom new file mode 100644 index 0000000..664f0df --- /dev/null +++ b/SOURCES/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/SOURCES/xml-apis-ext-1.3.04.pom b/SOURCES/xml-apis-ext-1.3.04.pom new file mode 100644 index 0000000..2e558ff --- /dev/null +++ b/SOURCES/xml-apis-ext-1.3.04.pom @@ -0,0 +1,42 @@ + + + + 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/SOURCES/xml-commons-apis-MANIFEST.MF b/SOURCES/xml-commons-apis-MANIFEST.MF new file mode 100644 index 0000000..2e224d8 --- /dev/null +++ b/SOURCES/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/SOURCES/xml-commons-apis-ext-MANIFEST.MF b/SOURCES/xml-commons-apis-ext-MANIFEST.MF new file mode 100644 index 0000000..b2e6fe1 --- /dev/null +++ b/SOURCES/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/SPECS/xml-commons-apis.spec b/SPECS/xml-commons-apis.spec new file mode 100644 index 0000000..400415b --- /dev/null +++ b/SPECS/xml-commons-apis.spec @@ -0,0 +1,142 @@ +%{?scl:%scl_package xml-commons-apis} +%{!?scl:%global pkg_name %{name}} +%{!?maven_scl:%global maven_scl_prefix %{nil}} + +Name: %{?scl_prefix}xml-commons-apis +Version: 1.4.01 +Release: 12.2%{?dist} +Summary: APIs for DOM, SAX, and JAXP +Group: Development/Libraries +License: ASL 2.0 and W3C and Public Domain +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/xml/commons/tags/xml-commons-external-1_4_01/java/external/ +# tar czf xml-commons-external-1.4.01-src.tar.gz external +Source0: xml-commons-external-%{version}-src.tar.gz +Source1: %{pkg_name}-MANIFEST.MF +Source2: %{pkg_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 + +BuildArch: noarch + +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: jpackage-utils +BuildRequires: ant +BuildRequires: zip +BuildRequires: %{maven_scl_prefix}maven-local +Requires: java +Requires: jpackage-utils +Requires(post): jpackage-utils +Requires(postun): jpackage-utils + +Obsoletes: %{?scl_prefix}xml-commons < %{version}-%{release} +Provides: %{?scl_prefix}xml-commons = %{version}-%{release} + +%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 + +%description manual +%{summary}. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation + +%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' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; + +# 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 + +%build +ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar javadoc + +%install +# inject OSGi manifests +mkdir -p META-INF +cp -p %{SOURCE1} META-INF/MANIFEST.MF +touch META-INF/MANIFEST.MF +zip -u build/xml-apis.jar META-INF/MANIFEST.MF +cp -p %{SOURCE2} META-INF/MANIFEST.MF +touch META-INF/MANIFEST.MF +zip -u build/xml-apis-ext.jar META-INF/MANIFEST.MF + +# Jars +install -pD -T build/xml-apis.jar %{buildroot}%{_javadir}/%{pkg_name}.jar +install -pDm 644 xml-apis-[0-9]*.pom %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom +scl enable %{scl} - <<"EOF" +%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar +EOF +scl enable %{scl} - <<"EOF" +%add_maven_depmap -a xerces:dom3-xml-apis +EOF + +install -pD -T build/xml-apis-ext.jar %{buildroot}%{_javadir}/%{pkg_name}-ext.jar +install -pDm 644 xml-apis-ext*.pom %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}-ext.pom +scl enable %{scl} - <<"EOF" +%add_maven_depmap JPP-%{pkg_name}-ext.pom %{pkg_name}-ext.jar +EOF + +# for better interoperability with the jpp apis packages +ln -sf %{pkg_name}.jar %{buildroot}%{_javadir}/jaxp13.jar +ln -sf %{pkg_name}.jar %{buildroot}%{_javadir}/jaxp.jar +ln -sf %{pkg_name}.jar %{buildroot}%{_javadir}/xml-commons-jaxp-1.3-apis.jar + +# Javadocs +mkdir -p %{buildroot}%{_javadocdir}/%{pkg_name} +cp -pr build/docs/javadoc/* %{buildroot}%{_javadocdir}/%{pkg_name} + +# prevent apis javadoc from being included in doc +rm -rf build/docs/javadoc + +%pre javadoc +# workaround for rpm bug, can be removed in F-18 +[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{pkg_name} ] && \ +rm -rf $(readlink -f %{_javadocdir}/%{pkg_name}) %{_javadocdir}/%{pkg_name} || : + +%files +%doc LICENSE NOTICE +%doc LICENSE.dom-documentation.txt README.dom.txt +%doc LICENSE.dom-software.txt LICENSE.sac.html +%doc LICENSE.sax.txt README-sax README.sax.txt +%{_javadir}/* +%{_mavendepmapfragdir}/%{pkg_name} +%{_mavenpomdir}/JPP-%{pkg_name}.pom +%{_mavenpomdir}/JPP-%{pkg_name}-ext.pom + +%files manual +%doc build/docs/* + +%files javadoc +%{_javadocdir}/* + +%changelog +* Fri Oct 10 2014 Mat Booth - 1.4.01-12.2 +- Resolves: rhbz#1146976 - Drop conflicting provides + +* Wed May 21 2014 Alexander Kurtakov 1.4.01-12.1 +- Switch java-headless to java for RHEL 6. + +* Tue May 20 2014 Jeff Johnston - 1.4.01-1 +- SCL-ize updated version from rawhide.