Compare commits

...

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

14 changed files with 259 additions and 89 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

8
.gitignore vendored
View File

@ -1 +1,7 @@
SOURCES/jaxb-istack-commons-4.1.1.tar.gz
/results_*
/*.src.rpm
/jaxb-istack-commons-3.0.11.tar.gz
/jaxb-istack-commons-3.0.12.tar.gz
/jaxb-istack-commons-4.1.1.tar.gz
/jaxb-istack-commons-4.2.0.tar.gz

View File

@ -1 +0,0 @@
62ee81439a9a5dfa343243b7cc6334badfbfbc3b SOURCES/jaxb-istack-commons-4.1.1.tar.gz

View File

@ -1,87 +0,0 @@
Name: jaxb-istack-commons
Version: 4.1.1
Release: 1%{?dist}
Summary: iStack Common Utility Code
License: BSD
URL: https://github.com/eclipse-ee4j/jaxb-istack-commons
BuildArch: noarch
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api:2.1.0)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-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)
%description
Code shared between JAXP, JAXB, SAAJ, and JAX-WS projects.
%package runtime
Summary: istack-commons runtime
%description runtime
This package contains istack-commons runtime.
%package test
Summary: istack-commons test
%description test
This package contains istack-commons test.
%package tools
Summary: istack-commons tools
%description tools
This package contains istack-commons tools.
%prep
%setup -q
pushd istack-commons
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
%pom_remove_plugin :maven-javadoc-plugin . test tools
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :spotbugs-maven-plugin
# Missing dependency on args4j
%pom_disable_module soimp
%pom_disable_module buildtools
%pom_disable_module import-properties-plugin
%pom_disable_module maven-plugin
%mvn_package :istack-commons __noinstall
popd
%build
pushd istack-commons
# Javadoc fails on module.info files: "error: too many module declarations found"
%mvn_build -f -s -j
popd
%install
pushd istack-commons
%mvn_install
popd
%files runtime -f istack-commons/.mfiles-istack-commons-runtime
%license LICENSE.md NOTICE.md
%files test -f istack-commons/.mfiles-istack-commons-test
%license LICENSE.md NOTICE.md
%files tools -f istack-commons/.mfiles-istack-commons-tools
%license LICENSE.md NOTICE.md
%changelog
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.1.1-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}

165
jaxb-istack-commons.spec Normal file
View File

@ -0,0 +1,165 @@
Name: jaxb-istack-commons
Version: 4.2.0
Release: 9%{?dist}
Summary: iStack Common Utility Code
License: BSD-3-Clause
URL: https://github.com/eclipse-ee4j/jaxb-istack-commons
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-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.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.glassfish.jaxb:codemodel)
%description
Code shared between JAXP, JAXB, SAAJ, and JAX-WS projects.
%package maven-plugin
Summary: istack-commons maven-plugin
%description maven-plugin
This package contains istack-commons maven-plugin.
%package runtime
Summary: istack-commons runtime
%description runtime
This package contains istack-commons runtime.
%package test
Summary: istack-commons test
%description test
This package contains istack-commons test.
%package tools
Summary: istack-commons tools
%description tools
This package contains istack-commons tools.
%prep
%setup -q
pushd istack-commons
%pom_remove_parent
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-javadoc-plugin . test tools
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :spotbugs-maven-plugin
# Missing dependency on args4j
%pom_disable_module soimp
%pom_disable_module buildtools
%pom_disable_module import-properties-plugin
%mvn_package :istack-commons __noinstall
popd
%build
pushd istack-commons
# Javadoc fails on module.info files: "error: too many module declarations found"
%mvn_build -f -s -j
popd
%install
pushd istack-commons
%mvn_install
popd
%files maven-plugin -f istack-commons/.mfiles-istack-commons-maven-plugin
%license LICENSE.md NOTICE.md
%files runtime -f istack-commons/.mfiles-istack-commons-runtime
%license LICENSE.md NOTICE.md
%files test -f istack-commons/.mfiles-istack-commons-test
%license LICENSE.md NOTICE.md
%files tools -f istack-commons/.mfiles-istack-commons-tools
%license LICENSE.md NOTICE.md
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.2.0-9
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 4.2.0-8
- Bump release for Aug 2024 java mass rebuild
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.2.0-7
- Bump release for June 2024 mass rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Nov 27 2023 Marian Koncek <mkoncek@redhat.com> - 4.2.0-4
- Add jaxb-istack-commons-maven-plugin subpackage
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-3
- Convert License tag to SPDX format
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Apr 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.2.0-1
- Update to upstream version 4.2.0
* Wed Feb 08 2023 Marian Koncek <mkoncek@redhat.com> - 4.1.1-3
- Reorganize subpackages
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Nov 21 2022 Marian Koncek <mkoncek@redhat.com> - 4.1.1-1
- Update to upstream version 4.1.1
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.12-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jul 08 2022 Jiri Vanek <jvanek@redhat.com> - 3.0.12-4
- Rebuilt for Drop i686 JDKs
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.0.12-3
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Nov 05 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 3.0.12-1
- New upstream release 3.0.12
- Remove workaround for SUREFIRE-1897
* Fri Oct 29 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 3.0.11-7
- Include buildtolls, test, and soimp module
- Don't install parent module
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Dogtag PKI Team <pki-devel@redhat.com> - 3.0.11-5
- Disable tests
* Mon May 24 2021 Dogtag PKI Team <pki-devel@redhat.com> - 3.0.11-4
- Drop jaxb-istack-commons-buildtools, jaxb-istack-commons-soimp,
and jaxb-istack-commons-test
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Aug 11 2020 Fabio Valentini <decathorpe@gmail.com> - 3.0.11-2
- Initial package renamed from istack-commons.

7
plans/javapackages.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/javapackages
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-istack-commons-4.2.0.tar.gz) = 66dc1e9b5b86ff07c00e82e7b7ce988ed994ac073e7ebe33511d6c633bf7809d4074c770b805bf37afdb59573f4d29c0144a623997a2cd119044b7ca764da674

View File

@ -0,0 +1,31 @@
import com.sun.istack.ByteArrayDataSource;
import com.sun.istack.FinalArrayList;
import com.sun.istack.NotNull;
import com.sun.istack.Nullable;
import com.sun.istack.Pool;
import com.sun.istack.SAXException2;
import com.sun.istack.SAXParseException2;
import com.sun.istack.XMLStreamReaderToContentHandler;
import com.sun.istack.tools.DefaultAuthenticator;
import com.sun.istack.tools.MaskingClassLoader;
import com.sun.istack.tools.ProtectedTask;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(ByteArrayDataSource.class.getCanonicalName());
System.out.println(FinalArrayList.class.getCanonicalName());
System.out.println(NotNull.class.getCanonicalName());
System.out.println(Nullable.class.getCanonicalName());
System.out.println(Pool.class.getCanonicalName());
System.out.println(SAXException2.class.getCanonicalName());
System.out.println(SAXParseException2.class.getCanonicalName());
System.out.println(XMLStreamReaderToContentHandler.class.getCanonicalName());
System.out.println(DefaultAuthenticator.class.getCanonicalName());
System.out.println(MaskingClassLoader.class.getCanonicalName());
System.out.println(ProtectedTask.class.getCanonicalName());
}
}

View File

@ -0,0 +1,9 @@
summary: jaxb-istack-commons smoke test
description: |
Test basic functionality of jaxb-istack-commons.
require:
- jaxb-istack-commons-tools
- java-21-openjdk-devel
- xmvn-tools
- mvn(org.apache.ant:ant)
- mvn(jakarta.activation:jakarta.activation-api)

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

@ -0,0 +1,19 @@
#!/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.apache.ant:ant)"
CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api)"
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-runtime)"
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-tools)"
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 "com.sun.istack.tools.ProtectedTask" $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-istack-commons