|
|
|
@ -6,15 +6,14 @@
|
|
|
|
|
|
|
|
|
|
Name: maven
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 3.8.5
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 3.6.3
|
|
|
|
|
Release: 19%{?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
|
|
|
|
@ -26,15 +25,11 @@ 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-openjdk8
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%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)
|
|
|
|
@ -58,7 +53,6 @@ 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)
|
|
|
|
@ -88,6 +82,8 @@ 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
|
|
|
|
|
|
|
|
|
@ -147,6 +143,18 @@ 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
|
|
|
|
@ -155,12 +163,10 @@ Configures Maven to run with OpenJDK 17.
|
|
|
|
|
find -name '*.java' -exec sed -i 's/\r//' {} +
|
|
|
|
|
find -name 'pom.xml' -exec sed -i 's/\r//' {} +
|
|
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
%patch -P 2 -p1
|
|
|
|
|
%patch -P 3 -p1
|
|
|
|
|
%patch -P 4 -p1
|
|
|
|
|
|
|
|
|
|
# not really used during build, but a precaution
|
|
|
|
|
find -name '*.jar' -not -path '*/test/*' -delete
|
|
|
|
@ -256,6 +262,7 @@ 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
|
|
|
|
@ -301,48 +308,55 @@ if [[ $1 -eq 0 ]]; then update-alternatives --remove mvn %{homedir}/bin/mvn; fi
|
|
|
|
|
%files openjdk17
|
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1:3.8.5-4
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
%files openjdk21
|
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk21
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Nov 23 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-19
|
|
|
|
|
- Switch to Fedora tests
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-18
|
|
|
|
|
- Fix patch usage
|
|
|
|
|
|
|
|
|
|
* Thu May 05 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.8.5-2
|
|
|
|
|
- Add build-dependency on extra-enforcer-rules
|
|
|
|
|
* Wed Nov 20 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-17
|
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- Suggest maven-openjdk17
|
|
|
|
|
- Resolves: RHEL-62398
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.8.4-3
|
|
|
|
|
- Suggest OpenJDK 17 as default Maven binding
|
|
|
|
|
* Thu Oct 17 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-16
|
|
|
|
|
- Add maven-openjdk21
|
|
|
|
|
- Resolves: RHEL-62407
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Tue Jan 31 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-15
|
|
|
|
|
- Add missing Requires on which
|
|
|
|
|
- Resolves: rhbz#2165596
|
|
|
|
|
|
|
|
|
|
* Fri Dec 17 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.8.4-1
|
|
|
|
|
- Update to upstream version 3.8.4
|
|
|
|
|
* 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 Nov 05 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-14
|
|
|
|
|
* Thu Dec 01 2022 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-15
|
|
|
|
|
- Do not override JAVA_HOME set by user
|
|
|
|
|
- Resolves: rhbz#2020478
|
|
|
|
|
- Resolves: rhbz#2096431
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Fri Sep 24 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-14
|
|
|
|
|
- Add OpenJDK 17 binding
|
|
|
|
|
|
|
|
|
|
* Fri Sep 24 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.6.3-11
|
|
|
|
|
* Thu Aug 19 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.6.3-13
|
|
|
|
|
- Create a symlink to jansi shared object
|
|
|
|
|
- Related: rhbz#1994935
|
|
|
|
|
|
|
|
|
|
* 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 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
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-9
|
|
|
|
|
- Bootstrap build
|
|
|
|
|