Compare commits

...

No commits in common. "stream-maven-3.6-rhel-8.10.0" and "c8-stream-201902" have entirely different histories.

10 changed files with 29 additions and 118 deletions

26
.gitignore vendored
View File

@ -1,25 +1 @@
/apache-maven-3.0-src.tar.gz SOURCES/apache-maven-3.6.2-src.tar.gz
/apache-maven-3.0.2-src.tar.gz
/apache-maven-3.0.3-RC1-src.tar.gz
/apache-maven-3.0.3-src.tar.gz
/apache-maven-3.0.4-src.tar.gz
/apache-maven-3.0.5-src.tar.gz
/apache-maven-3.1.0-src.tar.gz
/apache-maven-3.1.1-src.tar.gz
/apache-maven-3.2.0-src.tar.gz
/apache-maven-3.2.1-src.tar.gz
/apache-maven-3.2.2-src.tar.gz
/apache-maven-3.2.3-src.tar.gz
/apache-maven-3.2.5-src.tar.gz
/apache-maven-3.3.0-src.tar.gz
/apache-maven-3.3.1-src.tar.gz
/apache-maven-3.3.3-src.tar.gz
/apache-maven-3.3.8-src.tar.gz
/apache-maven-3.3.9-src.tar.gz
/apache-maven-3.4.0-SNAPSHOT-src.tar.gz
/apache-maven-3.5.0-src.tar.gz
/apache-maven-3.5.2-src.tar.gz
/apache-maven-3.5.3-src.tar.gz
/apache-maven-3.5.4-src.tar.gz
/apache-maven-3.6.1-src.tar.gz
/apache-maven-3.6.2-src.tar.gz

1
.maven.metadata Normal file
View File

@ -0,0 +1 @@
373ffbe9fc88e5facbe10d7a6f6badd243545ade SOURCES/apache-maven-3.6.2-src.tar.gz

View File

@ -1,14 +1,14 @@
From 247eafd819d6092661ebc57c54815acd20abd3de Mon Sep 17 00:00:00 2001 From 056c94f86450c7c27f5bb11f98653c73bfe3d8e4 Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com> From: Michael Simacek <msimacek@redhat.com>
Date: Wed, 1 Feb 2017 14:54:26 +0100 Date: Wed, 1 Feb 2017 14:54:26 +0100
Subject: [PATCH 1/4] Adapt mvn script Subject: [PATCH 1/4] Adapt mvn script
--- ---
apache-maven/src/bin/mvn | 9 +++++++-- apache-maven/src/bin/mvn | 17 +++++++++++++++--
1 file changed, 7 insertions(+), 2 deletions(-) 1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index a554c6617..739501af4 100755 index a554c6617..0c07ba6e2 100755
--- a/apache-maven/src/bin/mvn --- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn +++ b/apache-maven/src/bin/mvn
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
@ -20,11 +20,11 @@ index a554c6617..739501af4 100755
# MAVEN_OPTS (Optional) Java runtime options used when Maven is executed. # MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files. # MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@@ -33,12 +33,18 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then @@ -33,12 +33,24 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then
. /etc/mavenrc . /etc/mavenrc
fi fi
+ if [ -z "$JAVA_HOME" ] ; then + if [ -f /etc/java/maven.conf ] ; then
+ . /etc/java/maven.conf + . /etc/java/maven.conf
+ fi + fi
+ +
@ -34,12 +34,18 @@ index a554c6617..739501af4 100755
fi fi
+if [ -f /usr/share/java-utils/java-functions ] ; then
+ . /usr/share/java-utils/java-functions
+ set_jvm
+ set_javacmd
+fi
+export JAVA_HOME +export JAVA_HOME
+export JAVACMD
+ +
# OS specific support. $var _must_ be set to either true or false. # OS specific support. $var _must_ be set to either true or false.
cygwin=false; cygwin=false;
mingw=false; mingw=false;
@@ -63,7 +67,8 @@ done @@ -63,7 +75,8 @@ done
saveddir=`pwd` saveddir=`pwd`

View File

@ -5,7 +5,7 @@
Name: maven Name: maven
Epoch: 1 Epoch: 1
Version: 3.6.2 Version: 3.6.2
Release: 9%{?dist} Release: 2%{?dist}
Summary: Java project management and project comprehension tool Summary: Java project management and project comprehension tool
# maven itself is ASL 2.0 # maven itself is ASL 2.0
# bundled slf4j is MIT # bundled slf4j is MIT
@ -24,7 +24,7 @@ Patch2: 0002-Invoke-logback-via-reflection.patch
Patch3: 0003-Use-non-shaded-HTTP-wagon.patch Patch3: 0003-Use-non-shaded-HTTP-wagon.patch
Patch4: 0004-Remove-dependency-on-powermock.patch Patch4: 0004-Remove-dependency-on-powermock.patch
BuildRequires: maven-local-openjdk8 BuildRequires: maven-local
BuildRequires: %{?module_prefix}mvn(com.google.inject:guice::no_aop:) BuildRequires: %{?module_prefix}mvn(com.google.inject:guice::no_aop:)
BuildRequires: %{?module_prefix}mvn(commons-cli:commons-cli) BuildRequires: %{?module_prefix}mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-jxpath:commons-jxpath) BuildRequires: mvn(commons-jxpath:commons-jxpath)
@ -74,10 +74,6 @@ Summary: %{summary}
%endif %endif
Requires: %{?module_prefix}%{name}-lib = %{epoch}:%{version}-%{release} Requires: %{?module_prefix}%{name}-lib = %{epoch}:%{version}-%{release}
Requires: %{?module_prefix}%{name}-jdk-binding
Suggests: %{?module_prefix}%{name}-openjdk11 = %{epoch}:%{version}-%{release}
Requires: which
%if 0%{?fedora} %if 0%{?fedora}
Requires(post): (alternatives if fedora-release >= 30 else chkconfig) Requires(post): (alternatives if fedora-release >= 30 else chkconfig)
@ -87,6 +83,18 @@ Requires(post): chkconfig
Requires(postun): chkconfig Requires(postun): chkconfig
%endif %endif
# Require full javapackages-tools since maven-script uses
# /usr/share/java-utils/java-functions
Requires: javapackages-tools
# Theoretically Maven might be usable with just JRE, but typical Maven
# workflow requires full JDK, so we recommend it here.
%if 0%{?fedora} || 0%{?rhel} > 7
Recommends: java-devel
%else
Requires: java-devel
%endif
%if 0%{?module_prefix:1} %if 0%{?module_prefix:1}
%description -n %{module_prefix}%{name} %description -n %{module_prefix}%{name}
%{summary}. %{summary}.
@ -112,42 +120,6 @@ Provides: bundled(slf4j) = %{bundled_slf4j_version}
%description -n %{?module_prefix}%{name}-lib %description -n %{?module_prefix}%{name}-lib
Core part of Apache Maven that can be used as a library. Core part of Apache Maven that can be used as a library.
%package -n %{?module_prefix}%{name}-openjdk8
Summary: OpenJDK 8 binding for Maven
RemovePathPostfixes: -openjdk8
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
Requires: maven = %{epoch}:%{version}-%{release}
Requires: java-1.8.0-openjdk-headless
Recommends: java-1.8.0-openjdk-devel
Conflicts: maven-jdk-binding
%description -n %{?module_prefix}%{name}-openjdk8
Configures Maven to run with OpenJDK 8.
%package -n %{?module_prefix}%{name}-openjdk11
Summary: OpenJDK 11 binding for Maven
RemovePathPostfixes: -openjdk11
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
Requires: maven = %{epoch}:%{version}-%{release}
Requires: java-11-openjdk-headless
Recommends: java-11-openjdk-devel
Conflicts: maven-jdk-binding
%description -n %{?module_prefix}%{name}-openjdk11
Configures Maven to run with OpenJDK 11.
%package -n %{?module_prefix}%{name}-openjdk17
Summary: OpenJDK 17 binding for Maven
RemovePathPostfixes: -openjdk17
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
Requires: maven = %{epoch}:%{version}-%{release}
Requires: java-17-openjdk-headless
Recommends: java-17-openjdk-devel
Conflicts: maven-jdk-binding
%description -n %{?module_prefix}%{name}-openjdk17
Configures Maven to run with OpenJDK 17.
%{?javadoc_package} %{?javadoc_package}
%prep %prep
@ -250,12 +222,6 @@ ln -s %{homedir}/bin/mvn.1.gz %{buildroot}%{_mandir}/man1/mvn%{maven_version_suf
ln -s %{homedir}/bin/mvnDebug.1.gz %{buildroot}%{_mandir}/man1/mvnDebug%{maven_version_suffix}.1.gz ln -s %{homedir}/bin/mvnDebug.1.gz %{buildroot}%{_mandir}/man1/mvnDebug%{maven_version_suffix}.1.gz
%endif %endif
# JDK bindings
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
%post -n %{?module_prefix}%{name} %post -n %{?module_prefix}%{name}
update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alternatives_priority}0 \ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alternatives_priority}0 \
@ -271,7 +237,6 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
%doc README.md %doc README.md
%license LICENSE NOTICE %license LICENSE NOTICE
%{homedir} %{homedir}
%exclude %{homedir}/bin/mvn*
%dir %{confdir} %dir %{confdir}
%dir %{confdir}/logging %dir %{confdir}/logging
%config(noreplace) %{_sysconfdir}/m2%{?maven_version_suffix}.conf %config(noreplace) %{_sysconfdir}/m2%{?maven_version_suffix}.conf
@ -279,7 +244,6 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
%config(noreplace) %{confdir}/logging/simplelogger.properties %config(noreplace) %{confdir}/logging/simplelogger.properties
%files -n %{?module_prefix}%{name} %files -n %{?module_prefix}%{name}
%{homedir}/bin/mvn*
%ghost %{_bindir}/mvn %ghost %{_bindir}/mvn
%ghost %{_bindir}/mvnDebug %ghost %{_bindir}/mvnDebug
%{_datadir}/bash-completion %{_datadir}/bash-completion
@ -292,43 +256,8 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
%{_mandir}/man1/mvnDebug%{maven_version_suffix}.1.gz %{_mandir}/man1/mvnDebug%{maven_version_suffix}.1.gz
%endif %endif
%files openjdk8
%config %{_javaconfdir}/maven.conf-openjdk8
%files openjdk11
%config %{_javaconfdir}/maven.conf-openjdk11
%files openjdk17
%config %{_javaconfdir}/maven.conf-openjdk17
%changelog %changelog
* Thu Feb 02 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-9
- Turn hard dependency on java-devel into a weak dependencny
- Add missing Requires on which
- Resolves: rhbz#2129825, rhbz#2008121
* Wed Jan 25 2023 Marian Koncek <mkoncek@redhat.com> - 1:3.6.2-8
- Do not override JAVA_HOME set by user
- Resolves: rhbz#2164351
* Tue Nov 16 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-7
- Add maven-openjdk17
- Resolves: rhbz#1991521
* Thu Dec 24 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-6
- Move launcher scripts from maven-lib to maven package
* Wed May 20 2020 Marian Koncek <mkoncek@redhat.com> - 1:3.6.2-5
- Drop dependency on javapackages-tools
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-4
- Build with OpenJDK 8
- Implement JDK bindings
* Wed Dec 11 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-3
- Require OpenJDK 11 for runtime
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-2 * Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-2
- Mass rebuild for javapackages-tools 201902 - Mass rebuild for javapackages-tools 201902

View File

@ -1 +0,0 @@
SHA512 (apache-maven-3.6.2-src.tar.gz) = 235198b48d29fe2f2394f2607a9a1637acfd0286beacb974c566f7f36ac6c469871a0db287539b2b62e6322d7423f586949e41cbbfea330fe03bf690688f6fd7