|
|
|
@ -6,14 +6,15 @@
|
|
|
|
|
|
|
|
|
|
Name: maven
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 3.6.3
|
|
|
|
|
Release: 19%{?dist}
|
|
|
|
|
Version: 3.8.5
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Java project management and project comprehension tool
|
|
|
|
|
# maven itself is ASL 2.0
|
|
|
|
|
# bundled slf4j is MIT
|
|
|
|
|
License: ASL 2.0 and MIT
|
|
|
|
|
URL: https://maven.apache.org/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{java_arches} noarch
|
|
|
|
|
|
|
|
|
|
Source0: https://archive.apache.org/dist/%{name}/%{name}-3/%{version}/source/apache-%{name}-%{version}-src.tar.gz
|
|
|
|
|
Source1: maven-bash-completion
|
|
|
|
@ -25,11 +26,15 @@ Patch1: 0001-Adapt-mvn-script.patch
|
|
|
|
|
Patch2: 0002-Invoke-logback-via-reflection.patch
|
|
|
|
|
Patch3: 0003-Use-non-shaded-HTTP-wagon.patch
|
|
|
|
|
Patch4: 0004-Remove-dependency-on-powermock.patch
|
|
|
|
|
Patch5: 0005-Port-to-maven-resolver-1.7.2.patch
|
|
|
|
|
# XMvn needs to be ported to Maven 3.8.5
|
|
|
|
|
# For now restore backwards compatibility with Maven 3.8.4
|
|
|
|
|
Patch6: 0006-Restore-DefaultModelValidator-compatibility-with-Mav.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
BuildRequires: javapackages-bootstrap-openjdk8
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
|
BuildRequires: mvn(com.google.inject:guice::no_aop:)
|
|
|
|
|
BuildRequires: mvn(commons-cli:commons-cli)
|
|
|
|
|
BuildRequires: mvn(commons-jxpath:commons-jxpath)
|
|
|
|
@ -53,6 +58,7 @@ BuildRequires: mvn(org.apache.maven.wagon:wagon-http)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:extra-enforcer-rules)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
|
|
@ -82,8 +88,6 @@ Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: %{name}-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
|
Suggests: %{name}-openjdk17 = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Requires: which
|
|
|
|
|
|
|
|
|
|
Requires(post): alternatives
|
|
|
|
|
Requires(postun): alternatives
|
|
|
|
|
|
|
|
|
@ -143,18 +147,6 @@ Conflicts: maven-jdk-binding
|
|
|
|
|
%description openjdk17
|
|
|
|
|
Configures Maven to run with OpenJDK 17.
|
|
|
|
|
|
|
|
|
|
%package openjdk21
|
|
|
|
|
Summary: OpenJDK 21 binding for Maven
|
|
|
|
|
RemovePathPostfixes: -openjdk21
|
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: maven = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: java-21-openjdk-headless
|
|
|
|
|
Recommends: java-21-openjdk-devel
|
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
|
|
|
|
|
|
%description openjdk21
|
|
|
|
|
Configures Maven to run with OpenJDK 21.
|
|
|
|
|
|
|
|
|
|
%{?javadoc_package}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
@ -163,10 +155,12 @@ Configures Maven to run with OpenJDK 21.
|
|
|
|
|
find -name '*.java' -exec sed -i 's/\r//' {} +
|
|
|
|
|
find -name 'pom.xml' -exec sed -i 's/\r//' {} +
|
|
|
|
|
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
%patch -P 2 -p1
|
|
|
|
|
%patch -P 3 -p1
|
|
|
|
|
%patch -P 4 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
|
|
|
|
|
# not really used during build, but a precaution
|
|
|
|
|
find -name '*.jar' -not -path '*/test/*' -delete
|
|
|
|
@ -262,7 +256,6 @@ install -d -m 755 %{buildroot}%{_javaconfdir}/
|
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-1.8.0-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk8
|
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-11-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk11
|
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-17-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-21-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
@ -308,55 +301,48 @@ if [[ $1 -eq 0 ]]; then update-alternatives --remove mvn %{homedir}/bin/mvn; fi
|
|
|
|
|
%files openjdk17
|
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
|
|
|
|
|
|
%files openjdk21
|
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk21
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Nov 23 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-19
|
|
|
|
|
- Switch to Fedora tests
|
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1:3.8.5-4
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|
* Thu Feb 02 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.8.5-4
|
|
|
|
|
- Turn hard dependency on java-devel into a weak dependencny
|
|
|
|
|
- Resolves: rhbz#2165595
|
|
|
|
|
|
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-18
|
|
|
|
|
- Fix patch usage
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.8.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 20 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-17
|
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
|
* Thu May 05 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.8.5-2
|
|
|
|
|
- Add build-dependency on extra-enforcer-rules
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-16
|
|
|
|
|
- Suggest maven-openjdk17
|
|
|
|
|
- Resolves: RHEL-62398
|
|
|
|
|
* Thu Apr 21 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.8.5-1
|
|
|
|
|
- Update to upstream version 3.8.5
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-16
|
|
|
|
|
- Add maven-openjdk21
|
|
|
|
|
- Resolves: RHEL-62407
|
|
|
|
|
* Thu Jan 27 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.8.4-3
|
|
|
|
|
- Suggest OpenJDK 17 as default Maven binding
|
|
|
|
|
|
|
|
|
|
* Tue Jan 31 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-15
|
|
|
|
|
- Add missing Requires on which
|
|
|
|
|
- Resolves: rhbz#2165596
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.8.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-15
|
|
|
|
|
- Turn hard dependency on java-devel into a weak dependencny
|
|
|
|
|
- Resolves: rhbz#2165593
|
|
|
|
|
* Fri Dec 17 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.8.4-1
|
|
|
|
|
- Update to upstream version 3.8.4
|
|
|
|
|
|
|
|
|
|
* Thu Dec 01 2022 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-15
|
|
|
|
|
* Fri Nov 05 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-14
|
|
|
|
|
- Do not override JAVA_HOME set by user
|
|
|
|
|
- Resolves: rhbz#2096431
|
|
|
|
|
- Resolves: rhbz#2020478
|
|
|
|
|
|
|
|
|
|
* Fri Sep 24 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-14
|
|
|
|
|
* Tue Nov 02 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-13
|
|
|
|
|
- Suggest OpenJDK 17 as default Maven binding
|
|
|
|
|
|
|
|
|
|
* Fri Sep 24 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-12
|
|
|
|
|
- Add OpenJDK 17 binding
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.6.3-13
|
|
|
|
|
* Fri Sep 24 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.6.3-11
|
|
|
|
|
- Create a symlink to jansi shared object
|
|
|
|
|
- Related: rhbz#1994935
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:3.6.3-12
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-11
|
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
|
|
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-10
|
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.6.3-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-9
|
|
|
|
|
- Bootstrap build
|
|
|
|
|