!1 package init

Merge pull request !1 from jeff200902/master
This commit is contained in:
openeuler-ci-bot 2020-09-01 19:21:26 +08:00 committed by Gitee
commit 1f44f7cddd
4 changed files with 93 additions and 0 deletions

32
0001-stax2-api.patch Normal file
View File

@ -0,0 +1,32 @@
From 9a53f26d601b3971479a626d0752056be55cf702 Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com>
Date: Mon, 23 Mar 2015 09:12:37 +0100
Subject: [PATCH] stax2-api
---
src/main/java/com/ctc/wstx/sr/InputElementStack.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/ctc/wstx/sr/InputElementStack.java b/src/main/java/com/ctc/wstx/sr/InputElementStack.java
index 4aa355c..d657f40 100644
--- a/src/main/java/com/ctc/wstx/sr/InputElementStack.java
+++ b/src/main/java/com/ctc/wstx/sr/InputElementStack.java
@@ -857,9 +857,13 @@ public final class InputElementStack
*/
@Override
public int addDefaultAttribute(String localName, String uri, String prefix,
- String value) throws XMLStreamException
+ String value)
{
- return mAttrCollector.addDefaultAttribute(localName, uri, prefix, value);
+ try {
+ return mAttrCollector.addDefaultAttribute(localName, uri, prefix, value);
+ } catch (XMLStreamException e) {
+ throw new RuntimeException(e);
+ }
}
/*
--
2.7.4

BIN
woodstox-core-5.0.3.tar.gz Normal file

Binary file not shown.

56
woodstox-core.spec Normal file
View File

@ -0,0 +1,56 @@
%global base_name woodstox
%global core_name %{base_name}-core
Name: %{core_name}
Version: 5.0.3
Release: 1
Summary: High-performance XML processor
License: ASL 2.0 or LGPLv2+ or BSD
URL: https://github.com/FasterXML/woodstox
BuildArch: noarch
Source0: https://github.com/FasterXML/%{base_name}/archive/%{name}-%{version}.tar.gz
Patch0: 0001-stax2-api.patch
BuildRequires: maven-local mvn(com.fasterxml:oss-parent:pom:) mvn(javax.xml.stream:stax-api)
BuildRequires: mvn(junit:junit) mvn(net.java.dev.msv:msv-core)
BuildRequires: mvn(net.java.dev.msv:msv-rngconverter) mvn(net.java.dev.msv:xsdlib)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.felix:org.osgi.core)
BuildRequires: mvn(org.codehaus.woodstox:stax2-api)
%description
Woodstox is a high-performance validating namespace-aware StAX-compliant
(JSR-173) Open Source XML-processor written in Java.
XML processor means that it handles both input (== parsing)
and output (== writing, serialization)), as well as supporting tasks
such as validation.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{base_name}-%{name}-%{version}
%patch0 -p1
%pom_xpath_inject 'pom:plugin[pom:artifactId="maven-bundle-plugin"]/pom:configuration' '
<instructions>
<Export-Package>{local-packages}</Export-Package>
</instructions>'
%mvn_alias ":{woodstox-core}" :@1-lgpl :@1-asl :wstx-asl :wstx-lgpl \
org.codehaus.woodstox:@1 org.codehaus.woodstox:@1-asl \
org.codehaus.woodstox:@1-lgpl org.codehaus.woodstox:wstx-lgpl \
org.codehaus.woodstox:wstx-asl
%mvn_file : %{name}{,-asl,-lgpl}
rm ./src/test/java/org/codehaus/stax/test/stream/TestNamespaces.java
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc README.md
%files javadoc -f .mfiles-javadoc
%changelog
* Thu Jul 23 2020 Jeffery.Gao <gaojianxing@huawei.com> - 5.0.3-1
- Package init

5
woodstox-core.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/FasterXML/woodstox
version_control: github
src_repo: FasterXML/woodstox
tag_prefix: "^woodstox-core-"
seperator: "."