%global cvs_version 2_11_0 Name: xerces-j2 Summary: Java XML parser Summary(ja): Java XML パーサ Version: 2.11.0 Release: 1%{?_dist_release} Group: Development/Libraries License: ASL 2.0 URL: http://xerces.apache.org/xerces2-j/ 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 # 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 # 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 # Patch the build so that it doesn't try to use bundled xml-commons source Patch0: %{name}-build.patch # Patch the manifest so that it includes OSGi stuff Patch1: %{name}-manifest.patch # Backported fix from upstream http://svn.apache.org/viewvc?view=revision&revision=1499506 # See https://bugzilla.redhat.com/show_bug.cgi?id=1140031 Patch2: xerces-j2-CVE-2013-4002.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch BuildRequires: java-devel >= 1.6.0 BuildRequires: javapackages-tools >= 3.4.1-7vl7 BuildRequires: xalan-j2 >= 2.7.1 BuildRequires: xml-commons-apis >= 1.4.01 BuildRequires: xml-commons-resolver >= 1.2 BuildRequires: ant BuildRequires: jaxp_parser_impl #BuildRequires: dejavu-sans-fonts Requires: java-headless Requires: javapackages-tools Requires: xalan-j2 >= 2.7.1 Requires: xml-commons-apis >= 1.4.01 Requires: xml-commons-resolver >= 1.2 Provides: jaxp_parser_impl = 1.4 Provides: %{name}-scripts = %{version}-%{release} Obsoletes: %{name}-scripts < 2.9.0-5 Requires(post): alternatives jaxp_parser_impl Requires(preun): alternatives jaxp_parser_impl # 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, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. The Apache Xerces2 parser is the reference implementation of XNI but other parser components, configurations, and parsers can be written using the Xerces Native Interface. For complete design and implementation documents, refer to the XNI Manual. Xerces2 is a fully conforming XML Schema processor. For more information, refer to the XML Schema page. Xerces2 also provides a complete implementation of the Document Object Model Level 3 Core and Load/Save W3C Recommendations and provides a complete implementation of the XML Inclusions (XInclude) W3C Recommendation. It also provides support for OASIS XML Catalogs v1.1. Xerces2 is able to parse documents written according to the XML 1.1 Recommendation, except that it does not yet provide an option to enable normalization checking as described in section 2.13 of this specification. It also handles namespaces 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} Group: Documentation Requires: javapackages-tools # 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} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description demo %{summary}. %prep %setup -q -n xerces-%{cvs_version} %patch0 -p0 -b .orig %patch1 -p0 -b .orig %patch2 -p0 -b .orig # Copy the custom ant tasks into place mkdir -p tools/org/apache/xerces/util mkdir -p tools/bin cp -a %{SOURCE3} %{SOURCE5} %{SOURCE6} tools/org/apache/xerces/util # 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 '{}' \; sed -i 's/\r//' LICENSE README NOTICE %build pushd tools # Build custom ant tasks javac -classpath $(build-classpath ant) org/apache/xerces/util/XJavac.java 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 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="-Xmx256m -Djava.endorsed.dirs=$(pwd)/tools -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true" ant -Djavac.source=1.5 -Djavac.target=1.5 \ -Dbuild.compiler=modern \ clean jars javadocs %install rm -rf $RPM_BUILD_ROOT # jars install -pD -T build/xercesImpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # javadoc mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/impl mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/xs mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/xni mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/other cp -pr build/docs/javadocs/xerces2/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/impl cp -pr build/docs/javadocs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/xs cp -pr build/docs/javadocs/xni/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/xni cp -pr build/docs/javadocs/other/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/other # scripts install -pD -m755 -T %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-version install -pD -m755 -T %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}-constants # manual pages install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1 install -p -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1 install -p -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man1 # demo install -pD -T build/xercesSamples.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-samples.jar cp -pr data $RPM_BUILD_ROOT%{_datadir}/%{name} # Pom #install -pD -T -m 644 %{SOURCE7} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # Depmap with legacy depmaps for compatability #add_maven_depmap JPP-%{name}.pom %{name}.jar -a "xerces:xerces,xerces:xmlParserAPIs,apache:xerces-j2" # jaxp_parser_impl ghost symlink ln -s %{_sysconfdir}/alternatives \ $RPM_BUILD_ROOT%{_javadir}/jaxp_parser_impl.jar %clean rm -rf $RPM_BUILD_ROOT %post /sbin/update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \ jaxp_parser_impl %{_javadir}/%{name}.jar 40 %preun if [ $1 = 0 ]; then /sbin/update-alternatives --remove jaxp_parser_impl \ %{_javadir}/%{name}.jar fi %files %defattr(-,root,root,-) %doc LICENSE NOTICE README %{_javadir}/%{name}* %{_bindir}/* %{_mandir}/*/* %ghost %{_javadir}/jaxp_parser_impl.jar %files javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name} %files demo %defattr(-,root,root,-) %{_datadir}/%{name} %changelog * Sat Jan 24 2015 Ryoichi INAGAKI - 2.11.0-1 - updated to 2.11.0 * Sat Feb 04 2012 Yoji TOYODA - 2.9.0-6 - rebuild with Vine6 environment * Fri Aug 27 2010 Ryoichi INAGAKI - 2.9.0-5 - Initial build for Vine Linux * Sat Jun 12 2010 Mat Booth - 2.9.0-4 - Fix broken links in manual and fix javadoc requires. - Build 1.5 bytecode instead of 1.6, for compatibility. * Fri Jan 22 2010 Andrew Overholt - 2.9.0-3 - Fix unversioned Provides for jaxp_parser_impl (make it 1.3). * Thu Jan 14 2010 Mat Booth - 2.9.0-2 - Add a build dep on a font package because the JDK is missing a dependency to function correctly in headless mode. See RHBZ #478480 and #521523. - Fix groups. * Tue Jan 5 2010 Mat Booth - 2.9.0-1 - Update to 2.9.0: This is the version Eclipse expects, previously the OSGi manifest was lying about its version :-o - Enable manual sub-package now xml-stylebook is in Fedora. - Drop GCJ support. - Minor changes to spec to make it more conforming to the guidelines. - Drop the libgcj patch, we don't seem to need it anymore. - Add the OSGi manifest as part of the build instead of the install. - Fix packaging bug RHBZ #472646. * Mon Jul 27 2009 Fedora Release Engineering - 0:2.7.1-12.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0:2.7.1-11.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 30 2009 Alexander Kurtakov 0:2.7.1-10.3 - Add osgi manifest. * Thu Jul 10 2008 Tom "spot" Callaway - 0:2.7.1-10.2 - drop repotag - fix license tag * Tue Feb 19 2008 Fedora Release Engineering - 0:2.7.1-10jpp.1 - Autorebuild for GCC 4.3 * Wed Mar 28 2007 Matt Wringe 0:2.7.1-9jpp.1 - Update with newest jpp version - Clean up spec file for Fedora Review * Sun Aug 13 2006 Warren Togami 0:2.7.1-7jpp.2 - fix typo in preun req * Sat Aug 12 2006 Matt Wringe 0:2.7.1-7jpp.1 - Merge with upstream version * Sat Aug 12 2006 Matt Wringe 0:2.7.1-7jpp - Add conditional native compiling - Add missing requires for javadocs - Add missing requires for post and preun - Update version to 7jpp at Fedora's request * Sat Jul 22 2006 Jakub Jelinek - 0:2.7.1-6jpp_9fc - Rebuilt * Wed Jul 12 2006 Jesse Keating - 0:2.7.1-6jpp_8fc - rebuild * Thu Mar 30 2006 Fernando Nasser 0:2.7.1-3jpp - Add missing BR for xml-stylebook * Wed Mar 22 2006 Ralph Apel 0:2.7.1-2jpp - First JPP-1.7 release - use tools subdir and give it as java.endorsed.dirs (for java-1.4.2-bea e.g.) * Mon Mar 6 2006 Jeremy Katz - 0:2.7.1-6jpp_7fc - stop scriptlet spew * Wed Feb 22 2006 Rafael Schloming - 0:2.7.1-6jpp_6fc - Updated to 2.7.1 * Fri Feb 10 2006 Jesse Keating - 0:2.6.2-6jpp_5fc - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0:2.6.2-6jpp_4fc - rebuilt for new gcc4.1 snapshot and glibc changes * Thu Feb 2 2006 Archit Shah 0:2.6.2-6jpp_3fc - build xerces without using native code * Mon Jan 9 2006 Archit Shah 0:2.6.2-6jpp_2fc - rebuilt for new gcj * Wed Dec 21 2005 Jesse Keating 0:2.6.2-6jpp_1fc - rebuilt for new gcj * Tue Dec 13 2005 Jesse Keating - rebuilt for new gcj * Fri Oct 07 2005 Ralph Apel 0:2.7.1-1jpp - Upgrade to 2.7.1 * Thu Jul 21 2005 Ralph Apel 0:2.6.2-7jpp - Include target jars-dom3 - Create new subpackage dom3 * Mon Jul 18 2005 Gary Benson 0:2.6.2-5jpp_2fc - Build on ia64, ppc64, s390 and s390x. - Switch to aot-compile-rpm (also BC-compiles samples). * Wed Jul 13 2005 Gary Benson 0:2.6.2-6jpp - Build with Sun JDK (from ). * Wed Jun 15 2005 Gary Benson 0:2.6.2-5jpp_1fc - Upgrade to 2.6.2-5jpp. * Tue Jun 14 2005 Gary Benson 0:2.6.2-5jpp - Remove the tools tarball, and build xjavac from source. - Patch xjavac to fix the classpath under libgcj too. * Fri Jun 10 2005 Gary Benson 0:2.6.2-4jpp_8fc - Remove the tools tarball, and build xjavac from source. - Replace classpath workaround to xjavac task and use xml-commons classes again (#152255). * Thu May 26 2005 Gary Benson 0:2.6.2-4jpp_7fc - Rearrange how BC-compiled stuff is built and installed. * Mon May 23 2005 Gary Benson 0:2.6.2-4jpp_6fc - Add alpha to the list of build architectures (#157522). - Use absolute paths for rebuild-gcj-db. * Thu May 5 2005 Gary Benson 0:2.6.2-4jpp_5fc - Add dependencies for %%post and %%postun scriptlets (#156901). * Fri Apr 29 2005 Gary Benson 0:2.6.2-4jpp_4fc - BC-compile. * Thu Apr 28 2005 Gary Benson 0:2.6.2-4jpp_3fc - Revert xjavac classpath workaround, and patch to use libgcj's classes instead of those in xml-commons (#152255). * Thu Apr 21 2005 Gary Benson 0:2.6.2-4jpp_2fc - Add classpath workaround to xjavac task (#152255). * Wed Jan 12 2005 Gary Benson 0:2.6.2-4jpp_1fc - Reenable building of classes that require javax.swing (#130006). - Sync with RHAPS. * Mon Nov 15 2004 Fernando Nasser 0:2.6.2-4jpp_1rh - Merge with upstream for 2.6.2 upgrade * Thu Nov 4 2004 Gary Benson 0:2.6.2-2jpp_5fc - Build into Fedora. * Thu Oct 28 2004 Gary Benson 0:2.6.2-2jpp_4fc - Bootstrap into Fedora. * Fri Oct 1 2004 Andrew Overholt 0:2.6.2-2jpp_4rh - add coreutils BuildRequires * Thu Sep 30 2004 Andrew Overholt 0:2.6.2-2jpp_3rh - Remove xml-commons-resolver as a Requires * Thu Aug 26 2004 Ralph Apel 0:2.6.2-4jpp - Build with ant-1.6.2 - Dropped jikes requirement, built for 1.4.2 * Wed Jun 23 2004 Kaj J. Niemi 0:2.6.2-3jpp - Updated Patch #0 to fix breakage using BEA 1.4.2 SDK, new patch from and . * Mon Jun 21 2004 Vivek Lakshmanan 0:2.6.2-2jpp_2rh - Added new Source1 URL and added new %%setup to expand it under the expanded result of Source0. - Updated Patch0 to fix version discrepancies. - Added build requirement for xml-commons-apis * Mon Jun 14 2004 Matt Wringe 0:2.6.2-2jpp_1rh - Update to 2.6.2 - made patch names comformant * Mon Mar 29 2004 Kaj J. Niemi 0:2.6.2-2jpp - Rebuilt with jikes 1.18 for java 1.3.1_11 * Fri Mar 26 2004 Frank Ch. Eigler 0:2.6.1-1jpp_2rh - add RHUG upgrade cleanup * Tue Mar 23 2004 Kaj J. Niemi 0:2.6.2-1jpp - 2.6.2 * Thu Mar 11 2004 Frank Ch. Eigler 0:2.6.1-1jpp_1rh - RH vacuuming - remove jikes dependency - add nonjikes-cast.patch * Sun Feb 08 2004 David Walluck 0:2.6.1-1jpp - 2.6.1 - update Source0 URL - now requires xml-commons-resolver * Fri Jan 9 2004 Kaj J. Niemi - 0:2.6.0-1jpp - Update to 2.6.0 - Patch #1 (xerces-j2-manifest.patch) is unnecessary (upstream) * Tue Oct 21 2003 Ville Skyttä - 0:2.5.0-1jpp - Update to 2.5.0. - Clean up versionless javadoc dir symlinking, own (ghost) the symlinks. - Mark javadocs as %%doc. * Wed Jun 4 2003 Ville Skyttä - 0:2.4.0-3jpp - Own (ghost) %%{_javadir}/jaxp_parser_impl.jar. - Remove alternatives in preun instead of postun. * Mon May 12 2003 David Walluck 0:2.4.0-2jpp - bug #17325 fixed upstream * Mon May 12 2003 David Walluck 0:2.4.0-1jpp - 2.4.0 - BuildRequires: jikes - update for JPackage 1.5 - re-diff'ed build patch for 2.4.0 - bug #17325 handled by perl now - scripts: s|find-jar|build-classpath| and don't test for java-functions * Wed Mar 26 2003 Nicolas Mailhot - 2.3.0-2jpp - For jpackage-utils 1.5 - zapped manual, since it doesn't want to build - as a consequence, removed uneeded dependencies * Mon Feb 24 2003 Ville Skyttä - 2.3.0-1jpp - Update to 2.3.0. - Add a crude patch to work around invalid XML in doc sources, see . - Built with IBM's 1.3.1 SR3. * Sat Dec 28 2002 Ville Skyttä - 2.2.1-2jpp - Add upstream patch which fixes problems with Tomcat's webapps. - Separate scripts subpackage. * Fri Nov 15 2002 Ville Skyttä - 2.2.1-1jpp - Update to 2.2.1. - Change alternative to point to non-versioned jar. - Don't remove alternative on upgrade. - Fix Group tag for demo, javadoc and manual subpackages. - Add version and constants scripts. - Some spec file cleanup. * Sun Oct 6 2002 Ville Skyttä 2.2.0-2jpp - Fix bad permissions for main jar. * Sun Sep 29 2002 Ville Skyttä 2.1.0-1jpp - Update to 2.2.0. * Tue Sep 10 2002 Ville Skyttä 2.1.0-2jpp - Rebuild with -Dcompiler=modern, not a Jikes bug this time, but sloppy code that is tolerated by javac. See for details. * Tue Sep 10 2002 Ville Skyttä 2.1.0-1jpp - 2.1.0. - Updated description. - Changed javadoc and manual group to Documentation. - Spec file cleanups. * Fri Jul 12 2002 Henri Gomez 2.0.2-4jpp - add BuildRequires xerces-j1 and xalan-j2 - removed BuildRequires xml-commons-api since ant require jaxp_parser_impl which in turn require xml-commons-api ;) * Mon Jul 01 2002 Guillaume Rousse 2.0.2-3jpp - vendor, distribution, group tags - provides jaxp_parser_impl - dropped api jar - renamed lone jar to %%{name}.jar - priority bumped to 40 - fixed stylebook build (add xerces-j1 in classpath) * Wed Jun 26 2002 Guillaume Rousse 2.0.2-2jpp - rebuild for missing symlinks - use sed instead of bash 2.x extension in link area to make spec compatible with distro using bash 1.1x * Mon Jun 24 2002 Henri Gomez 2.0.2-1jpp - 2.0.2 * Sun Mar 10 2002 Guillaume Rousse 2.0.1-1jpp - 2.0.1 - provides jaxp_parser2 virtual resource - drop wrapper * Sun Feb 03 2002 Guillaume Rousse 2.0.0-1jpp - first JPackage release