Accepting request 943172 from Java:packages

OBS-URL: https://build.opensuse.org/request/show/943172
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xerces-j2?expand=0&rev=44
This commit is contained in:
Dominique Leuenberger 2021-12-31 12:44:19 +00:00 committed by Git OBS Bridge
commit b7f5b4a348
7 changed files with 79 additions and 98 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c27b81e139ecfc219202bcad79e77529b082e9ed9797bc1a4c13e1bd8f8e31c9
size 1810232

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dadc818032dc2acf0dfea39a093827efaece371067b998025476f067069e2411
size 1812031

View File

@ -1,65 +0,0 @@
--- xerces-2_11_0/src/org/apache/html/dom/HTMLFrameElementImpl.java 2010-11-26 21:42:02.000000000 +0100
+++ xerces-2_11_0/src/org/apache/html/dom/HTMLFrameElementImpl.java 2017-10-03 17:28:29.096819783 +0200
@@ -17,6 +17,7 @@
package org.apache.html.dom;
import org.w3c.dom.html.HTMLFrameElement;
+import org.w3c.dom.Document;
/**
* @xerces.internal
@@ -127,6 +128,11 @@
setAttribute( "src", src );
}
+ public Document getContentDocument()
+ {
+ return null;
+ }
+
/**
* Constructor requires owner document.
--- xerces-2_11_0/src/org/apache/html/dom/HTMLIFrameElementImpl.java 2010-11-26 21:42:08.000000000 +0100
+++ xerces-2_11_0/src/org/apache/html/dom/HTMLIFrameElementImpl.java 2017-10-03 17:28:12.576819720 +0200
@@ -17,6 +17,7 @@
package org.apache.html.dom;
import org.w3c.dom.html.HTMLIFrameElement;
+import org.w3c.dom.Document;
/**
* @xerces.internal
@@ -150,6 +151,11 @@
setAttribute( "width", width );
}
+ public Document getContentDocument()
+ {
+ return null;
+ }
+
/**
* Constructor requires owner document.
--- xerces-2_11_0/src/org/apache/html/dom/HTMLObjectElementImpl.java 2010-11-26 21:42:05.000000000 +0100
+++ xerces-2_11_0/src/org/apache/html/dom/HTMLObjectElementImpl.java 2017-10-03 17:27:57.048819662 +0200
@@ -17,6 +17,7 @@
package org.apache.html.dom;
import org.w3c.dom.html.HTMLObjectElement;
+import org.w3c.dom.Document;
/**
* @xerces.internal
@@ -239,6 +240,10 @@
setAttribute( "width", width );
}
+ public Document getContentDocument()
+ {
+ return null;
+ }
/**

View File

@ -1,6 +1,8 @@
--- xerces-2_12_0/build.xml 2018-11-18 20:10:36.933534130 +0100 Index: xerces-2_12_1/build.xml
+++ xerces-2_12_0/build.xml 2018-11-18 20:12:28.714126419 +0100 ===================================================================
@@ -38,13 +38,6 @@ --- 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="tests.dir" value="./tests"/>
<property name="tools.dir" value="./tools"/> <property name="tools.dir" value="./tools"/>
@ -14,7 +16,7 @@
<!-- Allow properties following these statements to be overridden --> <!-- Allow properties following these statements to be overridden -->
<!-- Note that all of these don't have to exist. They've just been defined <!-- Note that all of these don't have to exist. They've just been defined
incase they are used. --> incase they are used. -->
@@ -71,7 +64,6 @@ @@ -71,7 +64,6 @@ Authors:
<property name='jar.junit' value='junit.jar'/> <property name='jar.junit' value='junit.jar'/>
<property name='jar.ant' value='ant.jar'/> <property name='jar.ant' value='ant.jar'/>
<property name='jar.ant.nodeps' value='ant-nodeps.jar'/> <property name='jar.ant.nodeps' value='ant-nodeps.jar'/>
@ -22,7 +24,7 @@
<property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/> <property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/>
<property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/> <property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/>
@@ -108,7 +100,6 @@ @@ -108,7 +100,6 @@ Authors:
<property name="distsrc.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/> <property name="distsrc.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/>
<property name="disttools.dir" value="${build.dir}/tools"/> <property name="disttools.dir" value="${build.dir}/tools"/>
<property name="distbin.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/> <property name="distbin.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/>
@ -30,7 +32,7 @@
<filter token="year" value="${year}"/> <filter token="year" value="${year}"/>
<filter token="version" value="${parser.Version}"/> <filter token="version" value="${parser.Version}"/>
@@ -135,7 +126,6 @@ @@ -135,7 +126,6 @@ Authors:
<echo message=" jars --> generates xercesImpl &amp; xercesSamples jars"/> <echo message=" jars --> generates xercesImpl &amp; xercesSamples jars"/>
<echo message=" jar-schema11 --> 'jar' + XML Schema 1.1 support"/> <echo message=" jar-schema11 --> 'jar' + XML Schema 1.1 support"/>
<echo message=" jars-schema11 --> 'jars' + XML Schema 1.1 support"/> <echo message=" jars-schema11 --> 'jars' + XML Schema 1.1 support"/>
@ -38,7 +40,7 @@
<echo message=" docs --> generates the HTML documentation"/> <echo message=" docs --> generates the HTML documentation"/>
<echo message=" javadocs --> generates the API docs (needs Java 1.2 or higher)"/> <echo message=" javadocs --> generates the API docs (needs Java 1.2 or higher)"/>
<echo message=" samples --> compiles the samples source code"/> <echo message=" samples --> compiles the samples source code"/>
@@ -247,30 +237,6 @@ @@ -247,30 +237,6 @@ Authors:
<copy file="${src.dir}/org/apache/xerces/impl/xpath/regex/message.properties" <copy file="${src.dir}/org/apache/xerces/impl/xpath/regex/message.properties"
tofile="${build.src}/org/apache/xerces/impl/xpath/regex/message_en.properties"/> tofile="${build.src}/org/apache/xerces/impl/xpath/regex/message_en.properties"/>
@ -69,7 +71,7 @@
<!-- substitute tokens as needed --> <!-- substitute tokens as needed -->
<replace file="${build.dir}/src/org/apache/xerces/impl/Version.java" <replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/> token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/>
@@ -286,7 +252,7 @@ @@ -286,7 +252,7 @@ Authors:
</fileset> </fileset>
</copy> </copy>
@ -78,7 +80,7 @@
destdir="${build.dest}" destdir="${build.dest}"
source="${javac.source}" source="${javac.source}"
target="${javac.target}" target="${javac.target}"
@@ -354,7 +320,7 @@ @@ -354,7 +320,7 @@ Authors:
<copy todir="${build.samples}" > <copy todir="${build.samples}" >
<fileset dir="${samples.dir}"/> <fileset dir="${samples.dir}"/>
</copy> </copy>
@ -87,7 +89,7 @@
destdir="${build.dest}" destdir="${build.dest}"
source="${javac.source}" source="${javac.source}"
target="${javac.target}" target="${javac.target}"
@@ -374,7 +340,7 @@ @@ -374,7 +340,7 @@ Authors:
<fileset dir="${tests.dir}" <fileset dir="${tests.dir}"
excludes="dom/rename/**" /> excludes="dom/rename/**" />
</copy> </copy>
@ -96,7 +98,7 @@
destdir="${build.dest}" destdir="${build.dest}"
source="${javac.source}" source="${javac.source}"
target="${javac.target}" target="${javac.target}"
@@ -438,7 +404,7 @@ @@ -438,7 +404,7 @@ Authors:
</target> </target>
@ -105,7 +107,7 @@
<replace token="@xerces.internal" dir="${build.src}"> <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> <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> </replace>
@@ -453,46 +419,33 @@ @@ -453,46 +419,33 @@ Authors:
<!-- =================================================================== --> <!-- =================================================================== -->
<target name="javadocs" depends="prepare-src"> <target name="javadocs" depends="prepare-src">
@ -155,7 +157,7 @@
/> />
<mkdir dir='${build.dir}/docs/javadocs/xerces2'/> <mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
@@ -504,25 +457,23 @@ @@ -504,25 +457,23 @@ Authors:
org.apache.xerces.util, org.apache.xerces.util,
org.apache.xerces.xinclude, org.apache.xerces.xinclude,
org.apache.xerces.xpointer' org.apache.xerces.xpointer'
@ -183,7 +185,7 @@
/> />
</target> </target>
@@ -998,7 +949,7 @@ @@ -1004,7 +955,7 @@ Authors:
</fileset> </fileset>
</copy> </copy>
@ -192,7 +194,7 @@
destdir="${build.dest}" destdir="${build.dest}"
source="${javac.source}" source="${javac.source}"
target="${javac.target}" target="${javac.target}"
@@ -1233,30 +1184,6 @@ @@ -1239,30 +1190,6 @@ Authors:
<replace file="${build.dir}/src/org/apache/xerces/parsers/AbstractSAXParser.java" <replace file="${build.dir}/src/org/apache/xerces/parsers/AbstractSAXParser.java"
token="return (fConfiguration instanceof XML11Configurable);" value="return false;"/> token="return (fConfiguration instanceof XML11Configurable);" value="return false;"/>
@ -223,7 +225,7 @@
<!-- substitute tokens as needed --> <!-- substitute tokens as needed -->
<replace file="${build.dir}/src/org/apache/xerces/impl/Version.java" <replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
@@ -1297,7 +1224,7 @@ @@ -1303,7 +1230,7 @@ Authors:
</fileset> </fileset>
</copy> </copy>
@ -232,7 +234,7 @@
destdir="${build.dest}" destdir="${build.dest}"
source="${javac.source}" source="${javac.source}"
target="${javac.target}" target="${javac.target}"
@@ -1448,7 +1375,7 @@ @@ -1454,7 +1381,7 @@ Authors:
</fileset> </fileset>
</copy> </copy>
@ -241,7 +243,7 @@
destdir="${build.dest}" destdir="${build.dest}"
source="${javac.source}" source="${javac.source}"
target="${javac.target}" target="${javac.target}"
@@ -1512,36 +1439,4 @@ @@ -1518,36 +1445,4 @@ Authors:
<copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/> <copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/>
</target> </target>

View File

@ -1,3 +1,48 @@
-------------------------------------------------------------------
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> Wed Apr 17 10:41:24 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package xerces-j2 # spec file for package xerces-j2
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,26 +16,25 @@
# #
%global cvs_version 2_12_0 %global cvs_version 2_12_1
%define __requires_exclude system.bundle %define __requires_exclude system.bundle
Name: xerces-j2 Name: xerces-j2
Version: 2.12.0 Version: 2.12.1
Release: 0 Release: 0
Summary: Java XML parser Summary: Java XML parser
License: Apache-2.0 AND W3C License: Apache-2.0 AND W3C
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://xerces.apache.org/xerces2-j/ URL: https://xerces.apache.org/xerces2-j/
Source0: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-src.%{version}.tar.gz Source0: https://dlcdn.apache.org//xerces/j/source/Xerces-J-src.%{version}.tar.gz
Source1: %{name}-version.sh Source1: %{name}-version.sh
Source2: %{name}-constants.sh Source2: %{name}-constants.sh
Source3: %{name}-version.1 Source3: %{name}-version.1
Source4: %{name}-constants.1 Source4: %{name}-constants.1
Source5: http://repo.maven.apache.org/maven2/xerces/xercesImpl/%{version}/xercesImpl-%{version}.pom 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 # 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 # Also remove the use of the special taglets and xjavac task
Patch0: %{name}-build.patch Patch0: %{name}-build.patch
Patch1: xerces-2_11_0-jdk7.patch Patch1: %{name}-manifest.patch
Patch2: %{name}-manifest.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
@ -88,9 +87,9 @@ Requires: %{name} = %{version}-%{release}
%setup -q -n xerces-%{cvs_version} %setup -q -n xerces-%{cvs_version}
find "(" -name "*.class" -o -name "*.jar" ")" -delete find "(" -name "*.class" -o -name "*.jar" ")" -delete
find -type f -exec dos2unix {} \; find -type f -exec dos2unix {} \;
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1
%patch2
%build %build
mkdir -p tools mkdir -p tools

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>xerces</groupId> <groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId> <artifactId>xercesImpl</artifactId>
<version>2.12.0</version> <version>2.12.1</version>
<description> <description>
Xerces2 is the next generation of high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. Xerces2 is the next generation of high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program.
@ -25,7 +25,7 @@
</licenses> </licenses>
<scm> <scm>
<url>https://svn.apache.org/repos/asf/xerces/java/</url> <url>https://svn.apache.org/repos/asf/xerces/java/</url>
<connection>https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_0/</connection> <connection>https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_1/</connection>
</scm> </scm>
<dependencies> <dependencies>
<dependency> <dependency>