|
|
@ -1,8 +1,10 @@
|
|
|
|
|
|
|
|
%global cvs_version 2_11_0
|
|
|
|
|
|
|
|
|
|
|
|
%define __requires_exclude system.bundle
|
|
|
|
%define __requires_exclude system.bundle
|
|
|
|
|
|
|
|
|
|
|
|
Name: xerces-j2
|
|
|
|
Name: xerces-j2
|
|
|
|
Version: 2.12.1
|
|
|
|
Version: 2.11.0
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 34%{?dist}
|
|
|
|
Summary: Java XML parser
|
|
|
|
Summary: Java XML parser
|
|
|
|
# Most of the source is ASL 2.0
|
|
|
|
# Most of the source is ASL 2.0
|
|
|
|
# W3C licensed files:
|
|
|
|
# W3C licensed files:
|
|
|
@ -11,15 +13,19 @@ Summary: Java XML parser
|
|
|
|
License: ASL 2.0 and W3C
|
|
|
|
License: ASL 2.0 and W3C
|
|
|
|
URL: http://xerces.apache.org/xerces2-j/
|
|
|
|
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
|
|
|
|
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
|
|
|
|
Source11: %{name}-version.1
|
|
|
|
Source12: %{name}-constants.1
|
|
|
|
Source12: %{name}-constants.1
|
|
|
|
|
|
|
|
|
|
|
|
# Custom javac ant task used by the build
|
|
|
|
# Custom javac ant task used by the build
|
|
|
|
Source3: https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/XJavac.java
|
|
|
|
Source3: https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/XJavac.java
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Custom doclet tags used in javadocs
|
|
|
|
|
|
|
|
Source5: https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/ExperimentalTaglet.java
|
|
|
|
|
|
|
|
Source6: https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/InternalTaglet.java
|
|
|
|
|
|
|
|
|
|
|
|
Source7: %{name}-pom.xml
|
|
|
|
Source7: %{name}-pom.xml
|
|
|
|
|
|
|
|
|
|
|
|
# Patch the build so that it doesn't try to use bundled xml-commons source
|
|
|
|
# Patch the build so that it doesn't try to use bundled xml-commons source
|
|
|
@ -28,17 +34,20 @@ Patch0: %{name}-build.patch
|
|
|
|
# Patch the manifest so that it includes OSGi stuff
|
|
|
|
# Patch the manifest so that it includes OSGi stuff
|
|
|
|
Patch1: %{name}-manifest.patch
|
|
|
|
Patch1: %{name}-manifest.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Patch build.xml to patch modules as needed during javadoc generation
|
|
|
|
# Backported fix from upstream http://svn.apache.org/viewvc?view=revision&revision=1499506
|
|
|
|
Patch2: %{name}-modulefix.patch
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1140031
|
|
|
|
|
|
|
|
Patch2: xerces-j2-CVE-2013-4002.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: apache-parent
|
|
|
|
BuildRequires: apache-parent
|
|
|
|
|
|
|
|
BuildRequires: xalan-j2 >= 2.7.1
|
|
|
|
BuildRequires: xml-commons-apis >= 1.4.01
|
|
|
|
BuildRequires: xml-commons-apis >= 1.4.01
|
|
|
|
BuildRequires: xml-commons-resolver >= 1.2
|
|
|
|
BuildRequires: xml-commons-resolver >= 1.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: xalan-j2 >= 2.7.1
|
|
|
|
Requires: xml-commons-apis >= 1.4.01
|
|
|
|
Requires: xml-commons-apis >= 1.4.01
|
|
|
|
Requires: xml-commons-resolver >= 1.2
|
|
|
|
Requires: xml-commons-resolver >= 1.2
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
@ -103,24 +112,22 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -n xerces-%{cvs_version}
|
|
|
|
%setup -q -n xerces-%{cvs_version}
|
|
|
|
%patch -P 0 -p0
|
|
|
|
%patch0 -p0 -b .orig
|
|
|
|
%patch -P 1 -p0
|
|
|
|
%patch1 -p0 -b .orig
|
|
|
|
%patch -P 2 -p0
|
|
|
|
%patch2 -p0 -b .orig
|
|
|
|
|
|
|
|
|
|
|
|
# Copy the custom ant task into place
|
|
|
|
# Copy the custom ant tasks into place
|
|
|
|
mkdir -p tools/org/apache/xerces/util
|
|
|
|
mkdir -p tools/org/apache/xerces/util
|
|
|
|
mkdir -p tools/bin
|
|
|
|
mkdir -p tools/bin
|
|
|
|
cp -a %{SOURCE3} tools/org/apache/xerces/util
|
|
|
|
cp -a %{SOURCE3} %{SOURCE5} %{SOURCE6} tools/org/apache/xerces/util
|
|
|
|
|
|
|
|
|
|
|
|
# Make sure upstream hasn't sneaked in any jars we don't know about
|
|
|
|
# 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
|
|
|
|
sed -i 's/\r//' LICENSE README NOTICE
|
|
|
|
|
|
|
|
|
|
|
|
# Disable javadoc linting
|
|
|
|
|
|
|
|
sed -i -e "s|additionalparam='|additionalparam='-Xdoclint:none |" build.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# legacy aliases for compatability
|
|
|
|
# legacy aliases for compatability
|
|
|
|
%mvn_alias : xerces:xerces xerces:xmlParserAPIs apache:xerces-j2
|
|
|
|
%mvn_alias : xerces:xerces xerces:xmlParserAPIs apache:xerces-j2
|
|
|
|
%mvn_file : %{name} jaxp_parser_impl
|
|
|
|
%mvn_file : %{name} jaxp_parser_impl
|
|
|
@ -129,17 +136,22 @@ sed -i -e "s|additionalparam='|additionalparam='-Xdoclint:none |" build.xml
|
|
|
|
pushd tools
|
|
|
|
pushd tools
|
|
|
|
|
|
|
|
|
|
|
|
# Build custom ant tasks
|
|
|
|
# Build custom ant tasks
|
|
|
|
%{_jvmdir}/java-11-openjdk/bin/javac -classpath $(build-classpath ant) org/apache/xerces/util/XJavac.java
|
|
|
|
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
|
|
|
|
jar cf bin/xjavac.jar org/apache/xerces/util/XJavac.class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build custom doc taglets
|
|
|
|
|
|
|
|
javac -classpath /usr/lib/jvm/java/lib/tools.jar org/apache/xerces/util/*Taglet.java
|
|
|
|
|
|
|
|
jar cf bin/xerces2taglets.jar org/apache/xerces/util/*Taglet.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-apis) xml-apis.jar
|
|
|
|
ln -sf $(build-classpath xml-commons-resolver) resolver.jar
|
|
|
|
ln -sf $(build-classpath xml-commons-resolver) resolver.jar
|
|
|
|
|
|
|
|
ln -sf $(build-classpath xerces-j2) x.jar
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# Build everything
|
|
|
|
# Build everything
|
|
|
|
export ANT_OPTS="-Xmx512m -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true"
|
|
|
|
export ANT_OPTS="-Xmx256m -Djava.endorsed.dirs=$(pwd)/tools -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true"
|
|
|
|
ant -Djavac.source=1.8 -Djavac.target=1.8 \
|
|
|
|
ant -Djavac.source=1.5 -Djavac.target=1.5 \
|
|
|
|
-Dbuild.compiler=modern \
|
|
|
|
-Dbuild.compiler=modern \
|
|
|
|
clean jars javadocs
|
|
|
|
clean jars javadocs
|
|
|
|
|
|
|
|
|
|
|
@ -161,8 +173,8 @@ cp -pr build/docs/javadocs/xni/* %{buildroot}%{_javadocdir}/%{name}/xni
|
|
|
|
cp -pr build/docs/javadocs/other/* %{buildroot}%{_javadocdir}/%{name}/other
|
|
|
|
cp -pr build/docs/javadocs/other/* %{buildroot}%{_javadocdir}/%{name}/other
|
|
|
|
|
|
|
|
|
|
|
|
# scripts
|
|
|
|
# scripts
|
|
|
|
%jpackage_script org.apache.xerces.impl.Version "" "" %{name} %{name}-version 1
|
|
|
|
install -pD -m755 -T %{SOURCE1} %{buildroot}%{_bindir}/%{name}-version
|
|
|
|
%jpackage_script org.apache.xerces.impl.Constants "" "" %{name} %{name}-constants 1
|
|
|
|
install -pD -m755 -T %{SOURCE2} %{buildroot}%{_bindir}/%{name}-constants
|
|
|
|
|
|
|
|
|
|
|
|
# manual pages
|
|
|
|
# manual pages
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
@ -174,7 +186,7 @@ install -pD -T build/xercesSamples.jar %{buildroot}%{_datadir}/%{name}/%{name}-s
|
|
|
|
cp -pr data %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -pr data %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
# alternatives support removed in f26
|
|
|
|
# alternatives suppoort removed in f26
|
|
|
|
update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar >/dev/null 2>&1 || :
|
|
|
|
update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar >/dev/null 2>&1 || :
|
|
|
|
# it deletes the link, set it up again
|
|
|
|
# it deletes the link, set it up again
|
|
|
|
ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar
|
|
|
|
ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar
|
|
|
@ -191,68 +203,8 @@ ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 2.12.1-8
|
|
|
|
* Tue Dec 12 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.11.0-34
|
|
|
|
- Fix patch usage
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 19 2018 Marian Koncek <mkoncek@redhat.com> - 2.12.0-1
|
|
|
|
|
|
|
|
- Update to upstream version 2.12.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 2.11.0-34
|
|
|
|
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 2.11.0-34
|
|
|
|
- Fix license tag to include W3C
|
|
|
|
- Fix license tag to include W3C
|
|
|
|