Merge branch 'maven' into stream-javapackages-bootstrap-202501-rhel-9.6.0

This commit is contained in:
Johnny Hughes 2025-01-15 12:53:53 -06:00
commit 62b9b78dbd
8 changed files with 109 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

4
.gitignore vendored
View File

@ -0,0 +1,4 @@
/modulemaker-maven-plugin-1.9.tar.gz
/LICENSE-2.0.txt
/modulemaker-maven-plugin-1.10.tar.gz
/modulemaker-maven-plugin-1.11.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# modulemaker-maven-plugin
The modulemaker-maven-plugin package

1
ci.fmf Normal file
View File

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

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./plans/javapackages.functional}

View File

@ -0,0 +1,84 @@
%bcond_with bootstrap
Name: modulemaker-maven-plugin
Version: 1.11
Release: 7%{?dist}
Summary: A plugin for creating module-info.class files
License: Apache-2.0
URL: https://github.com/raphw/modulemaker-maven-plugin
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: https://github.com/raphw/modulemaker-maven-plugin/archive/refs/tags/modulemaker-maven-plugin-%{version}.tar.gz
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.ow2.asm:asm-commons)
%endif
%description
This plugin allows the creation of a module-info.class for projects on Java 6
to Java 8 where a module-info.java file cannot be compiled.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
API documentation for %{name}.
%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
cp -p %{SOURCE1} .
%pom_xpath_inject 'pom:dependency[pom:artifactId="maven-plugin-api"]' '<scope>provided</scope>'
%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE-2.0.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt
%changelog
* Fri Nov 29 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11-6
- Update javapackages test plan to f42
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Feb 24 2024 Marian Koncek <mkoncek@redhat.com> - 1.11-1
- Update to upstream version 1.11
* Tue Feb 20 2024 Marian Koncek <mkoncek@redhat.com> - 1.9-6
- Update Java source/target to 1.8
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Feb 23 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-2
- Implement bootstrap mode
* Thu Feb 16 2023 Marian Koncek <mkoncek@redhat.com> - 1.9-2
- Initial build

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: c9s
execute:
how: tmt

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (modulemaker-maven-plugin-1.11.tar.gz) = de6b679f9efa0d5c6a56c333dae737ce00c30479a1f083dd25dd6e8e20d85a18c586a896261292c0db7b071745e16e7c09da81cb9288fd0c5e808482ff9118ab
SHA512 (LICENSE-2.0.txt) = 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8