|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
%global cvs_version 2_12_0
|
|
|
|
|
|
|
|
|
|
%define __requires_exclude system.bundle
|
|
|
|
|
|
|
|
|
|
Name: xerces-j2
|
|
|
|
|
Version: 2.12.1
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Version: 2.12.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Java XML parser
|
|
|
|
|
# Most of the source is ASL 2.0
|
|
|
|
|
# W3C licensed files:
|
|
|
|
@ -11,9 +13,9 @@ Summary: Java XML parser
|
|
|
|
|
License: ASL 2.0 and W3C
|
|
|
|
|
URL: http://xerces.apache.org/xerces2-j/
|
|
|
|
|
|
|
|
|
|
%global cvs_version %(tr . _ <<< %{version})
|
|
|
|
|
|
|
|
|
|
Source0: http://mirror.ox.ac.uk/sites/rsync.apache.org/xerces/j/source/Xerces-J-src.%{version}.tar.gz
|
|
|
|
|
Source1: %{name}-version.sh
|
|
|
|
|
Source2: %{name}-constants.sh
|
|
|
|
|
Source11: %{name}-version.1
|
|
|
|
|
Source12: %{name}-constants.1
|
|
|
|
|
|
|
|
|
@ -28,17 +30,19 @@ Patch0: %{name}-build.patch
|
|
|
|
|
# Patch the manifest so that it includes OSGi stuff
|
|
|
|
|
Patch1: %{name}-manifest.patch
|
|
|
|
|
|
|
|
|
|
# Patch build.xml to patch modules as needed during javadoc generation
|
|
|
|
|
Patch2: %{name}-modulefix.patch
|
|
|
|
|
# Fix FTBFS with Java10 due to missing method getContentDocument
|
|
|
|
|
Patch2: https://sources.debian.org/data/main/libx/libxerces2-java/2.12.0-1/debian/patches/getContentDocument.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
|
BuildRequires: ant
|
|
|
|
|
BuildRequires: apache-parent
|
|
|
|
|
BuildRequires: xalan-j2 >= 2.7.1
|
|
|
|
|
BuildRequires: xml-commons-apis >= 1.4.01
|
|
|
|
|
BuildRequires: xml-commons-resolver >= 1.2
|
|
|
|
|
|
|
|
|
|
Requires: xalan-j2 >= 2.7.1
|
|
|
|
|
Requires: xml-commons-apis >= 1.4.01
|
|
|
|
|
Requires: xml-commons-resolver >= 1.2
|
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
|
@ -48,13 +52,10 @@ Requires: javapackages-tools
|
|
|
|
|
Provides: jaxp_parser_impl = 1.4
|
|
|
|
|
Provides: %{name}-scripts = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Obsoletes: %{name}-scripts < 2.11.0-6
|
|
|
|
|
|
|
|
|
|
# This documentation is provided by xml-commons-apis
|
|
|
|
|
Obsoletes: %{name}-javadoc-apis < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# http://mail-archives.apache.org/mod_mbox/xerces-j-dev/201008.mbox/%3COF8D7E2F83.0271A181-ON8525777F.00528302-8525777F.0054BBE0@ca.ibm.com%3E
|
|
|
|
|
Obsoletes: %{name}-manual < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Welcome to the future! Xerces2 is the next generation of high performance,
|
|
|
|
@ -83,18 +84,6 @@ also handles name spaces according to the XML Namespaces 1.1 Recommendation,
|
|
|
|
|
and will correctly serialize XML 1.1 documents if the DOM level 3 load/save
|
|
|
|
|
APIs are in use.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadocs for %{name}
|
|
|
|
|
|
|
|
|
|
# Consolidating all javadocs into one package
|
|
|
|
|
Obsoletes: %{name}-javadoc-impl < %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-javadoc-xs < %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-javadoc-xni < %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-javadoc-other < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
|
Summary: Demonstrations and samples for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
@ -103,24 +92,22 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -n xerces-%{cvs_version}
|
|
|
|
|
%patch -P 0 -p0
|
|
|
|
|
%patch -P 1 -p0
|
|
|
|
|
%patch -P 2 -p0
|
|
|
|
|
%setup -q -n xerces-%{cvs_version}
|
|
|
|
|
%patch0 -p0 -b .orig
|
|
|
|
|
%patch1 -p0 -b .orig
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
|
|
# Copy the custom ant task into place
|
|
|
|
|
# Copy the custom ant tasks into place
|
|
|
|
|
mkdir -p tools/org/apache/xerces/util
|
|
|
|
|
mkdir -p tools/bin
|
|
|
|
|
cp -a %{SOURCE3} tools/org/apache/xerces/util
|
|
|
|
|
|
|
|
|
|
# Make sure upstream hasn't sneaked in any jars we don't know about
|
|
|
|
|
find . \( -name '*.class' -o -name '*.jar' \) -delete
|
|
|
|
|
find -name '*.class' -exec rm -f '{}' \;
|
|
|
|
|
find -name '*.jar' -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
|
|
sed -i 's/\r//' LICENSE README NOTICE
|
|
|
|
|
|
|
|
|
|
# Disable javadoc linting
|
|
|
|
|
sed -i -e "s|additionalparam='|additionalparam='-Xdoclint:none |" build.xml
|
|
|
|
|
|
|
|
|
|
# legacy aliases for compatability
|
|
|
|
|
%mvn_alias : xerces:xerces xerces:xmlParserAPIs apache:xerces-j2
|
|
|
|
|
%mvn_file : %{name} jaxp_parser_impl
|
|
|
|
@ -129,40 +116,29 @@ sed -i -e "s|additionalparam='|additionalparam='-Xdoclint:none |" build.xml
|
|
|
|
|
pushd tools
|
|
|
|
|
|
|
|
|
|
# Build custom ant tasks
|
|
|
|
|
%{_jvmdir}/java-11-openjdk/bin/javac -classpath $(build-classpath ant) org/apache/xerces/util/XJavac.java
|
|
|
|
|
%{_jvmdir}/java-11-openjdk/bin/jar cf bin/xjavac.jar org/apache/xerces/util/XJavac.class
|
|
|
|
|
javac -classpath $(build-classpath ant) org/apache/xerces/util/XJavac.java
|
|
|
|
|
jar cf bin/xjavac.jar org/apache/xerces/util/XJavac.class
|
|
|
|
|
|
|
|
|
|
%{_jvmdir}/java-11-openjdk/bin/jar cmf /dev/null serializer.jar
|
|
|
|
|
ln -sf $(build-classpath xalan-j2-serializer) serializer.jar
|
|
|
|
|
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
|
|
|
|
|
ln -sf $(build-classpath xml-commons-resolver) resolver.jar
|
|
|
|
|
ln -sf $(build-classpath xerces-j2) x.jar
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Build everything
|
|
|
|
|
export ANT_OPTS="-Xmx512m -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true"
|
|
|
|
|
ant -Djavac.source=1.8 -Djavac.target=1.8 \
|
|
|
|
|
export ANT_OPTS="-Xmx256m -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true"
|
|
|
|
|
ant -Djavac.source=1.6 -Djavac.target=1.6 \
|
|
|
|
|
-Dbuild.compiler=modern \
|
|
|
|
|
clean jars javadocs
|
|
|
|
|
clean jars
|
|
|
|
|
|
|
|
|
|
%mvn_artifact %{SOURCE7} build/xercesImpl.jar
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}/impl
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}/xs
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}/xni
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}/other
|
|
|
|
|
|
|
|
|
|
cp -pr build/docs/javadocs/xerces2/* %{buildroot}%{_javadocdir}/%{name}/impl
|
|
|
|
|
cp -pr build/docs/javadocs/api/* %{buildroot}%{_javadocdir}/%{name}/xs
|
|
|
|
|
cp -pr build/docs/javadocs/xni/* %{buildroot}%{_javadocdir}/%{name}/xni
|
|
|
|
|
cp -pr build/docs/javadocs/other/* %{buildroot}%{_javadocdir}/%{name}/other
|
|
|
|
|
|
|
|
|
|
# scripts
|
|
|
|
|
%jpackage_script org.apache.xerces.impl.Version "" "" %{name} %{name}-version 1
|
|
|
|
|
%jpackage_script org.apache.xerces.impl.Constants "" "" %{name} %{name}-constants 1
|
|
|
|
|
install -pD -m755 -T %{SOURCE1} %{buildroot}%{_bindir}/%{name}-version
|
|
|
|
|
install -pD -m755 -T %{SOURCE2} %{buildroot}%{_bindir}/%{name}-constants
|
|
|
|
|
|
|
|
|
|
# manual pages
|
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
|
@ -174,7 +150,7 @@ install -pD -T build/xercesSamples.jar %{buildroot}%{_datadir}/%{name}/%{name}-s
|
|
|
|
|
cp -pr data %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
# alternatives support removed in f26
|
|
|
|
|
# alternatives suppoort removed in f26
|
|
|
|
|
update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar >/dev/null 2>&1 || :
|
|
|
|
|
# it deletes the link, set it up again
|
|
|
|
|
ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar
|
|
|
|
@ -184,69 +160,18 @@ ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 2.12.1-8
|
|
|
|
|
- Fix patch usage
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2024 Marián Konček <mkoncek@redhat.com> - 2.12.1-7
|
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.12.1-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Mon Jun 28 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.12.1-5
|
|
|
|
|
- Remove dependency on xalan-j2
|
|
|
|
|
- Resolves: rhbz#1977007
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.12.1-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Fri Mar 12 2021 Mat Booth <mat.booth@redhat.com> - 2.12.1-3
|
|
|
|
|
- Update OSGi metadata, use import-package instead of require-bundle
|
|
|
|
|
in order to avoid some tricky OSGi breakage on Java 11
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Sep 14 2020 Jerry James <loganjerry@gmail.com> - 2.12.1-1
|
|
|
|
|
- Version 2.12.1
|
|
|
|
|
- Drop upstreamed getcontentdocument patch
|
|
|
|
|
- Drop no longer used taglet sources
|
|
|
|
|
- Verify the source tarball
|
|
|
|
|
- Compute cvs_version so it doesn't have to be updated in sync with Version
|
|
|
|
|
- Build with JDK 11
|
|
|
|
|
- Generate the scripts with jpackage_script
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Mat Booth <mat.booth@redhat.com> - 2.12.0-8
|
|
|
|
|
- Peg to Java 8 due to use of 'com.sun.tools.doclets.Taglet' that was removed in
|
|
|
|
|
Java 11
|
|
|
|
|
|
|
|
|
|
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 2.12.0-7
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Wed Jun 24 2020 Mat Booth <mat.booth@redhat.com> - 2.12.0-6
|
|
|
|
|
- Turn off javadoc linting
|
|
|
|
|
|
|
|
|
|
* Wed Jun 24 2020 Jeff Johnston <jjohnstn@redhat.com> - 2.12.0-5
|
|
|
|
|
- Change to build using Java 11
|
|
|
|
|
- Fix some impl classes that require getContentDocument() method
|
|
|
|
|
- Add a patch-module option for Javadoc generation
|
|
|
|
|
* Tue May 07 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.12.0-4
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.12.0-4
|
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.12.0-3
|
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|