Dominique Leuenberger 2018-12-11 08:07:59 +00:00 committed by Git OBS Bridge
parent 183eb15d48
commit fa3ad60517
3 changed files with 6 additions and 1147 deletions

View File

@ -28,7 +28,7 @@ Release: 0
Summary: Common code for XML projects - bootstrapping package
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://xml.apache.org/commons/
URL: http://xml.apache.org/commons/
# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-1_0_b2/
Source0: xml-commons-1.0.b2.tar.bz2
# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-resolver-1_1_b1/
@ -52,7 +52,7 @@ INSTALL ... THIS IS JUST FOR PACKAGING & BOOTSTRAPPING JAVA PURPOSES!!
%package -n xml-commons-which-bootstrap
Summary: Which subproject of xml-commons
Group: Development/Libraries/Java
Url: http://xml.apache.org/commons/
URL: http://xml.apache.org/commons/
%description -n xml-commons-which-bootstrap
This is xml-which from the java-bootrapping-tools package. DO NOT
@ -61,7 +61,7 @@ INSTALL ... THIS IS JUST FOR PACKAGING & BOOTSTRAPPING JAVA PURPOSES!!
%package -n xml-commons-resolver-bootstrap
Summary: Resolver subproject of xml-commons
Group: Development/Libraries/Java
Url: http://xml.apache.org/commons/
URL: http://xml.apache.org/commons/
%description -n xml-commons-resolver-bootstrap
This is xml-resolver from the java-bootrapping-tools package. DO NOT
@ -190,15 +190,15 @@ cp %{resolver_jar}.jar %{buildroot}/%{_javadir}
#<<< install end
%files
%doc xml-commons-1_0_b2/LICENSE.txt
%license xml-commons-1_0_b2/LICENSE.txt
%{_javadir}/%{apis_jar}.jar
%files -n xml-commons-which-bootstrap
%doc xml-commons-1_0_b2/LICENSE.txt
%license xml-commons-1_0_b2/LICENSE.txt
%{_javadir}/%{which_jar}.jar
%files -n xml-commons-resolver-bootstrap
%doc xml-commons-1_0_b2/LICENSE.txt
%license xml-commons-1_0_b2/LICENSE.txt
%{_javadir}/%{resolver_jar}.jar
#<<<

View File

@ -1,214 +0,0 @@
-------------------------------------------------------------------
Wed Nov 7 20:21:36 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Put maven metadata for each pom file to different metadata xml
file in order to avoid having duplicate entries for the same
artifact name in the same metadata file
- Obsolete correctly the packages so that not two version of the
same artifact will be installed by mistake
-------------------------------------------------------------------
Wed Oct 4 19:55:32 UTC 2017 - fstrba@suse.com
- Don't depend on java-1_5_0-gcj-compat
- Depend on java-devel >= 1.6 instead
- Added patch:
* xml-commons-encoding.patch
+ Specify file encoding UTF-8 to avoid build breakages with
jdk9
-------------------------------------------------------------------
Fri May 19 11:39:11 UTC 2017 - vsistek@suse.com
- Add BuildRequires: javapackages-local (for maven conversions)
- .spec file cleanup
-------------------------------------------------------------------
Tue Mar 17 14:37:34 UTC 2015 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Fri Mar 6 19:17:14 UTC 2015 - afaerber@suse.de
- Update jaxp to 1.3.05 - resolver 1.2 is now a separate tarball
* Drop xml-commons-external-1.3-build_xml.patch
* Drop 1.3.04 hunks from xml-commons-no-javadoc.patch
and xml-commons-resolver-crosslink.patch
* Tweak xml-apis{,-ext}-1.3.04.pom with new version and tags
* Drop resolver class name tweaks for xml-resolver 1.2
- Drop resolver class name tweaks for jaxp 1.4
- Add xml-resolver-1.2.pom
- Update jaxp to 1.2.06
-------------------------------------------------------------------
Thu Mar 5 21:12:42 UTC 2015 - afaerber@suse.de
- Clean up 1.4 packaging
* Package .txt files from 1.4 rather than 1.3
* Add xml-apis-1.4.01.pom
- Fix typos in description (including a copied one)
-------------------------------------------------------------------
Thu Mar 5 15:24:41 UTC 2015 - afaerber@suse.de
- Update jaxp to 1.4.01
-------------------------------------------------------------------
Fri Jul 25 09:08:26 UTC 2014 - tchvatal@suse.com
- Fixup update-alternatives a bit to silence warnings.
-------------------------------------------------------------------
Thu May 1 14:58:20 UTC 2014 - darin@darins.net
- suppress bytecode check on SLE
- add missing links and alternative
-------------------------------------------------------------------
Mon Apr 28 09:40:14 UTC 2014 - schwab@linux-m68k.org
- Fix update-alternatives arguments to match what is actually packaged
-------------------------------------------------------------------
Thu Sep 12 19:15:47 UTC 2013 - tchvatal@suse.com
- Use javapackages-tools
-------------------------------------------------------------------
Wed Aug 28 07:33:44 UTC 2013 - mvyskocil@suse.com
- mark everything touched by update-alternatives as ghost file
to comfor Packaging Multiple Version guidelines
- remove few attrs on links
-------------------------------------------------------------------
Mon Aug 26 12:48:12 UTC 2013 - mvyskocil@suse.com
- Ignore own subpackages in order to break build cycle
-------------------------------------------------------------------
Mon Aug 26 09:31:04 UTC 2013 - mvyskocil@suse.com
- remove forgotten quilt from %%prep phase
- adjust rpm Groups
-------------------------------------------------------------------
Fri Aug 23 14:04:09 UTC 2013 - mvyskocil@suse.com
- drop javadoc subpackages
* add xml-commons-no-javadoc.patch
- port to add_maven_depmap from javapackages-tools
-------------------------------------------------------------------
Thu Apr 18 09:05:14 UTC 2013 - mvyskocil@suse.com
- install xml-commons-resolver as master alternative (bnc#814196)
-------------------------------------------------------------------
Mon Mar 14 13:20:56 UTC 2011 - mvyskocil@suse.cz
- build ignore of openjdk
-------------------------------------------------------------------
Tue Nov 2 15:27:37 UTC 2010 - mvyskocil@suse.cz
- merge spec file with xml-commons-1.3.04-5.jpp5.src.rpm
* add external-1.2.04 and 1.3.04
* include the resolver
* new subpackages - which[10-11], resolver[10-12],
jaxp-1.[1-3]-apis
* old xml-commons-apis is now provided by xml-commons-jaxp-1.3-apis
-------------------------------------------------------------------
Thu Sep 2 12:38:36 UTC 2010 - mvyskocil@suse.cz
- ignore antlr(-java) to reduce build cycles
-------------------------------------------------------------------
Thu Sep 11 16:30:57 CEST 2008 - mvyskocil@suse.cz
- Use a gcc-java for build
- Fixed a minor rpm lint error in which subpackage summary
-------------------------------------------------------------------
Tue Jan 22 15:50:07 CET 2008 - mvyskocil@suse.cz
- fixed beta build
-------------------------------------------------------------------
Sun Jul 22 07:46:23 CEST 2007 - coolo@suse.de
- avoid autobuild loops
-------------------------------------------------------------------
Wed May 2 11:53:56 CEST 2007 - dbornkessel@suse.de
- added unzip to BuildRequires
-------------------------------------------------------------------
Thu Sep 21 21:22:59 CEST 2006 - dbornkessel@suse.de
- added xml-commons-apis-bootstrap spec file
-------------------------------------------------------------------
Sun Sep 17 22:53:32 CEST 2006 - ro@suse.de
- use source=1.4 for java
-------------------------------------------------------------------
Wed Feb 8 20:37:19 CET 2006 - dbornkessel@suse.de
- added missing PreReq: update-alternatives
-------------------------------------------------------------------
Mon Jan 30 14:10:58 CET 2006 - dbornkessel@suse.de
- added update alternatives for xml-commons-apis with appropiate prio
-------------------------------------------------------------------
Fri Jan 27 01:36:44 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Jan 25 13:18:59 CET 2006 - dbornkessel@suse.de
- deleted dependency on itself
-------------------------------------------------------------------
Mon Jan 16 16:36:00 CET 2006 - jsmeix@suse.de
- Current version 1.3.02 from JPackage.org
-------------------------------------------------------------------
Tue Oct 11 13:44:49 CEST 2005 - jsmeix@suse.de
- Added xerces-j2 which is needed for build on ppc64 and ia64.
-------------------------------------------------------------------
Fri Jul 29 12:08:33 CEST 2005 - jsmeix@suse.de
- Adjustments in the spec file.
-------------------------------------------------------------------
Wed Jul 20 15:02:46 CEST 2005 - jsmeix@suse.de
- Current version 1.0 from JPackage.org
-------------------------------------------------------------------
Mon Jul 18 17:17:26 CEST 2005 - jsmeix@suse.de
- Current version 1.0 from JPackage.org
-------------------------------------------------------------------
Thu Sep 16 20:03:44 CEST 2004 - skh@suse.de
- Fix prerequires of javadoc subpackages
-------------------------------------------------------------------
Thu Sep 2 16:08:06 CEST 2004 - skh@suse.de
- Initial package created with version 1.0 (JPackage 1.5)

View File

@ -1,927 +0,0 @@
#
# spec file for package xml-commons
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2000-2008, JPackage Project
#
# 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/
#
# FIXME: workaround for bnc#650905
%define with_repolib 0
%define without_repolib 1
%define repo %{_javadir}/repository.jboss.com
%define repodir %{repo}/apache-xml-commons/1.3.04-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src
%define resolverdir %{_sysconfdir}/java/resolver
# To get around having multiple versions of projects within the same srpm
%define apis_version_1_1 1.0.b2
%define apis_version_1_2 1.2.06
%define apis_version_1_3 1.3.05
Name: xml-commons
Version: 1.4.01
Release: 0
Summary: Common code for XML projects
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://xml.apache.org/commons/
# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-1_0_b2/
Source0: xml-commons-1.0.b2.tar.bz2
# svn export http://svn.apache.org/repos/asf/xerces/xml-commons/tags/xml-commons-external-1_2_06/
Source1: xml-commons-external-1.2.06.tar.bz2
# svn export http://svn.apache.org/repos/asf/xerces/xml-commons/tags/xml-commons-external-1_3_05/
Source2: xml-commons-external-1.3.05.tar.bz2
# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-resolver-1_1_b1/
Source3: xml-commons-resolver-1.1.b1.tar.bz2
Source4: xml-commons.which10.script
Source5: xml-commons.which11.script
Source6: xml-commons-resolver10-resolver.1
Source7: xml-commons-resolver10-resolver.sh
Source8: xml-commons-resolver10-xparse.1
Source9: xml-commons-resolver10-xparse.sh
Source10: xml-commons-resolver10-xread.1
Source11: xml-commons-resolver10-xread.sh
Source12: xml-commons-resolver11-resolver.1
Source13: xml-commons-resolver11-resolver.sh
Source14: xml-commons-resolver11-xparse.1
Source15: xml-commons-resolver11-xparse.sh
Source16: xml-commons-resolver11-xread.1
Source17: xml-commons-resolver11-xread.sh
Source18: xml-commons-resolver12-resolver.1
Source19: xml-commons-resolver12-resolver.sh
Source20: xml-commons-resolver12-xparse.1
Source21: xml-commons-resolver12-xparse.sh
Source22: xml-commons-resolver12-xread.1
Source23: xml-commons-resolver12-xread.sh
Source24: %{name}-resolver-CatalogManager.properties
# svn export http://svn.apache.org/repos/asf/xerces/xml-commons/tags/xml-commons-external-1_4_01/
Source25: xml-commons-external-1.4.01.tar.bz2
# svn export http://svn.apache.org/repos/asf/xerces/xml-commons/tags/xml-commons-resolver-1_2/
Source26: xml-commons-resolver-1.2.tar.bz2
Source100: xml-commons-component-info.xml
Source200: http://mirrors.ibiblio.org/pub/mirrors/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.pom
Source201: http://mirrors.ibiblio.org/pub/mirrors/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.pom
Source202: http://mirrors.ibiblio.org/pub/mirrors/maven2/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.pom
Source203: http://mirrors.ibiblio.org/maven2/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.pom
Patch1: %{name}-resolver-crosslink.patch
Patch2: %{name}-resolver-1.1-build_xml.patch
Patch3: %{name}-enum.patch
#PATCH-FIX-SUSE: don't call javadoc from any used target
Patch4: xml-commons-no-javadoc.patch
Patch5: xml-commons-encoding.patch
BuildRequires: ant
BuildRequires: java-devel >= 1.6
# Needed for maven conversions
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: xalan-j2
#!BuildIgnore: antlr
#!BuildIgnore: antlr-java
#!BuildIgnore: xml-commons
#!BuildIgnore: xml-commons-jaxp-1.3-apis
#!BuildIgnore: xml-commons-resolver
BuildArch: noarch
%description
xml-commons is focused on common code and guidelines for xml projects.
It's first focus will be to organize and have common packaging for the
various externally-defined standards code relating to XML - things like
the DOM, SAX, and JAXP interfaces.
As the xml-commons community forms, we also hope to serve as a holding
area for other common xml-related utilities and code, and to help
promulgate common packaging, testing, documentation, and other
guidelines across all xml.apache.org subprojects.
%package jaxp-1.1-apis
Summary: JAXP 1.1, DOM2, SAX2, SAX2-ext 1.0 apis
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: dom = 2
Provides: jaxp = 1.1
Provides: sax = 2.0
Provides: xml-commons-apis = %{apis_version_1_1}-%{release}
Provides: xslt = 1.0
Obsoletes: xml-commons-apis < %{apis_version_1_1}-%{release}
%description jaxp-1.1-apis
DOM 2 org.w3c.dom and SAX XML 2.0 org.xml.sax processor apis used
by several pieces of Apache software. XSLT 1.0.
This version includes the JAXP 1.1 APIs -- Java API for XML
Processing 1.1, i.e. javax.xml{.parsers,.transform}
%package jaxp-1.1-apis-manual
Summary: Documents for %{name}-jaxp-1.1-apis
Group: Documentation/HTML
%description jaxp-1.1-apis-manual
%{summary}.
%package which10
Summary: XmlWhich 1.0 utility from %{name}
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires: jaxp_parser_impl
Requires: xml-commons-jaxp-1.1-apis = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: xml-commons-which = 1.0
%description which10
%{name}.
%package resolver10
Summary: XmlResolver 1.0 utility from %{name}
Group: Development/Libraries/Java
Requires: %{name} = %{version}-%{release}
Requires: jaxp_parser_impl
Requires: xml-commons-jaxp-1.1-apis = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: xml-commons-resolver = 1.0
%description resolver10
%{summary}.
%package resolver11
Summary: XmlResolver 1.1 utility from %{name}
Group: Development/Libraries/Java
Requires: %{name} = %{version}
Requires: jaxp_parser_impl
Requires: xml-commons-jaxp-1.2-apis = %{version}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: xml-commons-resolver = 1.1
%description resolver11
%{summary}.
%package jaxp-1.2-apis
Summary: JAXP 1.2, DOM 2, SAX 2.0.1, SAX2-ext 1.0 apis
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: dom = 2
Provides: jaxp = 1.2
Provides: sax = 2.0.1
Provides: xml-commons-apis = %{apis_version_1_2}-%{release}
Provides: xslt = 1.0
Obsoletes: xml-commons-apis < %{apis_version_1_2}-%{release}
%description jaxp-1.2-apis
DOM 2 org.w3c.dom and SAX XML 2.0 org.xml.sax processor apis used
by several pieces of Apache software. XSLT 1.0.
This version includes the JAXP 1.2 APIs -- Java API for XML
Processing 1.2, i.e. javax.xml{.parsers,.transform}
%package jaxp-1.2-apis-manual
Summary: Documents for %{name}-jaxp-1.2-apis
Group: Documentation/HTML
%description jaxp-1.2-apis-manual
%{summary}.
%package jaxp-1.3-apis
Summary: JAXP 1.3, DOM 2, SAX 2.0.1, SAX2-ext 1.0 apis
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: dom = 3
Provides: jaxp = 1.3
Provides: sax = 2.0.2
Provides: xml-commons-apis = %{apis_version_1_3}-%{release}
Provides: xslt = 1.0
Obsoletes: xml-commons-apis < %{apis_version_1_3}-%{release}
%description jaxp-1.3-apis
DOM 3 org.w3c.dom and SAX XML 2.0.2 (sax2r3) org.xml.sax
processor apis used by several pieces of Apache software.
This version includes the JAXP 1.3 APIs --
JSR 206, Java API for XML Processing 1.3, i.e.
javax.xml{.parsers,.transform,.validation,.datatype,.xtype}.
%package jaxp-1.3-apis-manual
Summary: Documents for %{name}-jaxp-1.3-apis
Group: Documentation/HTML
Provides: xml-comons-apis-manual = %{apis_version_1_3}-%{release}
Obsoletes: xml-comons-apis-manual < %{apis_version_1_3}-%{release}
%description jaxp-1.3-apis-manual
%{summary}.
%package which11
Summary: XmlWhich 1.1 from %{name}
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires: jaxp_parser_impl
Requires: xml-commons-jaxp-1.3-apis = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: xml-commons-which = %{version}-%{release}
Obsoletes: xml-commons-which <= 1.3.02
%description which11
%{summary}.
%package resolver12
Summary: XmlResolver 1.2 from %{name}
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires: jaxp_parser_impl
Requires: xml-commons-jaxp-1.3-apis = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: xml-commons-resolver = 1.2
%description resolver12
%{summary}.
%package jaxp-1.4-apis
Summary: JAXP 1.4, DOM 2, SAX 2.0.1, SAX2-ext 1.0 apis
Group: Productivity/Publishing/XML
Requires: %{name} = %{version}-%{release}
Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: dom = 3
Provides: jaxp = 1.4
Provides: sax = 2.0.2
Provides: xml-commons-apis = %{version}-%{release}
Provides: xslt = 1.0
Obsoletes: xml-commons-apis < %{version}-%{release}
%description jaxp-1.4-apis
DOM 3 org.w3c.dom and SAX XML 2.0.2 (sax2r3) org.xml.sax
processor apis used by several pieces of Apache software.
This version includes the JAXP 1.4 APIs --
JSR 206, Java API for XML Processing 1.4, i.e.
javax.xml{.parsers,.transform,.validation,.datatype,.xtype}.
%package jaxp-1.4-apis-manual
Summary: Documents for %{name}-jaxp-1.4-apis
Group: Documentation/HTML
Provides: xml-comons-apis-manual = %{version}-%{release}
Obsoletes: xml-comons-apis-manual < %{version}-%{release}
%description jaxp-1.4-apis-manual
%{summary}.
%if %{with_repolib}
%package repolib
Summary: Artifacts to be uploaded to a repository library
Group: Development/Libraries/Java
%description repolib
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.
%endif
%prep
%setup -q -T -c
%setup -q -T -D -a 0
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 25
%setup -q -T -D -a 26
%patch1 -b .sav
%patch2 -b .sav
%patch3 -b .sav
%patch4 -p1
%patch5 -p1
# remove all binary libs and prebuilt javadocs
rm -rf `find . -name "*.jar" -o -name "*.gz"`
rm -rf java/build java/external/build/docs/javadoc
# -----------------------------------------------------------------------------
%build
pushd xml-commons-1_0_b2
pushd java
sed -e 's|call Resolver|call resolver|g' resolver.xml > tempf
sed -e 's|classname="org.apache.xml.resolver.Catalog"|fork="yes" classname="org.apache.xml.resolver.apps.resolver"|g' tempf > resolver.xml
sed -e 's|org.apache.xml.resolver.Catalog|org.apache.xml.resolver.apps.resolver|g' src/manifest.resolver > tempf
cp tempf src/manifest.resolver
rm tempf
popd
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 jars
popd
pushd xml-commons-resolver-1_1_b1
mkdir -p build/site/components/resolver
pushd java
sed -e 's|call Resolver|call resolver|g' resolver.xml > tempf
sed -e 's|classname="org.apache.xml.resolver.Catalog"|fork="yes" classname="org.apache.xml.resolver.apps.resolver"|g' tempf > resolver.xml
sed -e 's|org.apache.xml.resolver.Catalog|org.apache.xml.resolver.apps.resolver|g' src/manifest.resolver > tempf
cp tempf src/manifest.resolver
rm tempf
popd
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 jars
popd
pushd xml-commons-resolver-1_2
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -f java/resolver.xml jar
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -f java/which.xml jar
popd
pushd xml-commons-external-1_2_*
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -f java/external/build.xml jar
popd
pushd xml-commons-external-1_3_*
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -f java/external/build.xml jar
popd
pushd xml-commons-external-1_4_*
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -f java/external/build.xml jar
popd
%install
%if 0%{?suse_version} == 1110
export NO_BRP_CHECK_BYTECODE_VERSION=true
%endif
# Jars
install -d -m 755 %{buildroot}%{_javadir}
# JAXP11
install -m 644 xml-commons-1_0_b2/java/external/build/xml-apis.jar \
%{buildroot}%{_javadir}/%{name}-jaxp-1.1-apis-%{version}.jar
# resolver10
install -m 644 xml-commons-1_0_b2/java/build/resolver.jar \
%{buildroot}%{_javadir}/%{name}-resolver10-%{version}.jar
# which10
install -m 644 xml-commons-1_0_b2/java/build/which.jar \
%{buildroot}%{_javadir}/%{name}-which10-%{version}.jar
# resolver11
install -m 644 xml-commons-resolver-1_1_b1/java/build/resolver.jar \
%{buildroot}%{_javadir}/%{name}-resolver11-%{version}.jar
# JAXP12
install -m 644 xml-commons-external-1_2_*/java/external/build/xml-apis.jar \
%{buildroot}%{_javadir}/%{name}-jaxp-1.2-apis-%{version}.jar
# JAXP13
install -m 644 xml-commons-external-1_3_*/java/external/build/xml-apis.jar \
%{buildroot}%{_javadir}/%{name}-jaxp-1.3-apis-%{version}.jar
# JAXP13 ext
install -m 644 xml-commons-external-1_3_*/java/external/build/xml-apis-ext.jar \
%{buildroot}%{_javadir}/%{name}-jaxp-1.3-apis-ext-%{version}.jar
# resolver12
install -m 644 xml-commons-resolver-1_2/java/build/resolver.jar \
%{buildroot}%{_javadir}/%{name}-resolver12-%{version}.jar
# which11
install -m 644 xml-commons-resolver-1_2/java/build/which.jar \
%{buildroot}%{_javadir}/%{name}-which11-%{version}.jar
# JAXP14
install -m 644 xml-commons-external-1_4_*/java/external/build/xml-apis.jar \
%{buildroot}%{_javadir}/%{name}-jaxp-1.4-apis-%{version}.jar
# JAXP14 ext
install -m 644 xml-commons-external-1_4_*/java/external/build/xml-apis-ext.jar \
%{buildroot}%{_javadir}/%{name}-jaxp-1.4-apis-ext-%{version}.jar
pushd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} $(echo $jar | sed -e 's|-%{version}\.jar|.jar|');
done
ln -sf %{name}-jaxp-1.1-apis.jar jaxp11.jar
ln -sf %{name}-jaxp-1.2-apis.jar jaxp12.jar
ln -sf %{name}-jaxp-1.3-apis.jar jaxp13.jar
ln -sf %{name}-jaxp-1.3-apis.jar dom3.jar
ln -sf %{name}-jaxp-1.4-apis.jar jaxp14.jar
popd
# poms
mkdir -p %{buildroot}%{_mavenpomdir}
apis_tag_1_3=`echo %{apis_version_1_3} | sed -e 's|\.|_|g'`
sed -e 's|1\.3\.04|%{apis_version_1_3}|' -e "s|1_3_04|${apis_tag_1_3}|" < %{SOURCE200} \
> %{buildroot}%{_mavenpomdir}/JPP-%{name}-jaxp-1.3-apis.pom
ln -s JPP-%{name}-jaxp-1.3-apis.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}-apis.pom
%add_maven_depmap JPP-%{name}-jaxp-1.3-apis.pom %{name}-jaxp-1.3-apis.jar -f jaxp-1.3-apis
sed -e 's|1\.3\.04|%{apis_version_1_3}|' -e "s|1_3_04|${apis_tag_1_3}|" < %{SOURCE201} \
> %{buildroot}%{_mavenpomdir}/JPP-%{name}-jaxp-1.3-apis-ext.pom
%add_maven_depmap JPP-%{name}-jaxp-1.3-apis-ext.pom %{name}-jaxp-1.3-apis-ext.jar -f jaxp-1.3-apis-ext
cp -p %{SOURCE202} %{buildroot}%{_mavenpomdir}/JPP-%{name}-jaxp-1.4-apis.pom
%add_maven_depmap JPP-%{name}-jaxp-1.4-apis.pom %{name}-jaxp-1.4-apis.jar -f jaxp-1.4-apis
cp -p %{SOURCE203} %{buildroot}%{_mavenpomdir}/JPP-%{name}-resolver12.pom
%add_maven_depmap JPP-%{name}-resolver12.pom %{name}-resolver12.jar -f resolver12
# Scripts
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
cp -p %{SOURCE4} %{buildroot}%{_bindir}/xml-which10
cp -p %{SOURCE5} %{buildroot}%{_bindir}/xml-which11
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE7} \
> %{buildroot}%{_bindir}/xml-resolver10
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE9} \
> %{buildroot}%{_bindir}/xml-xread10
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE11} \
> %{buildroot}%{_bindir}/xml-xparse10
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE6} \
> %{buildroot}%{_mandir}/man1/xml-resolver10.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE8} \
> %{buildroot}%{_mandir}/man1/xml-xread10.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE10} \
> %{buildroot}%{_mandir}/man1/xml-xparse10.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE13} \
> %{buildroot}%{_bindir}/xml-resolver11
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE15} \
> %{buildroot}%{_bindir}/xml-xread11
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE17} \
> %{buildroot}%{_bindir}/xml-xparse11
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE12} \
> %{buildroot}%{_mandir}/man1/xml-resolver11.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE14} \
> %{buildroot}%{_mandir}/man1/xml-xread11.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE16} \
> %{buildroot}%{_mandir}/man1/xml-xparse11.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE19} \
> %{buildroot}%{_bindir}/xml-resolver12
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE21} \
> %{buildroot}%{_bindir}/xml-xread12
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE23} \
> %{buildroot}%{_bindir}/xml-xparse12
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE18} \
> %{buildroot}%{_mandir}/man1/xml-resolver12.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE20} \
> %{buildroot}%{_mandir}/man1/xml-xread12.1
sed -e 's|__RESOLVERDIR__|%{resolverdir}|' < %{SOURCE22} \
> %{buildroot}%{_mandir}/man1/xml-xparse12.1
# Central CatalogManager.properties
install -d -m 755 %{buildroot}%{resolverdir}
install -m 0644 %{SOURCE24} %{buildroot}%{resolverdir}/CatalogManager.properties
# docs
# JAXP 1.1
install -d -m 755 %{buildroot}%{_datadir}/%{name}-jaxp-1.1-apis-%{version}
install -m 0644 xml-commons-1_0_b2/java/external/LICENSE* %{buildroot}%{_datadir}/%{name}-jaxp-1.1-apis-%{version}
install -m 0644 xml-commons-1_0_b2/java/external/README* %{buildroot}%{_datadir}/%{name}-jaxp-1.1-apis-%{version}
# JAXP 1.2
install -d -m 755 %{buildroot}%{_datadir}/%{name}-jaxp-1.2-apis-%{version}
install -m 0644 xml-commons-external-1_2_*/java/external/LICENSE* %{buildroot}%{_datadir}/%{name}-jaxp-1.2-apis-%{version}
install -m 0644 xml-commons-external-1_2_*/java/external/README* %{buildroot}%{_datadir}/%{name}-jaxp-1.2-apis-%{version}
# JAXP 1.3
install -d -m 755 %{buildroot}%{_datadir}/%{name}-jaxp-1.3-apis-%{version}
install -m 0644 xml-commons-external-1_3_*/java/external/LICENSE* %{buildroot}%{_datadir}/%{name}-jaxp-1.3-apis-%{version}
install -m 0644 xml-commons-external-1_3_*/java/external/README* %{buildroot}%{_datadir}/%{name}-jaxp-1.3-apis-%{version}
# JAXP 1.4
install -d -m 755 %{buildroot}%{_datadir}/%{name}-jaxp-1.4-apis-%{version}
install -m 0644 xml-commons-external-1_4_*/java/external/LICENSE* %{buildroot}%{_datadir}/%{name}-jaxp-1.4-apis-%{version}
install -m 0644 xml-commons-external-1_4_*/java/external/README* %{buildroot}%{_datadir}/%{name}-jaxp-1.4-apis-%{version}
# manuals
# JAXP 1.1
install -d -m 755 %{buildroot}%{_docdir}/%{name}-jaxp-1.1-apis-%{version}
cp -pr xml-commons-1_0_b2/java/external/build/docs/* %{buildroot}%{_docdir}/%{name}-jaxp-1.1-apis-%{version}
# JAXP 1.2
install -d -m 755 %{buildroot}%{_docdir}/%{name}-jaxp-1.2-apis-%{version}
cp -pr xml-commons-external-1_2_*/java/external/build/docs/* %{buildroot}%{_docdir}/%{name}-jaxp-1.2-apis-%{version}
# JAXP 1.3
install -d -m 755 %{buildroot}%{_docdir}/%{name}-jaxp-1.3-apis-%{version}
cp -pr xml-commons-external-1_3_*/java/external/build/docs/* %{buildroot}%{_docdir}/%{name}-jaxp-1.3-apis-%{version}
# JAXP 1.4
install -d -m 755 %{buildroot}%{_docdir}/%{name}-jaxp-1.4-apis-%{version}
cp -pr xml-commons-external-1_4_*/java/external/build/docs/* %{buildroot}%{_docdir}/%{name}-jaxp-1.4-apis-%{version}
# For Symlinks and alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -sf %{_sysconfdir}/alternatives/xml-commons-apis.jar %{buildroot}%{_javadir}/xml-commons-apis.jar
ln -sf %{_sysconfdir}/alternatives/xml-commons-which.jar %{buildroot}%{_javadir}/xml-commons-which.jar
ln -sf %{_sysconfdir}/alternatives/xml-commons-resolver.jar %{buildroot}%{_javadir}/xml-commons-resolver.jar
ln -sf %{_sysconfdir}/alternatives/jaxp.jar %{buildroot}%{_javadir}/jaxp.jar
ln -sf %{_sysconfdir}/alternatives/dom3.jar %{buildroot}%{_javadir}/dom3.jar
ln -sf %{_sysconfdir}/alternatives/dom2.jar %{buildroot}%{_javadir}/dom2.jar
ln -sf %{_sysconfdir}/alternatives/dom.jar %{buildroot}%{_javadir}/dom.jar
ln -sf %{_sysconfdir}/alternatives/sax2.jar %{buildroot}%{_javadir}/sax2.jar
ln -sf %{_sysconfdir}/alternatives/sax.jar %{buildroot}%{_javadir}/sax.jar
ln -sf %{_sysconfdir}/alternatives/xml-which %{buildroot}%{_bindir}/xml-which
ln -sf %{_sysconfdir}/alternatives/xml-resolver %{buildroot}%{_bindir}/xml-resolver
ln -sf %{_sysconfdir}/alternatives/xml-xread %{buildroot}%{_bindir}/xml-xread
ln -sf %{_sysconfdir}/alternatives/xml-xparse %{buildroot}%{_bindir}/xml-xparse
ln -sf %{_sysconfdir}/alternatives/jaxp11.jar %{buildroot}%{_javadir}/jaxp11.jar
ln -sf %{_sysconfdir}/alternatives/jaxp12.jar %{buildroot}%{_javadir}/jaxp12.jar
ln -sf %{_sysconfdir}/alternatives/jaxp13.jar %{buildroot}%{_javadir}/jaxp13.jar
ln -sf %{_sysconfdir}/alternatives/jaxp14.jar %{buildroot}%{_javadir}/jaxp14.jar
ln -sf %{_sysconfdir}/alternatives/xslt.jar %{buildroot}%{_javadir}/xslt.jar
ln -sf %{_sysconfdir}/alternatives/xml-resolver.1.gz %{buildroot}/%{_mandir}/man1/xml-resolver.1.gz
ln -sf %{_sysconfdir}/alternatives/xml-resolver.1.gz %{buildroot}/%{_mandir}/man1/xml-resolver.1.gz
ln -sf %{_sysconfdir}/alternatives/xml-xread.1.gz %{buildroot}/%{_mandir}/man1/xml-xread.1.gz
ln -sf %{_sysconfdir}/alternatives/xml-xparse.1.gz %{buildroot}/%{_mandir}/man1/xml-xparse.1.gz
chmod 755 %{buildroot}%{_bindir}*
perl -pi -e 's/\r$//g' README.html KEYS
%if %{with_repolib}
install -d -m 755 %{buildroot}%{repodir}
install -d -m 755 %{buildroot}%{repodirlib}
install -m 755 %{SOURCE100} %{buildroot}%{repodir}/component-info.xml
sed -i 's/@VERSION@/%{version}-brew/g' %{buildroot}%{repodir}/component-info.xml
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" %{buildroot}%{repodir}/component-info.xml
install -d -m 755 %{buildroot}%{repodirsrc}
install -m 755 %{SOURCE0} %{buildroot}%{repodirsrc}
cp -p %{buildroot}%{_javadir}/%{name}-jaxp-1.3-apis-%{version}.jar %{buildroot}%{repodirlib}/xml-apis.jar
cp -p %{buildroot}%{_javadir}/%{name}-resolver11-%{version}.jar %{buildroot}%{repodirlib}/resolver.jar
install -m 755 %{SOURCE3} %{buildroot}%{repodirsrc}
%endif
%if 0%{?suse_version}
# disable of a link target doesn't exist error on ghost symlink
export NO_BRP_STALE_LINK_ERROR=yes
%endif
%post jaxp-1.1-apis
rm -f %{_javadir}/jaxp11.jar
ln -s %{name}-jaxp-1.1-apis.jar %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/jaxp11.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jaxp.jar jaxp %{_javadir}/jaxp11.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/dom2.jar dom2 %{_javadir}/jaxp11.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/dom.jar dom %{_javadir}/jaxp11.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/sax2.jar sax2 %{_javadir}/jaxp11.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/sax.jar sax %{_javadir}/jaxp11.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/xslt.jar xslt %{_javadir}/jaxp11.jar 10100
%postun jaxp-1.1-apis
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --remove jaxp %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --remove dom2 %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --remove dom %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --remove sax2 %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --remove sax %{_javadir}/jaxp11.jar
%{_sbindir}/update-alternatives --remove xslt %{_javadir}/jaxp11.jar
rm -f %{_javadir}/jaxp11.jar
fi
%post which10
%{_sbindir}/update-alternatives --install %{_bindir}/xml-which xml-which %{_bindir}/xml-which10 10000
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-which.jar xml-commons-which %{_javadir}/xml-commons-which10.jar 10000
%postun which10
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-which %{_bindir}/xml-which10
%{_sbindir}/update-alternatives --remove xml-commons-which %{_javadir}/xml-commons-which10.jar
fi
%post resolver10
%{_sbindir}/update-alternatives --install %{_bindir}/xml-resolver xml-resolver %{_bindir}/xml-resolver10 10000 \
--slave %{_bindir}/xml-xread xml-xread %{_bindir}/xml-xread10 \
--slave %{_bindir}/xml-xparse xml-xparse %{_bindir}/xml-xparse10 \
--slave %{_mandir}/man1/xml-resolver.1%{ext_man} xml-resolver.1%{ext_man} %{_mandir}/man1/xml-resolver10.1%{ext_man} \
--slave %{_mandir}/man1/xml-xread.1%{ext_man} xml-xread.1%{ext_man} %{_mandir}/man1/xml-xread10.1%{ext_man} \
--slave %{_mandir}/man1/xml-xparse.1%{ext_man} xml-xparse.1%{ext_man} %{_mandir}/man1/xml-xparse10.1%{ext_man}
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-resolver.jar xml-commons-resolver %{_javadir}/xml-commons-resolver10.jar 10000
%postun resolver10
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-resolver %{_bindir}/xml-resolver10
%{_sbindir}/update-alternatives --remove xml-commons-resolver %{_javadir}/xml-commons-resolver10.jar
fi
%post resolver11
%{_sbindir}/update-alternatives --install %{_bindir}/xml-resolver xml-resolver %{_bindir}/xml-resolver11 10100 \
--slave %{_bindir}/xml-xread xml-xread %{_bindir}/xml-xread11 \
--slave %{_bindir}/xml-xparse xml-xparse %{_bindir}/xml-xparse11 \
--slave %{_mandir}/man1/xml-resolver.1%{ext_man} xml-resolver.1%{ext_man} %{_mandir}/man1/xml-resolver11.1%{ext_man} \
--slave %{_mandir}/man1/xml-xread.1%{ext_man} xml-xread.1%{ext_man} %{_mandir}/man1/xml-xread11.1%{ext_man} \
--slave %{_mandir}/man1/xml-xparse.1%{ext_man} xml-xparse.1%{ext_man} %{_mandir}/man1/xml-xparse11.1%{ext_man}
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-resolver.jar xml-commons-resolver %{_javadir}/xml-commons-resolver11.jar 10100
%postun resolver11
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-resolver %{_bindir}/xml-resolver11
%{_sbindir}/update-alternatives --remove xml-commons-resolver %{_javadir}/xml-commons-resolver11.jar
fi
%post jaxp-1.2-apis
rm -f %{_javadir}/xml-commons-apis.jar
rm -f %{_javadir}/jaxp12.jar
ln -s %{name}-jaxp-1.2-apis.jar %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/jaxp12.jar 10200
%{_sbindir}/update-alternatives --install %{_javadir}/jaxp.jar jaxp %{_javadir}/jaxp12.jar 10200
%{_sbindir}/update-alternatives --install %{_javadir}/dom2.jar dom2 %{_javadir}/jaxp12.jar 10200
%{_sbindir}/update-alternatives --install %{_javadir}/dom.jar dom %{_javadir}/jaxp12.jar 10200
%{_sbindir}/update-alternatives --install %{_javadir}/sax2.jar sax2 %{_javadir}/jaxp12.jar 10200
%{_sbindir}/update-alternatives --install %{_javadir}/sax.jar sax %{_javadir}/jaxp12.jar 10200
%{_sbindir}/update-alternatives --install %{_javadir}/xslt.jar xslt %{_javadir}/jaxp12.jar 10200
%postun jaxp-1.2-apis
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --remove jaxp %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --remove dom2 %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --remove dom %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --remove sax2 %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --remove sax %{_javadir}/jaxp12.jar
%{_sbindir}/update-alternatives --remove xslt %{_javadir}/jaxp12.jar
rm -f %{_javadir}/jaxp12.jar
fi
%post jaxp-1.3-apis
rm -f %{_javadir}/xml-commons-apis.jar
rm -f %{_javadir}/jaxp13.jar
ln -s %{name}-jaxp-1.3-apis.jar %{_javadir}/jaxp13.jar
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/jaxp13.jar 10300
%{_sbindir}/update-alternatives --install %{_javadir}/jaxp.jar jaxp %{_javadir}/jaxp13.jar 10300
%{_sbindir}/update-alternatives --install %{_javadir}/dom.jar dom %{_javadir}/jaxp13.jar 10300
%{_sbindir}/update-alternatives --install %{_javadir}/sax2.jar sax2 %{_javadir}/jaxp13.jar 10300
%{_sbindir}/update-alternatives --install %{_javadir}/sax.jar sax %{_javadir}/jaxp13.jar 10300
%{_sbindir}/update-alternatives --install %{_javadir}/xslt.jar xslt %{_javadir}/jaxp13.jar 10300
%postun jaxp-1.3-apis
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/jaxp13.jar
%{_sbindir}/update-alternatives --remove jaxp %{_javadir}/jaxp13.jar
%{_sbindir}/update-alternatives --remove dom %{_javadir}/jaxp13.jar
%{_sbindir}/update-alternatives --remove sax2 %{_javadir}/jaxp13.jar
%{_sbindir}/update-alternatives --remove sax %{_javadir}/jaxp13.jar
%{_sbindir}/update-alternatives --remove xslt %{_javadir}/jaxp13.jar
rm -f %{_javadir}/jaxp13.jar
fi
%post which11
%{_sbindir}/update-alternatives --install %{_bindir}/xml-which xml-which %{_bindir}/xml-which11 10100
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-which.jar xml-commons-which %{_javadir}/xml-commons-which11.jar 10100
%postun which11
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-which %{_bindir}/xml-which11
%{_sbindir}/update-alternatives --remove xml-commons-which %{_javadir}/xml-commons-which11.jar
fi
%post resolver12
%{_sbindir}/update-alternatives --install %{_bindir}/xml-resolver xml-resolver %{_bindir}/xml-resolver12 10200 \
--slave %{_bindir}/xml-xread xml-xread %{_bindir}/xml-xread12 \
--slave %{_bindir}/xml-xparse xml-xparse %{_bindir}/xml-xparse12 \
--slave %{_mandir}/man1/xml-resolver.1%{ext_man} xml-resolver.1%{ext_man} %{_mandir}/man1/xml-resolver12.1%{ext_man} \
--slave %{_mandir}/man1/xml-xread.1%{ext_man} xml-xread.1%{ext_man} %{_mandir}/man1/xml-xread12.1%{ext_man} \
--slave %{_mandir}/man1/xml-xparse.1%{ext_man} xml-xparse.1%{ext_man} %{_mandir}/man1/xml-xparse12.1%{ext_man}
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-resolver.jar xml-commons-resolver %{_javadir}/xml-commons-resolver12.jar 10200
%postun resolver12
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-resolver %{_bindir}/xml-resolver12
%{_sbindir}/update-alternatives --remove xml-commons-resolver %{_javadir}/xml-commons-resolver12.jar
fi
%post jaxp-1.4-apis
rm -f %{_javadir}/xml-commons-apis.jar
rm -f %{_javadir}/jaxp14.jar
ln -s %{name}-jaxp-1.4-apis.jar %{_javadir}/jaxp14.jar
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/jaxp14.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/jaxp.jar jaxp %{_javadir}/jaxp14.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/dom.jar dom %{_javadir}/jaxp14.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/sax2.jar sax2 %{_javadir}/jaxp14.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/sax.jar sax %{_javadir}/jaxp14.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/xslt.jar xslt %{_javadir}/jaxp14.jar 10400
%postun jaxp-1.4-apis
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/jaxp14.jar
%{_sbindir}/update-alternatives --remove jaxp %{_javadir}/jaxp14.jar
%{_sbindir}/update-alternatives --remove dom %{_javadir}/jaxp14.jar
%{_sbindir}/update-alternatives --remove sax2 %{_javadir}/jaxp14.jar
%{_sbindir}/update-alternatives --remove sax %{_javadir}/jaxp14.jar
%{_sbindir}/update-alternatives --remove xslt %{_javadir}/jaxp14.jar
rm -f %{_javadir}/jaxp14.jar
fi
# -----------------------------------------------------------------------------
%files
%doc xml-commons-1_0_b2/LICENSE.txt
%doc xml-commons-external-1_4_*/java/external/*.txt
%config(noreplace) %{resolverdir}/*
%dir %{_sysconfdir}/java/resolver
%files jaxp-1.1-apis
# FIXME:
# xml-commons-jaxp-1.1-apis.noarch: W: file-not-utf8 /usr/share/xml-commons-jaxp-1.1-apis-1.3.03/LICENSE.dom-software.txt
# xml-commons-jaxp-1.1-apis.noarch: W: file-not-utf8 /usr/share/xml-commons-jaxp-1.1-apis-1.3.03/LICENSE.dom-documentation.txt
%doc %{_datadir}/%{name}-jaxp-1.1-apis-%{version}
%{_javadir}/%{name}-jaxp-1.1-apis*.jar
%{_javadir}/xml-commons-apis.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-apis.jar
%{_javadir}/jaxp11.jar
%ghost %{_sysconfdir}/alternatives/jaxp11.jar
%{_javadir}/jaxp.jar
%ghost %{_sysconfdir}/alternatives/jaxp.jar
%{_javadir}/dom2.jar
%ghost %{_sysconfdir}/alternatives/dom2.jar
%{_javadir}/dom.jar
%ghost %{_sysconfdir}/alternatives/dom.jar
%{_javadir}/sax2.jar
%ghost %{_sysconfdir}/alternatives/sax2.jar
%{_javadir}/sax.jar
%ghost %{_sysconfdir}/alternatives/sax.jar
%{_javadir}/xslt.jar
%ghost %{_sysconfdir}/alternatives/xslt.jar
%files jaxp-1.1-apis-manual
%doc %{_docdir}/%{name}-jaxp-1.1-apis-%{version}
%files which10
%{_javadir}/%{name}-which10*.jar
%{_javadir}/xml-commons-which.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-which.jar
%attr(0755,root,root) %{_bindir}/xml-which10
%{_bindir}/xml-which
%ghost %{_sysconfdir}/alternatives/xml-which
%files resolver10
%{_javadir}/%{name}-resolver10*.jar
%{_javadir}/xml-commons-resolver.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-resolver.jar
%attr(0755,root,root) %{_bindir}/xml-resolver10
%attr(0755,root,root) %{_bindir}/xml-xread10
%attr(0755,root,root) %{_bindir}/xml-xparse10
%{_mandir}/man1/xml-resolver10.1*
%{_mandir}/man1/xml-xread10.1*
%{_mandir}/man1/xml-xparse10.1*
%{_bindir}/xml-resolver
%{_bindir}/xml-xread
%{_bindir}/xml-xparse
%ghost %{_sysconfdir}/alternatives/xml-resolver
%ghost %{_sysconfdir}/alternatives/xml-xread
%ghost %{_sysconfdir}/alternatives/xml-xparse
%{_mandir}/man1/xml-resolver.1%{ext_man}
%{_mandir}/man1/xml-xread.1%{ext_man}
%{_mandir}/man1/xml-xparse.1%{ext_man}
%ghost %{_sysconfdir}/alternatives/xml-resolver.1.gz
%ghost %{_sysconfdir}/alternatives/xml-xread.1.gz
%ghost %{_sysconfdir}/alternatives/xml-xparse.1.gz
%files resolver11
%{_javadir}/%{name}-resolver11*.jar
%{_javadir}/xml-commons-resolver.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-resolver.jar
%attr(0755,root,root) %{_bindir}/xml-resolver11
%attr(0755,root,root) %{_bindir}/xml-xread11
%attr(0755,root,root) %{_bindir}/xml-xparse11
%{_mandir}/man1/xml-resolver11.1*
%{_mandir}/man1/xml-xread11.1*
%{_mandir}/man1/xml-xparse11.1*
%{_bindir}/xml-resolver
%{_bindir}/xml-xread
%{_bindir}/xml-xparse
%ghost %{_sysconfdir}/alternatives/xml-resolver
%ghost %{_sysconfdir}/alternatives/xml-xread
%ghost %{_sysconfdir}/alternatives/xml-xparse
%{_mandir}/man1/xml-resolver.1%{ext_man}
%{_mandir}/man1/xml-xread.1%{ext_man}
%{_mandir}/man1/xml-xparse.1%{ext_man}
%ghost %{_sysconfdir}/alternatives/xml-resolver.1.gz
%ghost %{_sysconfdir}/alternatives/xml-xread.1.gz
%ghost %{_sysconfdir}/alternatives/xml-xparse.1.gz
%files jaxp-1.2-apis
%doc %{_datadir}/%{name}-jaxp-1.2-apis-%{version}
%{_javadir}/%{name}-jaxp-1.2-apis*.jar
%{_javadir}/xml-commons-apis.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-apis.jar
%{_javadir}/jaxp12.jar
%ghost %{_sysconfdir}/alternatives/jaxp12.jar
%{_javadir}/jaxp.jar
%ghost %{_sysconfdir}/alternatives/jaxp.jar
%{_javadir}/dom2.jar
%ghost %{_sysconfdir}/alternatives/dom2.jar
%{_javadir}/dom.jar
%ghost %{_sysconfdir}/alternatives/dom.jar
%{_javadir}/sax2.jar
%ghost %{_sysconfdir}/alternatives/sax2.jar
%{_javadir}/sax.jar
%ghost %{_sysconfdir}/alternatives/sax.jar
%{_javadir}/xslt.jar
%ghost %{_sysconfdir}/alternatives/xslt.jar
%files jaxp-1.2-apis-manual
%{_docdir}/%{name}-jaxp-1.2-apis-%{version}
%files jaxp-1.3-apis
%doc %{_datadir}/%{name}-jaxp-1.3-apis-%{version}
%{_javadir}/%{name}-jaxp-1.3-apis-%{version}.jar
%{_javadir}/%{name}-jaxp-1.3-apis.jar
%{_javadir}/%{name}-jaxp-1.3-apis-ext-%{version}.jar
%{_javadir}/%{name}-jaxp-1.3-apis-ext.jar
%{_mavenpomdir}/JPP-%{name}-apis.pom
%{_mavenpomdir}/JPP-%{name}-jaxp-1.3-apis.pom
%{_mavenpomdir}/JPP-%{name}-jaxp-1.3-apis-ext.pom
%{_datadir}/maven-metadata/%{name}-jaxp-1.3-apis.xml
%{_datadir}/maven-metadata/%{name}-jaxp-1.3-apis-ext.xml
%{_javadir}/xml-commons-apis.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-apis.jar
%{_javadir}/jaxp13.jar
%ghost %{_sysconfdir}/alternatives/jaxp13.jar
%{_javadir}/jaxp.jar
%ghost %{_sysconfdir}/alternatives/jaxp.jar
%{_javadir}/dom3.jar
%ghost %{_sysconfdir}/alternatives/dom3.jar
%{_javadir}/dom.jar
%ghost %{_sysconfdir}/alternatives/dom.jar
%{_javadir}/sax2.jar
%ghost %{_sysconfdir}/alternatives/sax2.jar
%{_javadir}/sax.jar
%ghost %{_sysconfdir}/alternatives/sax.jar
%{_javadir}/xslt.jar
%ghost %{_sysconfdir}/alternatives/xslt.jar
%files jaxp-1.3-apis-manual
%{_docdir}/%{name}-jaxp-1.3-apis-%{version}
%files which11
%{_javadir}/%{name}-which11*.jar
%{_javadir}/xml-commons-which.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-which.jar
%attr(0755,root,root) %{_bindir}/xml-which11
%{_bindir}/xml-which
%ghost %{_sysconfdir}/alternatives/xml-which
%files resolver12
%{_javadir}/%{name}-resolver12*.jar
%{_mavenpomdir}/JPP-%{name}-resolver12.pom
%{_datadir}/maven-metadata/%{name}-resolver12.xml
%{_javadir}/xml-commons-resolver.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-resolver.jar
%attr(0755,root,root) %{_bindir}/xml-resolver12
%attr(0755,root,root) %{_bindir}/xml-xread12
%attr(0755,root,root) %{_bindir}/xml-xparse12
%{_mandir}/man1/xml-resolver12.1*
%{_mandir}/man1/xml-xread12.1*
%{_mandir}/man1/xml-xparse12.1*
%{_bindir}/xml-resolver
%{_bindir}/xml-xread
%{_bindir}/xml-xparse
%ghost %{_sysconfdir}/alternatives/xml-resolver
%ghost %{_sysconfdir}/alternatives/xml-xread
%ghost %{_sysconfdir}/alternatives/xml-xparse
%{_mandir}/man1/xml-resolver.1%{ext_man}
%{_mandir}/man1/xml-xread.1%{ext_man}
%{_mandir}/man1/xml-xparse.1%{ext_man}
%ghost %{_sysconfdir}/alternatives/xml-resolver.1.gz
%ghost %{_sysconfdir}/alternatives/xml-xread.1.gz
%ghost %{_sysconfdir}/alternatives/xml-xparse.1.gz
%files jaxp-1.4-apis
%doc %{_datadir}/%{name}-jaxp-1.4-apis-%{version}
%{_javadir}/%{name}-jaxp-1.4-apis-%{version}.jar
%{_javadir}/%{name}-jaxp-1.4-apis.jar
%{_javadir}/%{name}-jaxp-1.4-apis-ext-%{version}.jar
%{_javadir}/%{name}-jaxp-1.4-apis-ext.jar
%{_mavenpomdir}/JPP-%{name}-jaxp-1.4-apis.pom
%{_datadir}/maven-metadata/%{name}-jaxp-1.4-apis.xml
%{_javadir}/xml-commons-apis.jar
%ghost %{_sysconfdir}/alternatives/xml-commons-apis.jar
%{_javadir}/jaxp14.jar
%ghost %{_sysconfdir}/alternatives/jaxp14.jar
%{_javadir}/jaxp.jar
%ghost %{_sysconfdir}/alternatives/jaxp.jar
%{_javadir}/dom3.jar
%ghost %{_sysconfdir}/alternatives/dom3.jar
%{_javadir}/dom.jar
%ghost %{_sysconfdir}/alternatives/dom.jar
%{_javadir}/sax2.jar
%ghost %{_sysconfdir}/alternatives/sax2.jar
%{_javadir}/sax.jar
%ghost %{_sysconfdir}/alternatives/sax.jar
%{_javadir}/xslt.jar
%ghost %{_sysconfdir}/alternatives/xslt.jar
%files jaxp-1.4-apis-manual
%{_docdir}/%{name}-jaxp-1.4-apis-%{version}
%if %{with_repolib}
%files repolib
%{repodir}
%endif
%changelog