%global cvs_version 2_7_1 %global xalan_data_dir %{buildroot}%{_datadir}/%{name} Name: xalan-j2 Version: 2.7.1 Release: 39 Epoch: 0 Summary: Java XSLT processor License: ASL 2.0 and W3C URL: http://xalan.apache.org/ Source0: %{name}-%{version}.tar.gz Source1: http://repo1.maven.org/maven2/xalan/xalan/%{version}/xalan-%{version}.pom Source2: http://repo1.maven.org/maven2/xalan/serializer/%{version}/serializer-%{version}.pom Source3: xsltc-%{version}.pom Source4: %{name}-MANIFEST.MF Source5: %{name}-serializer-MANIFEST.MF Source6: generate-tarball.sh Patch0: %{name}-noxsltcdeps.patch Patch1: %{name}-CVE-2014-0107.patch BuildRequires: ant apache-parent bcel dos2unix glassfish-servlet-api java_cup BuildRequires: javapackages-local regexp sed xerces-j2 >= 0:2.7.1 BuildRequires: xml-commons-apis >= 0:1.3 Requires: glassfish-servlet-api xerces-j2 BuildArch: noarch Provides: jaxp_transform_impl Provides: xalan-j2-demo Provides: xalan-j2-javadoc Provides: xalan-j2-manual Obsoletes: xalan-j2-demo Obsoletes: xalan-j2-javadoc Obsoletes: xalan-j2-manual %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: Java XSLT compiler License: ASL 2.0 Requires: bcel java_cup regexp 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. %prep %autosetup -n xalan-j_%{cvs_version} -p1 find . -name '*.jar' -exec rm -f {} \; find . -name '*.class' -exec rm -f {} \; sed -i '/