Initial build

This commit is contained in:
Marián Konček 2023-01-30 12:03:33 +01:00 committed by Stepan Oksanichenko
parent 5cedea664a
commit 65f3b8ed53
8 changed files with 98 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -0,0 +1 @@
/jaxb-stax-ex-2.1.0.tar.gz

1
.jaxb-stax-ex.metadata Normal file
View File

@ -0,0 +1 @@
4861cb57e2d08abec4b1e4288f9e5938ddf807e9 jaxb-stax-ex-2.1.0.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_contexts:
- osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

55
jaxb-stax-ex.spec Normal file
View File

@ -0,0 +1,55 @@
Name: jaxb-stax-ex
Version: 2.1.0
Release: 1%{?dist}
Summary: Extended StAX API
License: BSD
URL: https://github.com/eclipse-ee4j/jaxb-stax-ex
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api:2.1.0)
BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api:4.0.0)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
%description
This project contains a few extensions to complement JSR-173 StAX API in
the following areas:
- Enable parser instance reuse (which is important in the
high-performance environment like Eclipse Implementation of JAXB and
Eclipse Metro)
- Improve the support for reading from non-text XML infoset, such as
FastInfoset.
- Improve the namespace support.
%{?javadoc_package}
%prep
%setup -q
find -name 'module-info.java' -type f -delete
%pom_remove_parent
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE.md NOTICE.md
%doc README.md
%changelog
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 2.1.0-1
- Initial build

15
plans/Smoke.java Normal file
View File

@ -0,0 +1,15 @@
import org.jvnet.staxex.Base64Data;
import org.jvnet.staxex.NamespaceContextEx;
import org.jvnet.staxex.XMLStreamReaderEx;
import org.jvnet.staxex.XMLStreamWriterEx;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(Base64Data.class.getCanonicalName());
System.out.println(NamespaceContextEx.class.getCanonicalName());
System.out.println(XMLStreamReaderEx.class.getCanonicalName());
System.out.println(XMLStreamWriterEx.class.getCanonicalName());
}
}

17
plans/smoke.fmf Normal file
View File

@ -0,0 +1,17 @@
summary: Basic smoke test
prepare:
how: install
package:
- java-11-openjdk-devel
- xmvn-tools
discover:
how: shell
tests:
- name: /smoke/classpath-import
test: |
CLASSPATH+=":$(xmvn-resolve org.jvnet.staxex:stax-ex)"
export CLASSPATH
/usr/lib/jvm/java-11-openjdk/bin/javac plans/Smoke.java
/usr/lib/jvm/java-11-openjdk/bin/java -cp "${CLASSPATH}:plans" Smoke
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (jaxb-stax-ex-2.1.0.tar.gz) = f81dcb4870800c4799e716254b84e57a15ef36a9e6a8502da7ee2711aad67765595674fccc1c4d9d4e8865c642dfadd694f8849d4e98c4e9f2368cb940deb38d