commit
41777723c7
@ -0,0 +1 @@
|
|||||||
|
SOURCES/jaxb-fi-2.1.1.tar.gz
|
@ -0,0 +1 @@
|
|||||||
|
5a1b56fcdb996749ec65eb021e7f6a2822dff6c0 SOURCES/jaxb-fi-2.1.1.tar.gz
|
@ -0,0 +1,71 @@
|
|||||||
|
From 7e16acad31d6a546375a110207e03c1d1703cbb6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marian Koncek <mkoncek@redhat.com>
|
||||||
|
Date: Mon, 16 Jan 2023 15:38:39 +0100
|
||||||
|
Subject: [PATCH] Port to jaxb-xsom 4.0.1
|
||||||
|
|
||||||
|
---
|
||||||
|
.../com/sun/xml/analysis/frequency/SchemaProcessor.java | 7 ++++++-
|
||||||
|
.../java/com/sun/xml/analysis/types/SchemaProcessor.java | 7 ++++++-
|
||||||
|
2 files changed, 12 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/utilities/src/main/java/com/sun/xml/analysis/frequency/SchemaProcessor.java b/utilities/src/main/java/com/sun/xml/analysis/frequency/SchemaProcessor.java
|
||||||
|
index 32532fa..497255a 100644
|
||||||
|
--- a/utilities/src/main/java/com/sun/xml/analysis/frequency/SchemaProcessor.java
|
||||||
|
+++ b/utilities/src/main/java/com/sun/xml/analysis/frequency/SchemaProcessor.java
|
||||||
|
@@ -42,6 +42,7 @@ import com.sun.xml.xsom.XSUnionSimpleType;
|
||||||
|
import com.sun.xml.xsom.XSWildcard;
|
||||||
|
import com.sun.xml.xsom.XSXPath;
|
||||||
|
import com.sun.xml.xsom.parser.XSOMParser;
|
||||||
|
+import com.sun.xml.xsom.parser.JAXPParser;
|
||||||
|
import com.sun.xml.xsom.visitor.XSSimpleTypeVisitor;
|
||||||
|
import com.sun.xml.xsom.visitor.XSVisitor;
|
||||||
|
import java.io.File;
|
||||||
|
@@ -56,6 +57,7 @@ import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import javax.xml.XMLConstants;
|
||||||
|
import javax.xml.namespace.QName;
|
||||||
|
+import javax.xml.parsers.SAXParserFactory;
|
||||||
|
import org.xml.sax.ErrorHandler;
|
||||||
|
import org.xml.sax.InputSource;
|
||||||
|
import org.xml.sax.SAXException;
|
||||||
|
@@ -415,7 +417,10 @@ public class SchemaProcessor {
|
||||||
|
* information items.
|
||||||
|
*/
|
||||||
|
public void process() throws Exception {
|
||||||
|
- XSOMParser parser = new XSOMParser();
|
||||||
|
+ SAXParserFactory factory = SAXParserFactory.newInstance();
|
||||||
|
+ factory.setNamespaceAware(true);
|
||||||
|
+ factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
|
||||||
|
+ XSOMParser parser = new XSOMParser(factory);
|
||||||
|
parser.setErrorHandler(new ErrorHandlerImpl());
|
||||||
|
|
||||||
|
for (URL u : _schema) {
|
||||||
|
diff --git a/utilities/src/main/java/com/sun/xml/analysis/types/SchemaProcessor.java b/utilities/src/main/java/com/sun/xml/analysis/types/SchemaProcessor.java
|
||||||
|
index 81e1c17..596b130 100644
|
||||||
|
--- a/utilities/src/main/java/com/sun/xml/analysis/types/SchemaProcessor.java
|
||||||
|
+++ b/utilities/src/main/java/com/sun/xml/analysis/types/SchemaProcessor.java
|
||||||
|
@@ -56,7 +56,9 @@ import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
+import javax.xml.XMLConstants;
|
||||||
|
import javax.xml.namespace.QName;
|
||||||
|
+import javax.xml.parsers.SAXParserFactory;
|
||||||
|
import org.xml.sax.ErrorHandler;
|
||||||
|
import org.xml.sax.InputSource;
|
||||||
|
import org.xml.sax.SAXException;
|
||||||
|
@@ -334,7 +336,10 @@ public class SchemaProcessor {
|
||||||
|
public void process(Set<XSDataType> filter) throws Exception {
|
||||||
|
_filter = filter;
|
||||||
|
|
||||||
|
- XSOMParser parser = new XSOMParser();
|
||||||
|
+ SAXParserFactory factory = SAXParserFactory.newInstance();
|
||||||
|
+ factory.setNamespaceAware(true);
|
||||||
|
+ factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
|
||||||
|
+ XSOMParser parser = new XSOMParser(factory);
|
||||||
|
parser.setErrorHandler(new ErrorHandlerImpl());
|
||||||
|
|
||||||
|
for (URL u : _schema) {
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
@ -0,0 +1,133 @@
|
|||||||
|
Name: jaxb-fi
|
||||||
|
Version: 2.1.1
|
||||||
|
Release: 5%{?dist}
|
||||||
|
Summary: Implementation of the Fast Infoset Standard for Binary XML
|
||||||
|
# jaxb-fi is licensed Apache-2.0 and EDL-1.0 (BSD-3-Clause)
|
||||||
|
# bundled org.apache.xerces.util.XMLChar.java is licensed ASL 1.1
|
||||||
|
License: Apache-2.0 AND BSD-3-Clause AND Apache-1.1
|
||||||
|
URL: https://github.com/eclipse-ee4j/jaxb-fi
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{java_arches} noarch
|
||||||
|
|
||||||
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch1: 0001-Port-to-jaxb-xsom-4.0.1.patch
|
||||||
|
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(junit:junit)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
||||||
|
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
||||||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Fast Infoset Project, an Open Source implementation of the Fast Infoset
|
||||||
|
Standard for Binary XML.
|
||||||
|
|
||||||
|
The Fast Infoset specification (ITU-T Rec. X.891 | ISO/IEC 24824-1)
|
||||||
|
describes an open, standards-based "binary XML" format that is based on
|
||||||
|
the XML Information Set.
|
||||||
|
|
||||||
|
%package tests
|
||||||
|
License: Apache-2.0 AND BSD-3-Clause
|
||||||
|
Summary: FastInfoset Roundtrip Tests
|
||||||
|
%description tests
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%{?javadoc_package}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%pom_remove_parent
|
||||||
|
|
||||||
|
%pom_disable_module samples
|
||||||
|
%pom_disable_module utilities
|
||||||
|
|
||||||
|
%pom_remove_plugin :buildnumber-maven-plugin
|
||||||
|
%pom_remove_plugin :glassfish-copyright-maven-plugin
|
||||||
|
%pom_remove_plugin :maven-enforcer-plugin
|
||||||
|
|
||||||
|
%mvn_package :FastInfosetRoundTripTests tests
|
||||||
|
|
||||||
|
%build
|
||||||
|
%mvn_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE NOTICE.md
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
%files tests -f .mfiles-tests
|
||||||
|
%license LICENSE NOTICE.md
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.1.1-5
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 2.1.1-5
|
||||||
|
- Bump release for Aug 2024 java mass rebuild
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.1.1-4
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 11 2023 Marian Koncek <mkoncek@redhat.com> - 2.1.1-1
|
||||||
|
- Update to upstream version 2.1.1
|
||||||
|
|
||||||
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.0-7
|
||||||
|
- Convert License tag to SPDX format
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 13 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.0-5
|
||||||
|
- Rebuilt to enable smoke test
|
||||||
|
|
||||||
|
* Fri Mar 17 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.0-4
|
||||||
|
- Re-enable javadoc package
|
||||||
|
|
||||||
|
* Wed Feb 08 2023 Marian Koncek <mkoncek@redhat.com> - 2.1.0-3
|
||||||
|
- Change licence, reorganize subpackages
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 21 2022 Marian Koncek <mkoncek@redhat.com> - 2.1.0-1
|
||||||
|
- Update to upstream version 2.1.0
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.18-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 08 2022 Jiri Vanek <jvanek@redhat.com> - 1.2.18-8
|
||||||
|
- Rebuilt for Drop i686 JDKs
|
||||||
|
|
||||||
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.2.18-7
|
||||||
|
- Rebuilt for java-17-openjdk as system jdk
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.18-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Oct 29 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 1.2.18-5
|
||||||
|
- Enable roundtrip-tests and samples module
|
||||||
|
- Enable singleton package
|
||||||
|
- Enable javadoc package
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.18-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Dogtag PKI Team <pki-devel@redhat.com> - 1.2.18-3
|
||||||
|
- Disable tests
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.18-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Aug 11 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2.18-1
|
||||||
|
- Initial package renamed from glassfish-fastinfoset.
|
Loading…
Reference in new issue