Sync from SUSE:SLFO:Main xerces-j2 revision 8a62353147b8577f94ba8c6f9121e624

This commit is contained in:
Adrian Schröter 2024-05-04 02:04:32 +02:00
commit a04e6c8d88
11 changed files with 967 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
Xerces-J-src.2.12.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

282
xerces-j2-build.patch Normal file
View File

@ -0,0 +1,282 @@
Index: xerces-2_12_1/build.xml
===================================================================
--- xerces-2_12_1.orig/build.xml
+++ xerces-2_12_1/build.xml
@@ -38,13 +38,6 @@ Authors:
<property name="tests.dir" value="./tests"/>
<property name="tools.dir" value="./tools"/>
- <!-- enable compilation under JDK 1.4 and above -->
- <taskdef name="xjavac" classname="org.apache.xerces.util.XJavac">
- <classpath>
- <pathelement location="${tools.dir}/bin/xjavac.jar"/>
- </classpath>
- </taskdef>
-
<!-- Allow properties following these statements to be overridden -->
<!-- Note that all of these don't have to exist. They've just been defined
incase they are used. -->
@@ -71,7 +64,6 @@ Authors:
<property name='jar.junit' value='junit.jar'/>
<property name='jar.ant' value='ant.jar'/>
<property name='jar.ant.nodeps' value='ant-nodeps.jar'/>
- <property name='jar.xjavac' value='xjavac.jar'/>
<property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/>
<property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/>
@@ -108,7 +100,6 @@ Authors:
<property name="distsrc.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/>
<property name="disttools.dir" value="${build.dir}/tools"/>
<property name="distbin.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/>
- <property name='src.apis.zip' value="${tools.dir}/xml-commons-external-src.zip"/>
<filter token="year" value="${year}"/>
<filter token="version" value="${parser.Version}"/>
@@ -135,7 +126,6 @@ Authors:
<echo message=" jars --> generates xercesImpl &amp; xercesSamples jars"/>
<echo message=" jar-schema11 --> 'jar' + XML Schema 1.1 support"/>
<echo message=" jars-schema11 --> 'jars' + XML Schema 1.1 support"/>
- <echo message=" xjavac-jar --> generates the xjavac.jar file"/>
<echo message=" docs --> generates the HTML documentation"/>
<echo message=" javadocs --> generates the API docs (needs Java 1.2 or higher)"/>
<echo message=" samples --> compiles the samples source code"/>
@@ -247,30 +237,6 @@ Authors:
<copy file="${src.dir}/org/apache/xerces/impl/xpath/regex/message.properties"
tofile="${build.src}/org/apache/xerces/impl/xpath/regex/message_en.properties"/>
- <!-- now deal with API's: -->
- <unzip src="${src.apis.zip}" dest="${build.src}">
- <patternset
- includes="org/xml/sax/**
- javax/xml/**
- javax/xml/datatype/**
- javax/xml/namespace/**
- javax/xml/parsers/**
- javax/xml/stream/**
- javax/xml/transform/**
- javax/xml/validation/**
- javax/xml/xpath/**
- org/w3c/dom/*
- org/w3c/dom/bootstrap/**
- org/w3c/dom/events/**
- org/w3c/dom/html/**
- org/w3c/dom/ls/**
- org/w3c/dom/ranges/**
- org/w3c/dom/traversal/**
- org/w3c/dom/views/**
- org/w3c/dom/xpath/**"
- />
- </unzip>
-
<!-- substitute tokens as needed -->
<replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/>
@@ -286,7 +252,7 @@ Authors:
</fileset>
</copy>
- <xjavac srcdir="${build.src}"
+ <javac srcdir="${build.src}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
@@ -354,7 +320,7 @@ Authors:
<copy todir="${build.samples}" >
<fileset dir="${samples.dir}"/>
</copy>
- <xjavac srcdir="${build.samples}"
+ <javac srcdir="${build.samples}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
@@ -374,7 +340,7 @@ Authors:
<fileset dir="${tests.dir}"
excludes="dom/rename/**" />
</copy>
- <xjavac srcdir="${build.tests}"
+ <javac srcdir="${build.tests}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
@@ -438,7 +404,7 @@ Authors:
</target>
- <target name="javadoc-replace" unless="additional.param">
+ <target name="javadoc-replace">
<replace token="@xerces.internal" dir="${build.src}">
<replacevalue><![CDATA[<DL><DT><H1 style="font-size:110%">INTERNAL:</H1><DD>Usage of this class is not supported. It may be altered or removed at any time.</DD></DT></DL>]]></replacevalue>
</replace>
@@ -453,46 +419,33 @@ Authors:
<!-- =================================================================== -->
<target name="javadocs" depends="prepare-src">
- <condition property="additional.param" value=" -taglet org.apache.xerces.util.ExperimentalTaglet -taglet org.apache.xerces.util.InternalTaglet -tagletpath ${tools.dir}/bin/xerces2taglets.jar">
- <available classname="com.sun.tools.doclets.Taglet"/>
- </condition>
-
<antcall target="javadoc-replace" />
- <condition property="additional.param" value="">
- <not>
- <available classname="com.sun.tools.doclets.Taglet"/>
- </not>
- </condition>
-
<mkdir dir='${build.dir}/docs/javadocs/api'/>
<javadoc packagenames='javax.xml.*,org.w3c.*,org.xml.*'
- locale='en_US'
+ locale='en_US' source="${javac.source}"
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/api'
author='true' version='true'
windowtitle='XML Standard API' doctitle='XML Standard API'
bottom='${copyright}'
- additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/xni'/>
<javadoc packagenames='org.apache.xerces.xni.*'
- locale='en_US'
+ locale='en_US' source="${javac.source}"
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/xni'
author='true' version='true'
windowtitle='Xerces Native Interface'
doctitle='Xerces Native Interface'
bottom='${copyright}'
- additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/xs'/>
<javadoc packagenames='org.apache.xerces.xs, org.apache.xerces.xs.datatypes'
- locale='en_US'
+ locale='en_US' source="${javac.source}"
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/xs'
author='true' version='true'
windowtitle='XML Schema API'
doctitle='XML Schema API'
bottom='${copyright}'
- additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
@@ -504,25 +457,23 @@ Authors:
org.apache.xerces.util,
org.apache.xerces.xinclude,
org.apache.xerces.xpointer'
- locale='en_US'
+ locale='en_US' source="${javac.source}"
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/xerces2'
classpath='${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}'
author='true' version='true'
windowtitle='Xerces2 Implementation'
doctitle='Xerces2 Implementation'
bottom='${copyright}'
- additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/other'/>
<javadoc packagenames='org.apache.html.*,
org.apache.wml.*,
org.apache.xml.serialize.*'
- locale='en_US'
+ locale='en_US' source="${javac.source}"
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/other'
author='true' version='true'
windowtitle='Other Classes' doctitle='Other Classes'
bottom='${copyright}'
- additionalparam='${additional.param}'
/>
</target>
@@ -1004,7 +955,7 @@ Authors:
</fileset>
</copy>
- <xjavac srcdir="${build.src}"
+ <javac srcdir="${build.src}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
@@ -1239,30 +1190,6 @@ Authors:
<replace file="${build.dir}/src/org/apache/xerces/parsers/AbstractSAXParser.java"
token="return (fConfiguration instanceof XML11Configurable);" value="return false;"/>
- <!-- now deal with API's: -->
- <unzip src="${src.apis.zip}" dest="${build.src}">
- <patternset
- includes="org/xml/sax/**
- javax/xml/**
- javax/xml/datatype/**
- javax/xml/namespace/**
- javax/xml/parsers/**
- javax/xml/stream/**
- javax/xml/transform/**
- javax/xml/validation/**
- javax/xml/xpath/**
- org/w3c/dom/*
- org/w3c/dom/bootstrap/**
- org/w3c/dom/events/**
- org/w3c/dom/html/**
- org/w3c/dom/ls/**
- org/w3c/dom/ranges/**
- org/w3c/dom/traversal/**
- org/w3c/dom/views/**
- org/w3c/dom/xpath/**"
- />
- </unzip>
-
<!-- substitute tokens as needed -->
<replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
@@ -1303,7 +1230,7 @@ Authors:
</fileset>
</copy>
- <xjavac srcdir="${build.src}"
+ <javac srcdir="${build.src}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
@@ -1454,7 +1381,7 @@ Authors:
</fileset>
</copy>
- <xjavac srcdir="${build.src}"
+ <javac srcdir="${build.src}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
@@ -1518,36 +1445,4 @@ Authors:
<copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/>
</target>
- <!-- =================================================================== -->
- <!-- Builds the xjavac jar file -->
- <!-- =================================================================== -->
- <target name="xjavac-jar" depends="prepare">
- <mkdir dir="${build.src}"/>
- <mkdir dir="${build.dest}"/>
-
- <copy file="${tools.dir}/src/XJavac.java"
- tofile="${build.src}/org/apache/xerces/util/XJavac.java"/>
-
- <javac srcdir="${build.src}"
- destdir="${build.dest}"
- source="${javac.source}"
- target="${javac.target}"
- classpath="${build.dir}/classes:${tools.dir}/${jar.ant}:${tools.dir}/${jar.ant.nodeps}"
- debug="${debug}"
- debuglevel="${debuglevel}"
- deprecation="${deprecation}"
- optimize="${optimize}"
- includeAntRuntime="false"
- includeJavaRuntime="false"/>
-
- <jar jarfile="${build.dir}/${jar.xjavac}"
- basedir="${build.dest}"
- compress="true"
- includes="org/apache/xerces/util/XJavac.class">
- <manifest>
- <attribute name="Ant-Version" value="${ant.version}"/>
- </manifest>
- <metainf dir="." includes="LICENSE,NOTICE"/>
- </jar>
- </target>
</project>

12
xerces-j2-constants.1 Normal file
View File

@ -0,0 +1,12 @@
.TH XERCES-J2-CONSTANTS 1 "08 April 2013" "xerces-2.11.0" "User commands"
.SH NAME
xerces-j2-constants \- display constants used by Xerces2 Java Parser
.SH SYNOPSIS
.BR xerces-j2-constants
.SH DESCRIPTION
Xerces-J2-Constants dumps common constants used by Xerces2 Java Parser
to standard output.

20
xerces-j2-constants.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
#
# Xerces-J2 constants script
# JPackage Project (http://www.jpackage.org/)
# $Id$
# Source functions library
. /usr/share/java-utils/java-functions
# Configuration
MAIN_CLASS=org.apache.xerces.impl.Constants
# Set parameters
set_jvm
export CLASSPATH=$(build-classpath xerces-j2)
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

17
xerces-j2-manifest.patch Normal file
View File

@ -0,0 +1,17 @@
--- src/manifest.xerces 2018-04-21 06:02:09.000000000 +0200
+++ src/manifest.xerces 2018-11-18 18:43:12.785381090 +0100
@@ -1,5 +1,14 @@
Manifest-Version: 1.0
Created-By: @java.version@ (@java.vendor@)
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-SymbolicName: org.apache.xerces
+Bundle-ManifestVersion: 2
+Bundle-Name: @impl.name@
+Bundle-Localization: plugin
+Bundle-Version: @impl.version@
+Bundle-Vendor: Apache Software Foundation
+Require-Bundle: system.bundle,javax.xml;visibility:=reexport, org.apache.xml.resolver;bundle-version="[1.2.0,2.0.0)";visibility:=reexport,org.apache.xml.serializer;bundle-version="[2.7.1,3.0.0)"
+Export-Package: META-INF.services;version="@impl.version@",org.apache.html.dom;version="@impl.version@",org.apache.wml;version="@impl.version@",org.apache.wml.dom;version="@impl.version@",org.apache.xerces.dom;version="@impl.version@",org.apache.xerces.dom.events;version="@impl.version@",org.apache.xerces.dom3.as;version="@impl.version@",org.apache.xerces.impl;version="@impl.version@",org.apache.xerces.impl.dtd;version="@impl.version@",org.apache.xerces.impl.dtd.models;version="@impl.version@",org.apache.xerces.impl.dv;version="@impl.version@",org.apache.xerces.impl.dv.dtd;version="@impl.version@",org.apache.xerces.impl.dv.util;version="@impl.version@",org.apache.xerces.impl.dv.xs;version="@impl.version@",org.apache.xerces.impl.io;version="@impl.version@",org.apache.xerces.impl.msg;version="@impl.version@",org.apache.xerces.impl.validation;version="@impl.version@",org.apache.xerces.impl.xpath;version="@impl.version@",org.apache.xerces.impl.xpath.regex;version="@impl.version@",org.apache.xerces.impl.xs;version="@impl.version@",org.apache.xerces.impl.xs.identity;version="@impl.version@",org.apache.xerces.impl.xs.models;version="@impl.version@",org.apache.xerces.impl.xs.opti;version="@impl.version@",org.apache.xerces.impl.xs.traversers;version="@impl.version@",org.apache.xerces.impl.xs.util;version="@impl.version@",org.apache.xerces.jaxp;version="@impl.version@",org.apache.xerces.jaxp.datatype;version="@impl.version@",org.apache.xerces.jaxp.validation;version="@impl.version@",org.apache.xerces.parsers;version="@impl.version@",org.apache.xerces.stax;version="@impl.version@",org.apache.xerces.stax.events;version="@impl.version@",org.apache.xerces.util;version="@impl.version@",org.apache.xerces.xinclude;version="@impl.version@",org.apache.xerces.xni;version="@impl.version@",org.apache.xerces.xni.grammars;version="@impl.version@",org.apache.xerces.xni.parser;version="@impl.version@",org.apache.xerces.xpointer;version="@impl.version@",org.apache.xerces.xs;version="@impl.version@",org.apache.xerces.xs.datatypes;version="@impl.version@",org.apache.xml.serialize;version="@impl.version@",org.w3c.dom.html;version="@impl.version@"
Name: org/apache/xerces/impl/
Comment: @impl.name@

12
xerces-j2-version.1 Normal file
View File

@ -0,0 +1,12 @@
.TH XERCES-J2-VERSION 1 "08 April 2013" "xerces-2.11.0" "User commands"
.SH NAME
xerces-j2-version \- display version of Xerces2 Java Parser
.SH SYNOPSIS
.BR xerces-j2-version
.SH DESCRIPTION
Xerces-J2-Version prints version of Xerces2 Java Parser to standard
output.

20
xerces-j2-version.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
#
# Xerces-J2 version script
# JPackage Project (http://www.jpackage.org/)
# $Id$
# Source functions library
. /usr/share/java-utils/java-functions
# Configuration
MAIN_CLASS=org.apache.xerces.impl.Version
# Set parameters
set_jvm
export CLASSPATH=$(build-classpath xerces-j2)
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

355
xerces-j2.changes Normal file
View File

@ -0,0 +1,355 @@
-------------------------------------------------------------------
Fri Mar 18 16:34:22 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with source/target levels 8
-------------------------------------------------------------------
Fri Feb 11 13:00:17 UTC 2022 - David Anes <david.anes@suse.com>
- Update to 2.12.2 [bsc#1195108, CVE-2022-23437]:
* This release is a bug fix release. It fixes few bugs which were
present in Xerces-J 2.12.1 and also includes a few other minor
enhancements.
+ Implemented a fix, that solves rarely occurring XML parsing
performance issue.
+ Improved compliance, of XPath 2.0 processor's regex
implementation (that's used within XML Schema 1.1
implementation).
+ XML Schema validation error message improvements, when XML
attributes are validated.
+ Improved the JAXP SourceValidator sample, related to XML
Schema 1.1 assertion evaluations on list types.
+ Solved an XML Schema implementation issue, where
combination of restrictions 'length' and 'minLength' was
leading to error.
+ Made minor, improvements to few XML Schema 1.1 validation
error messages.
+ Fixed a rarely occurring issue during XML Schema 1.1
xs:assert evaluation, where adjacent text values within
XML instance document, were resulting in more than one
adjacent XPath 2.0 text nodes.
+ Upgraded the minimum, Java requirement to use XercesJ to
Java version 1.7.
+ Upgraded XalanJ serializer dependency to version 2.7.2
from 2.7.1, which is required by XercesJ.
+ Re-built, "XML Commons External" and "XML Commons
Resolver" codebases (which are dependencies for XercesJ)
using Java 1.7.
-------------------------------------------------------------------
Tue Dec 28 17:26:24 UTC 2021 - David Anes <david.anes@suse.com>
- Removed patch xerces-2_11_0-jdk7.patch:
* this patch is already applied upstream
- Upgrade to upstream 2.12.1:
* This release is a bug fix release. It fixes few bugs which were
present in Xerces-J 2.12.0 and also includes a few other minor
enhancements.
+ Implemented few fixes for XML Schema identity constraints,
within Xerces's XML Schema 1.0 and 1.1 validators.
+ When XML Schema 1.1 validations are done, where xs:assert
are contained within xs:override, the XPath expressions
within xs:assert can't see XML namespace bindings specified
at certain locations in schema documents.
+ When XML Schema 1.1 validations are done, when the schema
document is specified via xsi:schemaLocation attribute in
the XML document, when full XPath 2.0 is used with CTA, for
certain use cases validation was not occurring correctly.
+ For certain cases, while doing XML Schema 1.1 xs:assert
validations, error messages appeared like following
'FOAR0001 - Division by zero'. Modified such error messages,
to now contain the character ':' instead of '-' (since, the
character '-' can be confused with a negation symbol).
+ The 'XML Schema 1.1 structures' REC in the section, "3.2.3
Constraints on XML Representations of Attribute Declarations
(Schema Representation Constraint: Attribute Declaration
Representation)" mentions, '5 If fixed and use are both
present, use must not have the actual value prohibited'.
This functionality is newly introduced in XML Schema 1.1.
Fixed a runtime validation issue for this XSD clause, when
XSD 1.1 implementation is invoked in XSD 1.0 mode.
+ Xerces-J was previously not building from sources when Java
9+ was used.
+ XML Schema 1.1 has introduced the attribute 'ref' on xs:key,
xs:unique and xs:keyref. When certain suchschema documents
were processed by Xerces-J's XSD 1.1 implementation in XSD
1.0 mode, a java.lang.NullPointerException was displayed to
the user when the schema document is processed with Xerces
sample jaxp.SourceValidator.
+ Fixed minor bugs and made various improvements.
+ Added many new tests to the regression since the previous
Xerces release, for Xerces's XML Schema 1.0 and 1.1
implementations.
-------------------------------------------------------------------
Wed Apr 17 10:41:24 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove bogus dependency
-------------------------------------------------------------------
Tue Apr 9 11:10:05 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- BuildIgnore another provider of this package to avoid unresolved
cycle
-------------------------------------------------------------------
Tue Feb 5 10:01:22 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- BuildIgnore oneself to avoid unresolved cycle
-------------------------------------------------------------------
Fri Feb 1 10:20:36 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* xerces-j2-manifest.patch
- add OSGi metadata required by Eclipse
-------------------------------------------------------------------
Tue Dec 11 10:16:51 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Remove rhetorics from description, and then compact its verbose
grammar.
- Do away with xargs when find has some better options.
-------------------------------------------------------------------
Thu Dec 6 15:37:26 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 2.12.0
* This release expands on Xerces-J's experimental support for
XML Schema 1.1 by providing a fully compliant XML Schema 1.1
implementation. It fixes several bugs which were present in
Xerces-J 2.11.0 and also includes a few other enhancements and
performance improvements.
+ add: Report all id/idref problems when validating XML against
DTD or XML Schema.
+ add: Implemented improvements to XML Schema 1.1 CTA
implementation and inheritable attributes.
+ update: Implemented improved error/warning message reporting
for various XML Schema use cases.
+ update: Implemented few performance enhancements (affecting
parsing/validation latency and memory footprint) to the
implementation.
+ fix: Fixed minor bugs in Xerces-J's regex support in XML
Schema <pattern> facet.
+ fix: Implemented various fixes to XML Schema 1.1
assert/assertion implementation.
+ fix: Fixed possible security issue: an implementation of the
NamedNodeMapImpl class in the JAXP component did not limit the
amount of memory allocated when creating object instance from
a serialized form. A specially-crafted input could cause a
java application to use an excessive amount of memory when
deserialized.
+ fix: Implemented minor and major fixes in certain areas, to
XML Schema 1.0 and 1.1 implementations.
+ fix: Fixed the issue related to, XIncludeTextReader doesn't
handle null Content Types properly.
+ fix: Fixed minor problems in the DOM (Level 3 Core)
implementation.
+ fix: Fixed few errors related to Xerces-J's build component.
+ fix: Solved a minor bug in SoftReferenceSymbolTable
implementation component.
+ fix: Fixed various bugs and made various improvements.
- Removed patches:
* arrays-doubling.patch
* scan-pseudo-attribute.patch
+ integrated upstream
- Added patches:
* xerces-j2-build.patch
+ Don't use the bundled xml-apis, but depend on an existing
package
+ Don't use custom taglets and ant tasks
- Do not bundle the xml-apis and xml-resolver and stop using
alternatives
- Install as a maven artifact
-------------------------------------------------------------------
Tue Oct 3 15:33:36 UTC 2017 - fstrba@suse.com
- Added patch:
* xerces-2_11_0-jdk7.patch
+ Dummy implementation of the getContentDocument() in common
DOM API, in order to be able to build with jdk >= 1.6
- Specify java source and target level 1.6 and don't depend on gcj
-------------------------------------------------------------------
Fri May 19 16:31:01 UTC 2017 - tchvatal@suse.com
- BuildIgnore more main java versions to stick to gcj
-------------------------------------------------------------------
Thu Feb 11 15:12:31 UTC 2016 - tchvatal@suse.com
- Add patches for bnc#814241 upstream#1616
* arrays-doubling.patch
* scan-pseudo-attribute.patch
-------------------------------------------------------------------
Mon Jul 21 09:58:48 UTC 2014 - tchvatal@suse.com
- Fixup man page permissions
-------------------------------------------------------------------
Mon Jul 21 09:20:42 UTC 2014 - tchvatal@suse.com
- Sort out update-alternatives
-------------------------------------------------------------------
Fri Jun 6 15:48:05 UTC 2014 - tchvatal@suse.com
- Version bump to 2.11.0:
* This release expands on Xerces' experimental support for XML
Schema 1.1 by providing implementations for the simplified
complex type restriction rules (also known as subsumption),
xs:override and a few other XML Schema 1.1 features. This
release also introduces experimental support for XML Schema
Component Designators (SCD). It fixes several bugs which were
present in Xerces-J 2.10.0 and also includes a few other minor
enhancements.
* As of this release, Xerces and Xalan now share a common
serialization codebase. The DOM Level 3 serialization support
which was in Xerces was migrated into the Xalan serializer and
Xerces' native serializer was deprecated. In this release we
also upgraded the xml-commons resolver to v1.2 (which provides
support for OASIS XML Catalogs v1.1), introduced a few minor
features and fixed several bugs.
- Obsoleted patches no longer needed:
* xerces-j2-parsing.patch
* xerces-j2-2.8.1_new_unsupported_dom_methods.patch
* xerces-build.patch
* xerces-j2-gcj-switch-constants-bug.patch
* java150_build.patch
-------------------------------------------------------------------
Mon Sep 9 11:06:27 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Fri Aug 23 12:11:30 UTC 2013 - mvyskocil@suse.com
- drop javadoc packages
- drop antlr-bootstrap from BR as javadoc is not built
-------------------------------------------------------------------
Fri Jan 11 14:52:38 UTC 2013 - mvyskocil@suse.com
- removed the -boostrap package
-------------------------------------------------------------------
Fri Sep 16 11:31:42 UTC 2011 - andrea.turrini@gmail.com
- fixed typos in xerces-j2.spec
-------------------------------------------------------------------
Mon Mar 14 13:05:09 UTC 2011 - mvyskocil@suse.cz
- build ignore openjdk
-------------------------------------------------------------------
Tue Sep 21 09:15:04 UTC 2010 - mvyskocil@suse.cz
- use antlr-bootstrap for javadoc build
-------------------------------------------------------------------
Mon Sep 13 13:40:54 UTC 2010 - mvyskocil@suse.cz
- remove unecessary xerces-j2-build.patch
-------------------------------------------------------------------
Thu Sep 2 12:36:13 UTC 2010 - mvyskocil@suse.cz
- ignore antlr(-java) to reduce build cycles
-------------------------------------------------------------------
Mon Aug 17 11:44:46 UTC 2009 - mvyskocil@suse.cz
- fixed bnc#530717: VUL-0: xerces-j2: XML parsing vulnerability
- Removed non used patch xerces-build.patch
- Fixed some rpmlint warnings and errors
- Removed javadoc postinstall scripts
- Removed %%release from subpackages requires
-------------------------------------------------------------------
Wed Nov 12 12:22:20 CET 2008 - mvyskocil@suse.cz
- use gcj for build as this version is not compatible with INM Java6
- added a jpackage-utils to BuildRequires
-------------------------------------------------------------------
Fri Feb 29 19:14:10 CET 2008 - coolo@suse.de
- adding prereq for xml-apis and xml-resolver
-------------------------------------------------------------------
Wed Jan 23 12:24:53 CET 2008 - prusnak@suse.cz
- removed comma between symbols in PreReq
-------------------------------------------------------------------
Wed May 2 11:54:38 CEST 2007 - dbornkessel@suse.de
- added unzip to BuildRequires
-------------------------------------------------------------------
Tue Jan 23 17:05:07 CET 2007 - dbornkessel@suse.de
- added dummy methods for not yet supported new dom methods
-------------------------------------------------------------------
Tue Jan 16 18:29:04 CET 2007 - dbornkessel@suse.de
- created sub-packages xml-apis and xml-resolver to avoid Bug #232127
-------------------------------------------------------------------
Wed Nov 15 14:18:46 CET 2006 - dbornkessel@suse.de
- Changed
PreReq: /usr/sbin/update-alternatives
to
PreReq: update-alternatives
-------------------------------------------------------------------
Fri Sep 22 16:39:41 CEST 2006 - dbornkessel@suse.de
- update to 2.8.1
- added source="1.4" target="1.4" to [x]javac & javadoc ant tasks
-------------------------------------------------------------------
Mon Jan 30 14:12:11 CET 2006 - dbornkessel@suse.de
- changed update alternatives prios
- corrected update-alternatives name for 'xml-commons-resolver'
-------------------------------------------------------------------
Fri Jan 27 01:36:20 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Jan 24 16:42:28 CET 2006 - dbornkessel@suse.de
- added missing jar file (xml-apis & resolver)
- added xml-apis and resolver to alternative system, so they can be
interchanged with xml-commons-apis and commons-resolver
-------------------------------------------------------------------
Wed Jan 18 02:21:51 CET 2006 - dbornkessel@suse.de
- Update to version 2.7.1
-------------------------------------------------------------------
Thu Sep 29 00:35:27 CEST 2005 - dmueller@suse.de
- add norootforbuild
-------------------------------------------------------------------
Thu Sep 16 20:01:23 CEST 2004 - skh@suse.de
- Fix prerequires
-------------------------------------------------------------------
Thu Sep 2 15:58:07 CEST 2004 - skh@suse.de
- Initial package created with version 2.6.2 (JPackage 1.5)

170
xerces-j2.spec Normal file
View File

@ -0,0 +1,170 @@
#
# spec file for package xerces-j2
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global cvs_version 2_12_2
%define __requires_exclude system.bundle
Name: xerces-j2
Version: 2.12.2
Release: 0
Summary: Java XML parser
License: Apache-2.0 AND W3C
Group: Development/Libraries/Java
URL: https://xerces.apache.org/xerces2-j/
Source0: https://dlcdn.apache.org//xerces/j/source/Xerces-J-src.%{version}.tar.gz
Source1: %{name}-version.sh
Source2: %{name}-constants.sh
Source3: %{name}-version.1
Source4: %{name}-constants.1
Source5: https://repo.maven.apache.org/maven2/xerces/xercesImpl/%{version}/xercesImpl-%{version}.pom
# Patch the build so that it doesn't try to use bundled xml-commons source
# Also remove the use of the special taglets and xjavac task
Patch0: %{name}-build.patch
Patch1: %{name}-manifest.patch
BuildRequires: ant
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildRequires: xalan-j2 >= 2.7.1
BuildRequires: xml-commons-apis >= 1.4.01
BuildRequires: xml-commons-resolver >= 1.2
#!BuildIgnore: xerces-j2 osgi(org.apache.xerces) jaxp_parser_impl
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires: javapackages-tools
Requires: xalan-j2 >= 2.7.1
Requires: xml-commons-apis >= 1.4.01
Requires: xml-commons-resolver >= 1.2
Provides: %{name}-scripts = %{version}-%{release}
Provides: jaxp_parser_impl = 1.4
Obsoletes: %{name}-scripts < %{version}-%{release}
BuildArch: noarch
%description
Xerces2 is an XML parser in the Apache Xerces family. This version is the
reference implementation of the Xerces Native Interface (XNI), a modular
framework for building parser components and configurations.
Xerces2 implements the Document Object Model Level 3 Core and Load/Save W3C
Recommendations, the XML Inclusions (XInclude) W3C Recommendation, and supports
OASIS XML Catalogs v1.1. It can parse documents conforming to the XML 1.1
Recommendation, except that it does not yet provide an option to enable
normalization checking as described in section 2.13 of this specification. It
handles name spaces according to the XML Namespaces 1.1 Recommendation, and
serializes XML 1.1 documents if the DOM level 3 load/save APIs are in use.
%package javadoc
Summary: Javadocs for %{name}
Group: Documentation/HTML
%description javadoc
This package contains the API documentation for %{name}.
%package demo
Summary: Demonstrations and samples for %{name}
Group: Development/Libraries/Java
Requires: %{name} = %{version}-%{release}
%description demo
%{summary}.
%prep
%setup -q -n xerces-%{cvs_version}
find "(" -name "*.class" -o -name "*.jar" ")" -delete
find -type f -exec dos2unix {} \;
%patch0 -p1
%patch1
%build
mkdir -p tools
pushd tools
ln -sf $(build-classpath xalan-j2-serializer) serializer.jar
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
ln -sf $(build-classpath xml-commons-resolver) resolver.jar
popd
# Build everything
export ANT_OPTS="-Xmx256m -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true"
ant -Djavac.source=1.8 -Djavac.target=1.8 \
-Dbuild.compiler=modern \
clean jars javadocs
%install
# jar
install -dm 755 %{buildroot}%{_javadir}
install -pm 644 build/xercesImpl.jar %{buildroot}%{_javadir}/%{name}.jar
(cd %{buildroot}%{_javadir} && ln -s %{name}.jar jaxp_parser_impl.jar)
# pom
install -dm 755 %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE5} %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar -a xerces:xerces,xerces:xmlParserAPIs,apache:xerces-j2
# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
mkdir -p %{buildroot}%{_javadocdir}/%{name}/impl
mkdir -p %{buildroot}%{_javadocdir}/%{name}/xs
mkdir -p %{buildroot}%{_javadocdir}/%{name}/xni
mkdir -p %{buildroot}%{_javadocdir}/%{name}/other
cp -pr build/docs/javadocs/xerces2/* %{buildroot}%{_javadocdir}/%{name}/impl
cp -pr build/docs/javadocs/api/* %{buildroot}%{_javadocdir}/%{name}/xs
cp -pr build/docs/javadocs/xni/* %{buildroot}%{_javadocdir}/%{name}/xni
cp -pr build/docs/javadocs/other/* %{buildroot}%{_javadocdir}/%{name}/other
%fdupes -s %{buildroot}%{_javadocdir}
# scripts
install -pD -m755 -T %{SOURCE1} %{buildroot}%{_bindir}/%{name}-version
install -pD -m755 -T %{SOURCE2} %{buildroot}%{_bindir}/%{name}-constants
# manual pages
install -d -m 755 %{buildroot}%{_mandir}/man1
install -p -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1
install -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1
# demo
install -pD -T build/xercesSamples.jar %{buildroot}%{_datadir}/%{name}/%{name}-samples.jar
cp -pr data %{buildroot}%{_datadir}/%{name}
%post
update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar >/dev/null 2>&1 || :
# it deletes the link, set it up again
ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar
%files
%license LICENSE
%doc NOTICE README
%{_bindir}/*
%{_javadir}/*
%{_mandir}/*/*
%{_mavenpomdir}/*
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml*
%endif
%files javadoc
%{_javadocdir}/%{name}
%files demo
%{_datadir}/%{name}
%changelog

53
xercesImpl-2.12.2.pom Normal file
View File

@ -0,0 +1,53 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Xerces2-j</name>
<modelVersion>4.0.0</modelVersion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.2</version>
<description>
Xerces2 provides high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces continues to build upon the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program.
The Apache Xerces2 parser is the reference implementation of XNI but other parser components, configurations, and parsers can be written using the Xerces Native Interface. For complete design and implementation documents, refer to the XNI Manual.
Xerces2 provides fully conforming XML Schema 1.0 and 1.1 processors. An experimental implementation of the "XML Schema Definition Language (XSD): Component Designators (SCD) Candidate Recommendation (January 2010)" is also provided for evaluation. For more information, refer to the XML Schema page.
Xerces2 also provides a complete implementation of the Document Object Model Level 3 Core and Load/Save W3C Recommendations and provides a complete implementation of the XML Inclusions (XInclude) W3C Recommendation. It also provides support for OASIS XML Catalogs v1.1.
Xerces2 is able to parse documents written according to the XML 1.1 Recommendation, except that it does not yet provide an option to enable normalization checking as described in section 2.13 of this specification. It also handles namespaces according to the XML Namespaces 1.1 Recommendation, and will correctly serialize XML 1.1 documents if the DOM level 3 load/save APIs are in use.
</description>
<url>https://xerces.apache.org/xerces2-j/</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://svn.apache.org/repos/asf/xerces/java/</url>
<connection>https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_2/</connection>
</scm>
<dependencies>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
</dependency>
<dependency>
<groupId>xml-resolver</groupId>
<artifactId>xml-resolver</artifactId>
<version>1.2</version>
<optional>true</optional>
</dependency>
</dependencies>
<developers>
<developer>
<id>xerces</id>
<name>Apache Software Foundation</name>
<email>j-dev@xerces.apache.org</email>
<url>http://www.apache.org</url>
<organization>Apache Software Foundation</organization>
<organizationUrl>http://www.apache.org</organizationUrl>
</developer>
</developers>
</project>