%global cvs_version 2_7_1 Name: xalan-j2 Version: 2.7.1 Release: 22 Summary: Java XSLT processor # src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C License: ASL 2.0 and W3C Source0: http://archive.apache.org/dist/xml/xalan-j/xalan-j_2_7_1-src.tar.gz Source1: %{name}-serializer-MANIFEST.MF Source2: http://repo1.maven.org/maven2/xalan/xalan/2.7.1/xalan-2.7.1.pom Source3: http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.pom Source4: xsltc-%{version}.pom Source5: %{name}-MANIFEST.MF Patch0: %{name}-noxsltcdeps.patch # Fix the serializer JAR filename in xalan-j2's MANIFEST.MF # https://bugzilla.redhat.com/show_bug.cgi?id=718738 Patch1: %{name}-serializerJARname.patch Patch2: https://src.fedoraproject.org/rpms/xalan-j2/raw/master/f/xalan-j2-CVE-2014-0107.patch Patch3: xalan-j-2.7.1-java-11.patch URL: http://xalan.apache.org/ BuildArch: noarch Provides: jaxp_transform_impl Requires: xerces-j2 Requires(post): chkconfig Requires(preun): chkconfig BuildRequires: java-devel BuildRequires: javapackages-local BuildRequires: ant BuildRequires: bcel BuildRequires: java_cup BuildRequires: regexp BuildRequires: sed BuildRequires: tomcat-servlet-3.0-api BuildRequires: xerces-j2 >= 2.7.1 BuildRequires: xml-commons-apis >= 1.3 BuildRequires: xml-stylebook BuildRequires: zip %description Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types. It implements the W3C Recommendations for XSL Transformations (XSLT) and the XML Path Language (XPath). It can be used from the command line, in an applet or a servlet, or as a module in other program. %package xsltc Summary: XSLT compiler Requires: java_cup Requires: bcel Requires: regexp Requires: xerces-j2 %description xsltc The XSLT Compiler is a Java-based tool for compiling XSLT stylesheets into lightweight and portable Java byte codes called translets. %package manual Summary: Manual for %{name} %description manual Documentation for %{name}. %package javadoc Summary: Javadoc for %{name} Requires: jpackage-utils BuildRequires: java-javadoc %description javadoc Javadoc for %{name}. %package demo Summary: Demo for %{name} Requires: %{name} = %{EVRD} Requires: tomcat-servlet-3.0-api %description demo Demonstrations and samples for %{name}. %prep %autosetup -p1 -n xalan-j_%{cvs_version} # Remove all binary libs, except ones needed to build docs and N/A elsewhere. for j in $(find . -name "*.jar"); do mv $j $j.no done # this tar.gz contains bundled software, some of which has unclear # licensing terms (W3C Software/Document license) . We could probably # replicate this with our jars but it's too much work so just generate # non-interlinked documentation rm src/*tar.gz sed -i '/