Compare commits

...

No commits in common. "c8-beta-stream-4" and "c10s" have entirely different histories.

14 changed files with 181 additions and 57 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
.gitignore vendored
View File

@ -1 +1,5 @@
SOURCES/jaxb-stax-ex-2.1.0.tar.gz
/results_*
/*.src.rpm
/jaxb-stax-ex-1.8.3.tar.gz
/jaxb-stax-ex-2.1.0.tar.gz

View File

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

View File

@ -1,55 +0,0 @@
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

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
--- !Policy
product_versions:
- rhel-10
decision_contexts:
- osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/smoke.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/javapackages.functional}

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

@ -0,0 +1,110 @@
Name: jaxb-stax-ex
Version: 2.1.0
Release: 9%{?dist}
Summary: Extended StAX API
License: BSD-3-Clause
URL: https://github.com/eclipse-ee4j/jaxb-stax-ex
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api)
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
%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 Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.1.0-9
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 2.1.0-8
- Bump release for Aug 2024 java mass rebuild
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.1.0-7
- Bump release for June 2024 mass rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.0-4
- Convert License tag to SPDX format
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* 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.8.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jul 08 2022 Jiri Vanek <jvanek@redhat.com> - 1.8.3-9
- Rebuilt for Drop i686 JDKs
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.8.3-8
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Nov 17 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 1.8.3-6
- Remove workaround for SUREFIRE-1897
* Tue Oct 19 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 1.8.3-5
- Enable test and javadoc package
- Simplified module-info.class build
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Dogtag PKI Team <pki-devel@redhat.com> - 1.8.3-3
- Disable tests
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Aug 11 2020 Fabio Valentini <decathorpe@gmail.com> - 1.8.3-1
- Initial package renamed from stax-ex.

7
plans/javapackages.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://gitlab.com/redhat/centos-stream/tests/javapackages.git
ref: c10s
execute:
how: tmt

5
plans/smoke.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

1
sources Normal file
View File

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

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());
}
}

View File

@ -0,0 +1,7 @@
summary: jaxb-stax-ex smoke test
description: |
Test basic functionality of jaxb-stax-ex.
require:
- jaxb-stax-ex
- java-21-openjdk-devel
- xmvn-tools

16
tests/Sanity/smoke/runtest.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Author: Marian Koncek <mkoncek@redhat.com>
. /usr/share/beakerlib/beakerlib.sh
rlJournalStart
rlPhaseStartTest "compile Smoke.java and run it"
CLASSPATH+=":$(xmvn-resolve org.jvnet.staxex:stax-ex)"
export CLASSPATH
rlRun "/usr/lib/jvm/java-21-openjdk/bin/javac Smoke.java"
rlRun -s "/usr/lib/jvm/java-21-openjdk/bin/java -cp \"${CLASSPATH}:plans\" Smoke"
rlAssertGrep "org.jvnet.staxex.Base64Data" $rlRun_LOG
rlPhaseEnd
rlJournalEnd
rlJournalPrintText

5
tests/main.fmf Normal file
View File

@ -0,0 +1,5 @@
contact: Marian Koncek <mkoncek@redhat.com>
framework: beakerlib
test: ./runtest.sh
tier: 0
component: jaxb-stax-ex