Bootstrap Maven as non-modular packages

Resolves: rhbz#1951482
This commit is contained in:
Mikolaj Izdebski 2021-06-08 20:17:56 +02:00
parent ed02556b60
commit b3c0ef5628

View File

@ -1,23 +1,30 @@
# Workaround for rhbz#1969370: __bootstrap macro is not defined in
# CentOS Stream, See https://bugzilla.redhat.com/1969370
%global __bootstrap ~bootstrap
%bcond_without bootstrap
Name: mojo-parent Name: mojo-parent
Version: 60 Version: 60
Release: 2%{?dist} Release: 3%{?dist}
Summary: Codehaus MOJO parent project pom file Summary: Codehaus MOJO parent project pom file
License: ASL 2.0 License: ASL 2.0
URL: https://www.mojohaus.org/mojo-parent/ URL: https://www.mojohaus.org/mojo-parent/
Source0: https://github.com/mojohaus/mojo-parent/archive/%{name}-%{version}.tar.gz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildArch: noarch BuildArch: noarch
Source0: https://github.com/mojohaus/mojo-parent/archive/%{name}-%{version}.tar.gz
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: maven-local BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%endif
%description %description
Codehaus MOJO parent project pom file Codehaus MOJO parent project pom file
%prep %prep
%setup -q -n %{name}-%{name}-%{version} %setup -q -n %{name}-%{name}-%{version}
# Not needed in Fedora. # Not needed in Fedora.
%pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-site-plugin %pom_remove_plugin :maven-site-plugin
@ -25,23 +32,23 @@ Codehaus MOJO parent project pom file
cp %SOURCE1 . cp %SOURCE1 .
%build %build
%mvn_alias : org.codehaus.mojo:mojo %mvn_alias : org.codehaus.mojo:mojo
%mvn_build %mvn_build
%install %install
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles
%doc LICENSE-2.0.txt %doc LICENSE-2.0.txt
%changelog %changelog
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 60-2 * Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 60-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Bootstrap Maven for CentOS Stream 9
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 60-2
- Bootstrap build
- Non-bootstrap build
* Mon Feb 01 2021 Fabio Valentini <decathorpe@gmail.com> - 60-1 * Mon Feb 01 2021 Fabio Valentini <decathorpe@gmail.com> - 60-1
- Update to version 60. - Update to version 60.
@ -49,6 +56,12 @@ cp %SOURCE1 .
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 50-4 * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 50-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jan 26 2021 Marian Koncek <mkoncek@redhat.com> - 60-1
- Update to upstream version 60
* Wed Jul 29 2020 Marian Koncek <mkoncek@redhat.com> - 50-1
- Update to upstream version 50
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 50-3 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 50-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
@ -61,9 +74,15 @@ cp %SOURCE1 .
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 40-10 * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 40-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 40-8
- Mass rebuild for javapackages-tools 201902
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 40-9 * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 40-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 40-7
- Mass rebuild for javapackages-tools 201901
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 40-8 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 40-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@ -191,4 +210,3 @@ cp %SOURCE1 .
* Mon Sep 6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-1 * Mon Sep 6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 24-1
- Initial version of the package - Initial version of the package