From 5aafb492efb77e8cf208ca086fbb486fa1c35d95 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Thu, 15 Oct 2020 13:49:38 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/xalan-j2#2c1442c6ab24caaf18fffecb54e83f866d2aaa71 --- .gitignore | 14 + generate-tarball.sh | 22 ++ sources | 4 + xalan-j2-MANIFEST.MF | 75 ++++ xalan-j2-noxsltcdeps.patch | 11 + xalan-j2-serializer-MANIFEST.MF | 10 + xalan-j2.spec | 626 ++++++++++++++++++++++++++++++++ 7 files changed, 762 insertions(+) create mode 100755 generate-tarball.sh create mode 100644 sources create mode 100644 xalan-j2-MANIFEST.MF create mode 100644 xalan-j2-noxsltcdeps.patch create mode 100644 xalan-j2-serializer-MANIFEST.MF create mode 100644 xalan-j2.spec diff --git a/.gitignore b/.gitignore index e69de29..066bf79 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,14 @@ +/results_* +/*.src.rpm + +/xalan-j2-notarget.patch +/xalan-j_2_7_0-src-RHsemiCLEAN.tar.gz +/xalan-j_2_7_1-src.tar.gz +/serializer-2.7.1.pom +/xalan-2.7.1.pom +/xsltc-2.7.1.pom +/xalan-j2-2.7.1.tar.gz +/xalan-j2-2.7.2.tar.gz +/xalan-2.7.2.pom +/serializer-2.7.2.pom +/xsltc-2.7.2.pom diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100755 index 0000000..4bb8914 --- /dev/null +++ b/generate-tarball.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +name=xalan-j2 +version="$(sed -n 's/Version:\s*//p' *.spec)" + +# RETRIEVE +wget "http://archive.apache.org/dist/xalan/xalan-j/source/xalan-j_${version//./_}-src.tar.gz" -O "${name}-${version}.orig.tar.gz" + +rm -rf tarball-tmp +mkdir tarball-tmp +cd tarball-tmp +tar xf "../${name}-${version}.orig.tar.gz" + +# CLEAN TARBALL +find -name '*.jar' -delete +find -name '*.class' -delete +rm */src/*.tar.gz + +tar cf "../${name}-${version}.tar.gz" * +cd .. +rm -r tarball-tmp "${name}-${version}.orig.tar.gz" diff --git a/sources b/sources new file mode 100644 index 0000000..2c6d2e0 --- /dev/null +++ b/sources @@ -0,0 +1,4 @@ +SHA512 (xalan-j2-2.7.2.tar.gz) = 8f03d3e8f239a1efe71b8b4e3830f21c35fdeda69465bec377f139718e0ce0e842dde3b3a9a8922d14d0d3ad91f731134c604d71bc66aeb26e78ab0cbb0776a6 +SHA512 (xalan-2.7.2.pom) = 4b95e3eb3a2ab262c9a27040a5214cfb8c49c36ece8e71a933074eb063205ef96deff351f017b034c9c97d43d77b020482aade7bc01e1245d8ee10a51269c5ce +SHA512 (serializer-2.7.2.pom) = 1a20cd7008ab876f9605a67515d558b26b9be009c4f49cb27ddf5aa715b5d164c476c236b6d6edf39e81538dfb1516271c3859af8e73f8cdbeee24efb45e9a44 +SHA512 (xsltc-2.7.2.pom) = 89c5c2cd358c32a9b8073869abdcb1df21a95c21a1a099c1b91f25ac3de7fdf9893977cb227efa4dad1de29773aaaef155155d1ec8648aae3c2e512154c200ef diff --git a/xalan-j2-MANIFEST.MF b/xalan-j2-MANIFEST.MF new file mode 100644 index 0000000..2947cce --- /dev/null +++ b/xalan-j2-MANIFEST.MF @@ -0,0 +1,75 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.8.2 +Created-By: 1.7.0_b147-icedtea (Oracle Corporation) +Main-Class: org.apache.xalan.xslt.Process +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name.0 +Bundle-SymbolicName: org.apache.xalan +Bundle-Version: 2.7.2 +Bundle-Vendor: %Bundle-Vendor.0 +Export-Package: org.apache.regexp;version="2.7.2", + org.apache.xalan;version="2.7.2", + org.apache.xalan.client;version="2.7.2", + org.apache.xalan.extensions;version="2.7.2", + org.apache.xalan.lib;version="2.7.2", + org.apache.xalan.lib.sql;version="2.7.2", + org.apache.xalan.processor;version="2.7.2", + org.apache.xalan.res;version="2.7.2", + org.apache.xalan.serialize;version="2.7.2", + org.apache.xalan.templates;version="2.7.2", + org.apache.xalan.trace;version="2.7.2", + org.apache.xalan.transformer;version="2.7.2", + org.apache.xalan.xslt;version="2.7.2", + org.apache.xalan.xsltc;version="2.7.2", + org.apache.xalan.xsltc.cmdline;version="2.7.2", + org.apache.xalan.xsltc.cmdline.getopt;version="2.7.2", + org.apache.xalan.xsltc.compiler;version="2.7.2", + org.apache.xalan.xsltc.compiler.util;version="2.7.2", + org.apache.xalan.xsltc.dom;version="2.7.2", + org.apache.xalan.xsltc.runtime;version="2.7.2", + org.apache.xalan.xsltc.runtime.output;version="2.7.2", + org.apache.xalan.xsltc.trax;version="2.7.2", + org.apache.xalan.xsltc.util;version="2.7.2", + org.apache.xml.dtm;version="2.7.2", + org.apache.xml.dtm.ref;version="2.7.2", + org.apache.xml.dtm.ref.dom2dtm;version="2.7.2", + org.apache.xml.dtm.ref.sax2dtm;version="2.7.2", + org.apache.xml.res;version="2.7.2", + org.apache.xml.utils;version="2.7.2", + org.apache.xml.utils.res;version="2.7.2", + org.apache.xpath;version="2.7.2", + org.apache.xpath.axes;version="2.7.2", + org.apache.xpath.compiler;version="2.7.2", + org.apache.xpath.domapi;version="2.7.2", + org.apache.xpath.functions;version="2.7.2", + org.apache.xpath.jaxp;version="2.7.2", + org.apache.xpath.objects;version="2.7.2", + org.apache.xpath.operations;version="2.7.2", + org.apache.xpath.patterns;version="2.7.2", + org.apache.xpath.res;version="2.7.2" +Require-Bundle: system.bundle, org.apache.xerces +Eclipse-BuddyPolicy: registered + +Name: org/apache/xalan/ +Comment: Main Xalan engine implementing TrAX/JAXP +Specification-Title: Java API for XML Processing +Specification-Vendor: Sun Microsystems Inc. +Specification-Version: 1.3 +Implementation-Title: org.apache.xalan +Implementation-Version: 2.7.2 +Implementation-Vendor: Apache Software Foundation +Implementation-URL: http://xml.apache.org/xalan-j/dist/ + +Name: org/apache/xml/ +Comment: DTM implementation and utilities +Implementation-Title: org.apache.xml +Implementation-Version: 2.7.2 +Implementation-Vendor: Apache Software Foundation +Implementation-URL: http://xml.apache.org/xalan-j/dist/ + +Name: org/apache/xpath/ +Comment: XPath engine +Implementation-Title: org.apache.xpath +Implementation-Version: 2.7.2 +Implementation-Vendor: Apache Software Foundation +Implementation-URL: http://xml.apache.org/xalan-j/dist/ diff --git a/xalan-j2-noxsltcdeps.patch b/xalan-j2-noxsltcdeps.patch new file mode 100644 index 0000000..6840741 --- /dev/null +++ b/xalan-j2-noxsltcdeps.patch @@ -0,0 +1,11 @@ +--- build.xml.orig 2007-11-22 23:44:01.000000000 +0200 ++++ build.xml 2010-04-07 13:32:31.878542610 +0300 +@@ -683,7 +683,7 @@ $Id: build.xml 563656 2007-08-07 21:12:1 + + + +- + + diff --git a/xalan-j2-serializer-MANIFEST.MF b/xalan-j2-serializer-MANIFEST.MF new file mode 100644 index 0000000..436d24a --- /dev/null +++ b/xalan-j2-serializer-MANIFEST.MF @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.2 +Bundle-SymbolicName: org.apache.xml.serializer +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name.0 +Bundle-Localization: plugin +Bundle-Version: 2.7.1.v200806030322 +Bundle-Vendor: %Bundle-Vendor.0 +Export-Package: org.apache.xml.serializer,org.apache.xml.serializer.do + m3 diff --git a/xalan-j2.spec b/xalan-j2.spec new file mode 100644 index 0000000..9e7d489 --- /dev/null +++ b/xalan-j2.spec @@ -0,0 +1,626 @@ +# 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: 6%{?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 '/