From a04e6c8d88b24dd68eedfef61f21da1c0f7c4a2acdf9c7b9d7f932edeca941f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 02:04:32 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main xerces-j2 revision 8a62353147b8577f94ba8c6f9121e624 --- .gitattributes | 23 +++ Xerces-J-src.2.12.2.tar.gz | 3 + xerces-j2-build.patch | 282 +++++++++++++++++++++++++++++ xerces-j2-constants.1 | 12 ++ xerces-j2-constants.sh | 20 +++ xerces-j2-manifest.patch | 17 ++ xerces-j2-version.1 | 12 ++ xerces-j2-version.sh | 20 +++ xerces-j2.changes | 355 +++++++++++++++++++++++++++++++++++++ xerces-j2.spec | 170 ++++++++++++++++++ xercesImpl-2.12.2.pom | 53 ++++++ 11 files changed, 967 insertions(+) create mode 100644 .gitattributes create mode 100644 Xerces-J-src.2.12.2.tar.gz create mode 100644 xerces-j2-build.patch create mode 100644 xerces-j2-constants.1 create mode 100644 xerces-j2-constants.sh create mode 100644 xerces-j2-manifest.patch create mode 100644 xerces-j2-version.1 create mode 100644 xerces-j2-version.sh create mode 100644 xerces-j2.changes create mode 100644 xerces-j2.spec create mode 100644 xercesImpl-2.12.2.pom diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/Xerces-J-src.2.12.2.tar.gz b/Xerces-J-src.2.12.2.tar.gz new file mode 100644 index 0000000..6e6a662 --- /dev/null +++ b/Xerces-J-src.2.12.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dd1ebd4c88e935c182375346cd7365514bd8dd2ad2f30f0d0b05257bab34ee8 +size 1812583 diff --git a/xerces-j2-build.patch b/xerces-j2-build.patch new file mode 100644 index 0000000..286ccbf --- /dev/null +++ b/xerces-j2-build.patch @@ -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: + + + +- +- +- +- +- +- +- + + +@@ -71,7 +64,6 @@ Authors: + + + +- + + + +@@ -108,7 +100,6 @@ Authors: + + + +- + + + +@@ -135,7 +126,6 @@ Authors: + + + +- + + + +@@ -247,30 +237,6 @@ Authors: + + +- +- +- +- +- + + +@@ -286,7 +252,7 @@ Authors: + + + +- + + +- + +- + + +- ++ + +

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.
]]>
+
+@@ -453,46 +419,33 @@ Authors: + + + +- +- +- +- + + +- +- +- +- +- +- + + + + + + + + +@@ -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}' + /> + + + + +@@ -1004,7 +955,7 @@ Authors: +
+ + +- + +- +- +- +- +- + + + + + +- + + +- + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + diff --git a/xerces-j2-constants.1 b/xerces-j2-constants.1 new file mode 100644 index 0000000..02e5c75 --- /dev/null +++ b/xerces-j2-constants.1 @@ -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. diff --git a/xerces-j2-constants.sh b/xerces-j2-constants.sh new file mode 100644 index 0000000..fdc0142 --- /dev/null +++ b/xerces-j2-constants.sh @@ -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 "$@" diff --git a/xerces-j2-manifest.patch b/xerces-j2-manifest.patch new file mode 100644 index 0000000..b85a368 --- /dev/null +++ b/xerces-j2-manifest.patch @@ -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@ diff --git a/xerces-j2-version.1 b/xerces-j2-version.1 new file mode 100644 index 0000000..2ae1074 --- /dev/null +++ b/xerces-j2-version.1 @@ -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. diff --git a/xerces-j2-version.sh b/xerces-j2-version.sh new file mode 100644 index 0000000..b4ce4f5 --- /dev/null +++ b/xerces-j2-version.sh @@ -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 "$@" diff --git a/xerces-j2.changes b/xerces-j2.changes new file mode 100644 index 0000000..4ca7fe1 --- /dev/null +++ b/xerces-j2.changes @@ -0,0 +1,355 @@ +------------------------------------------------------------------- +Fri Mar 18 16:34:22 UTC 2022 - Fridrich Strba + +- Build with source/target levels 8 + +------------------------------------------------------------------- +Fri Feb 11 13:00:17 UTC 2022 - David Anes + +- 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 + +- 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 + +- Remove bogus dependency + +------------------------------------------------------------------- +Tue Apr 9 11:10:05 UTC 2019 - Fridrich Strba + +- BuildIgnore another provider of this package to avoid unresolved + cycle + +------------------------------------------------------------------- +Tue Feb 5 10:01:22 UTC 2019 - Fridrich Strba + +- BuildIgnore oneself to avoid unresolved cycle + +------------------------------------------------------------------- +Fri Feb 1 10:20:36 UTC 2019 - Fridrich Strba + +- Added patch: + * xerces-j2-manifest.patch + - add OSGi metadata required by Eclipse + +------------------------------------------------------------------- +Tue Dec 11 10:16:51 UTC 2018 - Jan Engelhardt + +- 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 + +- 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 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) + diff --git a/xerces-j2.spec b/xerces-j2.spec new file mode 100644 index 0000000..3ac2ee0 --- /dev/null +++ b/xerces-j2.spec @@ -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 diff --git a/xercesImpl-2.12.2.pom b/xercesImpl-2.12.2.pom new file mode 100644 index 0000000..de15514 --- /dev/null +++ b/xercesImpl-2.12.2.pom @@ -0,0 +1,53 @@ + + Xerces2-j + 4.0.0 + xerces + xercesImpl + 2.12.2 + + 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. + + https://xerces.apache.org/xerces2-j/ + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + https://svn.apache.org/repos/asf/xerces/java/ + https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_2_12_2/ + + + + xml-apis + xml-apis + 1.4.01 + + + xml-resolver + xml-resolver + 1.2 + true + + + + + xerces + Apache Software Foundation + j-dev@xerces.apache.org + http://www.apache.org + Apache Software Foundation + http://www.apache.org + + +