From dde3c377e857a7de59a93228e1eb2466c3298c43 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Wed, 15 Jan 2025 13:05:01 -0600 Subject: [PATCH] Import from Fedora --- .fmf/version | 1 + .gitignore | 2 ++ ci.fmf | 1 + gating.yaml | 7 +++++ plans/javapackages.fmf | 7 +++++ plexus-testing.spec | 65 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 7 files changed, 84 insertions(+) create mode 100644 .fmf/version create mode 100644 .gitignore create mode 100644 ci.fmf create mode 100644 gating.yaml create mode 100644 plans/javapackages.fmf create mode 100644 plexus-testing.spec create mode 100644 sources 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 new file mode 100644 index 0000000..77b71ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/plexus-xml-3.0.0.tar.gz +/plexus-testing-1.3.0.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..df26947 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-9 +decision_contexts: + - osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/javapackages.functional} 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/plexus-testing.spec b/plexus-testing.spec new file mode 100644 index 0000000..f0e25ee --- /dev/null +++ b/plexus-testing.spec @@ -0,0 +1,65 @@ +%bcond_with bootstrap + +Name: plexus-testing +Version: 1.3.0 +Release: 8%{?dist} +Summary: Plexus Testing +License: Apache-2.0 +URL: https://github.com/codehaus-plexus/plexus-testing +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz + +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else +BuildRequires: maven-local +BuildRequires: mvn(com.google.inject:guice) +BuildRequires: mvn(org.codehaus.plexus:plexus:pom:) +BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.inject) +BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus) +BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api) +%endif + +%description +The Plexus Testing contains the necessary classes to be able to test +Plexus components. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%autosetup -p1 -n %{name}-%{name}-%{version} + +# Some tests rely on Jakarta Injection API, which is not packaged +rm src/test/java/org/codehaus/plexus/testing/TestJakartaComponent.java +rm src/test/java/org/codehaus/plexus/testing/PlexusTestJakartaTest.java + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENSE + +%files javadoc -f .mfiles-javadoc + +%changelog +* Fri Nov 29 2024 Mikolaj Izdebski - 1.3.0-7 +- Update javapackages test plan to f42 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Feb 23 2024 Jiri Vanek - 1.3.0-2 +- bump of release for for java-21-openjdk as system jdk + +* Fri Feb 02 2024 Mikolaj Izdebski - 1.3.0-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..589cb68 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (plexus-testing-1.3.0.tar.gz) = 4a3fddcbf00a8aca14767946bb9682670384673c844aa9eeb3cdc49e14e1406091d6644506fd2d7af10c1e07bd788e771ef8ecaa6e8b3efcd67467786ce4aa4e