|
|
|
@ -1,8 +1,39 @@
|
|
|
|
|
%global cvs_version %(echo %{version} | tr . _)
|
|
|
|
|
# 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_1
|
|
|
|
|
|
|
|
|
|
Name: xalan-j2
|
|
|
|
|
Version: 2.7.2
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 2.7.1
|
|
|
|
|
Release: 38%{?dist}
|
|
|
|
|
Epoch: 0
|
|
|
|
|
Summary: Java XSLT processor
|
|
|
|
|
# src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C
|
|
|
|
|
License: ASL 2.0 and W3C
|
|
|
|
@ -10,15 +41,19 @@ URL: http://xalan.apache.org/
|
|
|
|
|
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
Source1: xalan-j2-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
|
|
|
|
|
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: xalan-j2-MANIFEST.MF
|
|
|
|
|
Source5: %{name}-MANIFEST.MF
|
|
|
|
|
# Remove bundled binaries which cannot be easily verified for licensing
|
|
|
|
|
Source6: generate-tarball.sh
|
|
|
|
|
|
|
|
|
|
Patch0: xalan-j2-noxsltcdeps.patch
|
|
|
|
|
Patch0: %{name}-noxsltcdeps.patch
|
|
|
|
|
# Fix CVE-2014-0107: insufficient constraints in secure processing
|
|
|
|
|
# feature (oCERT-2014-002). Generated form upstream revisions 1581058
|
|
|
|
|
# and 1581426.
|
|
|
|
|
Patch2: %{name}-CVE-2014-0107.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
@ -29,6 +64,7 @@ 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
|
|
|
|
|
|
|
|
|
@ -62,15 +98,31 @@ 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
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
|
|
find . -name '*.jar' -delete
|
|
|
|
|
find . -name '*.class' -delete
|
|
|
|
|
|
|
|
|
|
sed -i '/<bootclasspath/d' build.xml
|
|
|
|
|
(cd ./src && tar xf xml-commons-external-*-src.tar.gz)
|
|
|
|
|
sed -i '/<!-- Expand jaxp sources/,/<delete file="${xml-commons-srcs.tar}"/{d}' build.xml
|
|
|
|
|
|
|
|
|
|
# Remove classpaths from manifests
|
|
|
|
|
sed -i '/class-path/I d' $(find -iname '*manifest*')
|
|
|
|
@ -99,13 +151,15 @@ popd
|
|
|
|
|
export CLASSPATH=$(build-classpath glassfish-servlet-api)
|
|
|
|
|
|
|
|
|
|
ant \
|
|
|
|
|
-Dcompiler.source=1.6 \
|
|
|
|
|
-Dcompiler.target=1.6 \
|
|
|
|
|
-Djava.awt.headless=true \
|
|
|
|
|
-Dapi.j2se=%{_javadocdir}/java \
|
|
|
|
|
-Dbuild.xalan-interpretive.jar=build/xalan-interpretive.jar \
|
|
|
|
|
xalan-interpretive.jar\
|
|
|
|
|
xsltc.unbundledjar \
|
|
|
|
|
docs
|
|
|
|
|
docs \
|
|
|
|
|
javadocs \
|
|
|
|
|
samples \
|
|
|
|
|
servlet
|
|
|
|
|
|
|
|
|
|
# inject OSGi manifests
|
|
|
|
|
jar ufm build/serializer.jar %{SOURCE1}
|
|
|
|
@ -116,7 +170,18 @@ jar ufm build/xalan-interpretive.jar %{SOURCE5}
|
|
|
|
|
%mvn_artifact %{SOURCE4} build/xsltc.jar
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
%mvn_install -J build/docs/apidocs
|
|
|
|
|
|
|
|
|
|
# demo
|
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
|
install -p -m 644 build/xalansamples.jar \
|
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-samples.jar
|
|
|
|
|
install -p -m 644 build/xalanservlet.war \
|
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-servlet.war
|
|
|
|
|
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
# fix link between manual and javadoc
|
|
|
|
|
(cd build/docs; ln -sf %{_javadocdir}/%{name} apidocs)
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
# update-alternatives will remove the symlink - preserve it
|
|
|
|
@ -137,53 +202,14 @@ mv %{_javadir}/jaxp_transform_impl.jar{.tmp,} || :
|
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
|
%doc build/docs/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.7.2-10
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Mon Jun 28 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.2-9
|
|
|
|
|
- Build with OpenJDK 11
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0:2.7.2-8
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.2-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 0:2.7.2-5
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Mon Jun 29 2020 Mat Booth <mat.booth@redhat.com> - 0:2.7.2-4
|
|
|
|
|
- Peg to Java 8 due to build issues on Java 11
|
|
|
|
|
|
|
|
|
|
* Fri Jun 19 2020 Mat Booth <mat.booth@redhat.com> - 0:2.7.2-3
|
|
|
|
|
- Allow building against Java 11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.2-2
|
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
* Wed Oct 16 2019 Fabio Valentini <decathorpe@gmail.com> - 0:2.7.2-1
|
|
|
|
|
- Update to version 2.7.2.
|
|
|
|
|
|
|
|
|
|
* Wed Jul 31 2019 Marian Koncek <mkoncek@redhat.com> - 2.7.2-1
|
|
|
|
|
- Update to upstream version 2.7.2
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.1-40
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.1-39
|
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
%files javadoc
|
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7.1-39
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
%files demo
|
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 07 2018 Michael Simacek <msimacek@redhat.com> - 0:2.7.1-38
|
|
|
|
|
- Update license of subpackages
|
|
|
|
|
|
|
|
|
|