# Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # %global cvs_version 2_7_2 Name: xalan-j2 Version: 2.7.2 Release: 5%{?dist} Epoch: 0 Summary: Java XSLT processor # src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C License: ASL 2.0 and W3C URL: http://xalan.apache.org/ # ./generate-tarball.sh Source0: %{name}-%{version}.tar.gz Source1: %{name}-serializer-MANIFEST.MF Source2: http://repo1.maven.org/maven2/xalan/xalan/%{version}/xalan-%{version}.pom Source3: http://repo1.maven.org/maven2/xalan/serializer/%{version}/serializer-%{version}.pom Source4: xsltc-%{version}.pom Source5: %{name}-MANIFEST.MF # Remove bundled binaries which cannot be easily verified for licensing Source6: generate-tarball.sh Patch0: %{name}-noxsltcdeps.patch BuildArch: noarch BuildRequires: javapackages-local BuildRequires: ant BuildRequires: apache-parent BuildRequires: bcel BuildRequires: java_cup BuildRequires: regexp BuildRequires: sed BuildRequires: glassfish-servlet-api BuildRequires: xerces-j2 >= 0:2.7.1 BuildRequires: xml-commons-apis >= 0:1.3 BuildRequires: java-1.8.0-openjdk-devel Requires: xerces-j2 Provides: jaxp_transform_impl %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 License: ASL 2.0 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} License: ASL 2.0 %description manual Documentation for %{name}. %package javadoc Summary: Javadoc for %{name} License: ASL 2.0 %description javadoc Javadoc for %{name}. %package demo Summary: Demo for %{name} License: ASL 2.0 Requires: %{name} = %{epoch}:%{version}-%{release} Requires: glassfish-servlet-api %description demo Demonstrations and samples for %{name}. %prep %setup -q -n xalan-j_%{cvs_version} %patch0 -p0 find . -name '*.jar' -delete find . -name '*.class' -delete sed -i '/