diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index e69de29..b4885f5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,9 @@ +/results_* +/*.src.rpm + +/jaf-1.2.1.tar.gz +/jaf-1.2.2.tar.gz +/jaf-2.1.0.tar.gz +/jaf-2.1.1.tar.gz +/jaf-2.1.2.tar.gz +/jaf-2.1.3.tar.gz diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..7f72400 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,8 @@ +--- !Policy +product_versions: + - rhel-9 +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} diff --git a/jakarta-activation.spec b/jakarta-activation.spec new file mode 100644 index 0000000..634f168 --- /dev/null +++ b/jakarta-activation.spec @@ -0,0 +1,139 @@ +%bcond_with bootstrap + +Name: jakarta-activation +Version: 2.1.3 +Release: 10%{?dist} +Summary: Jakarta Activation API +# the whole project is licensed under (EPL-2.0 or BSD) +# the source code additionally can be licensed under GPLv2 with exceptions +# we only ship built source code +License: EPL-2.0 OR BSD-3-Clause OR GPL-2.0-only WITH Classpath-exception-2.0 +URL: https://jakarta.ee/specifications/activation/2.1/ +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://github.com/jakartaee/jaf-api/archive/%{version}/jaf-%{version}.tar.gz + +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else +BuildRequires: maven-local +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +%endif + +%description +Jakarta Activation defines a set of standard services to: determine +the MIME type of an arbitrary piece of data; encapsulate access to it; +discover the operations available on it; and instantiate the +appropriate bean to perform the operation(s). + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%autosetup -p1 -n jaf-api-%{version} + +pushd api +%pom_remove_parent + +# remove custom doclet configuration +%pom_remove_plugin :maven-javadoc-plugin + +%pom_remove_plugin -r :buildnumber-maven-plugin +%pom_remove_plugin -r :maven-enforcer-plugin +popd + +%build +pushd api +%mvn_build +popd + +%install +pushd api +%mvn_install +popd + +%files -f api/.mfiles +%doc README.md +%license LICENSE.md NOTICE.md + +%files javadoc -f api/.mfiles-javadoc +%license LICENSE.md NOTICE.md + +%changelog +* Fri Nov 29 2024 Mikolaj Izdebski - 2.1.3-9 +- Update javapackages test plan to f42 + +* Wed Aug 21 2024 Mikolaj Izdebski - 2.1.3-3 +- Switch to new GitHub repository + +* Thu Jul 18 2024 Fedora Release Engineering - 2.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Mar 06 2024 Marian Koncek - 2.1.3-1 +- Update to upstream version 2.1.3 + +* Tue Feb 27 2024 Jiri Vanek - 2.1.2-6 +- Rebuilt for java-21-openjdk as system jdk + +* Fri Feb 23 2024 Jiri Vanek - 2.1.2-5 +- bump of release for for java-21-openjdk as system jdk + +* Wed Jan 24 2024 Fedora Release Engineering - 2.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 2.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Sep 01 2023 Mikolaj Izdebski - 2.1.2-2 +- Convert License tag to SPDX format + +* Fri Aug 18 2023 Mikolaj Izdebski - 2.1.2-1 +- Update to upstream version 2.1.2 + +* Thu Jul 20 2023 Fedora Release Engineering - 2.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Feb 08 2023 Marian Koncek - 2.1.1-3 +- Change license, reduce dependencies + +* Thu Jan 19 2023 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 22 2022 Marian Koncek - 2.1.1-1 +- Update to upstream version 2.1.1 + +* Thu Jul 21 2022 Fedora Release Engineering - 1.2.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Feb 05 2022 Jiri Vanek - 1.2.2-6 +- Rebuilt for java-17-openjdk as system jdk + +* Thu Jan 20 2022 Fedora Release Engineering - 1.2.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jun 28 2021 Mikolaj Izdebski - 1.2.2-3 +- Temporarily disable javadoc generation + +* Tue Jan 26 2021 Fedora Release Engineering - 1.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fabio Valentini - 1.2.2-1 +- Update to version 1.2.2. +- Drop custom maven-compiler-plugin overrides in favor of upstream settings. + +* Wed Jul 29 2020 Fabio Valentini - 1.2.1-7 +- Override javac source / target versions with 1.8 to fix build with Java 11. + +* Tue Jul 28 2020 Fedora Release Engineering - 1.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed May 20 2020 Fabio Valentini - 1.2.1-5 +- Package unretired and renamed from jaf. diff --git a/plans/javapackages.fmf b/plans/javapackages.fmf new file mode 100644 index 0000000..8ba3510 --- /dev/null +++ b/plans/javapackages.fmf @@ -0,0 +1,7 @@ +summary: Run javapackages-specific tests +discover: + how: fmf + url: https://src.fedoraproject.org/tests/javapackages + ref: c9s +execute: + how: tmt diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..a1e7bfd --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/sources b/sources new file mode 100644 index 0000000..2ed8975 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jaf-2.1.3.tar.gz) = 0ee7a1b44b789360fdfc3b1cd474f5b201ef31c34850cd8ccf68afc38679ab4740066e7a68bbef1c91ca56cde8b8bbb6b74d1f799494e134bf0519f50c31165e diff --git a/tests/Sanity/smoke/Smoke.java b/tests/Sanity/smoke/Smoke.java new file mode 100644 index 0000000..44333b8 --- /dev/null +++ b/tests/Sanity/smoke/Smoke.java @@ -0,0 +1,15 @@ +import jakarta.activation.DataHandler; +import jakarta.activation.DataSource; +import jakarta.activation.MimeType; +import jakarta.activation.MimeTypeParseException; + +public class Smoke +{ + public static void main(String[] args) + { + System.out.println(DataHandler.class.getCanonicalName()); + System.out.println(DataSource.class.getCanonicalName()); + System.out.println(MimeType.class.getCanonicalName()); + System.out.println(MimeTypeParseException.class.getCanonicalName()); + } +} diff --git a/tests/Sanity/smoke/main.fmf b/tests/Sanity/smoke/main.fmf new file mode 100644 index 0000000..42d5054 --- /dev/null +++ b/tests/Sanity/smoke/main.fmf @@ -0,0 +1,7 @@ +summary: jakarta-activation smoke test +description: | + Test basic functionality of jakarta-activation. +require: + - jakarta-activation + - java-21-openjdk-devel + - xmvn-tools diff --git a/tests/Sanity/smoke/runtest.sh b/tests/Sanity/smoke/runtest.sh new file mode 100755 index 0000000..ad12d48 --- /dev/null +++ b/tests/Sanity/smoke/runtest.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Author: Marian Koncek +. /usr/share/beakerlib/beakerlib.sh + +rlJournalStart + + rlPhaseStartTest "compile Smoke.java and run it" + CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api)" + 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 "jakarta.activation.MimeType" $rlRun_LOG + rlPhaseEnd + +rlJournalEnd +rlJournalPrintText diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..464fed1 --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,5 @@ +contact: Marian Koncek +framework: beakerlib +test: ./runtest.sh +tier: 0 +component: jakarta-activation