Fix FTBFS after default Java change

Resolves: RHEL-71056
This commit is contained in:
Mikolaj Izdebski 2024-12-11 07:27:37 +01:00
parent 30de64c47f
commit 59091c84a4

View File

@ -1,11 +1,10 @@
%global java_arches aarch64 ppc64le s390x x86_64
# Exclude automatically generated requires on java interpreter which is not # Exclude automatically generated requires on java interpreter which is not
# owned by any package # owned by any package
%global __requires_exclude ^/usr/lib/jvm/java %global __requires_exclude ^%{_jvmdir}/java
# Don't run OSGi dependency generators on private (bundled) JARs
%global __requires_exclude_from \\.jar$
%global __provides_exclude_from \\.jar$
%global javaHomePath %{_jvmdir}/java-11-openjdk
%global mavenHomePath %{_datadir}/%{name} %global mavenHomePath %{_datadir}/%{name}
%global metadataPath %{mavenHomePath}/maven-metadata %global metadataPath %{mavenHomePath}/maven-metadata
%global artifactsPath %{_javadir} %global artifactsPath %{_javadir}
@ -13,12 +12,13 @@
Name: javapackages-bootstrap Name: javapackages-bootstrap
Version: 1.5.0 Version: 1.5.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: A means of bootstrapping Java Packages Tools Summary: A means of bootstrapping Java Packages Tools
# For detailed info see the file javapackages-bootstrap-PACKAGE-LICENSING # For detailed info see the file javapackages-bootstrap-PACKAGE-LICENSING
License: ASL 2.0 and ASL 1.1 and (ASL 2.0 or EPL-2.0) and (EPL-2.0 or GPLv2 with exceptions) and MIT and BSD with advertising and BSD and EPL-1.0 and EPL-2.0 and CDDL-1.0 and xpp and CC0 and Public Domain License: ASL 2.0 and ASL 1.1 and (ASL 2.0 or EPL-2.0) and (EPL-2.0 or GPLv2 with exceptions) and MIT and BSD with advertising and BSD and EPL-1.0 and EPL-2.0 and CDDL-1.0 and xpp and CC0 and Public Domain
URL: https://github.com/fedora-java/javapackages-bootstrap URL: https://github.com/fedora-java/javapackages-bootstrap
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: https://github.com/fedora-java/javapackages-bootstrap/releases/download/%{version}/javapackages-bootstrap-%{version}.tar.xz Source0: https://github.com/fedora-java/javapackages-bootstrap/releases/download/%{version}/javapackages-bootstrap-%{version}.tar.xz
@ -254,12 +254,12 @@ Provides: bundled(xz-java) = 1.8
BuildRequires: byaccj BuildRequires: byaccj
BuildRequires: java-11-openjdk-devel BuildRequires: java-11-openjdk-devel
BuildRequires: javapackages-generators
Requires: bash Requires: bash
Requires: coreutils Requires: coreutils
Requires: java-11-openjdk-devel Requires: java-11-openjdk-devel
Requires: procps-ng Requires: procps-ng
Requires: javapackages-common >= 6.4.0
%description %description
In a nutshell, Java Packages Bootstrap (JPB) is a standalone build of all Java In a nutshell, Java Packages Bootstrap (JPB) is a standalone build of all Java
@ -290,7 +290,7 @@ do
tar -xf "${source}" tar -xf "${source}"
done done
%patch0 -p1 %patch -P0 -p1
for patch_path in patches/*/* for patch_path in patches/*/*
do do
@ -304,10 +304,11 @@ done
%build %build
export LC_ALL=C.utf8 export LC_ALL=C.utf8
JAVA_HOME=%{java_home} ./mbi.sh build -parallel JAVA_HOME=%{javaHomePath} ./mbi.sh build -parallel
%install %install
JAVA_HOME=%{java_home} ./mbi.sh dist \ JAVA_HOME=%{javaHomePath} ./mbi.sh dist \
-javaCmdPath=%{javaHomePath}/bin/java \
-basePackageName=%{name} \ -basePackageName=%{name} \
-installRoot=%{buildroot} \ -installRoot=%{buildroot} \
-mavenHomePath=%{mavenHomePath} \ -mavenHomePath=%{mavenHomePath} \
@ -343,6 +344,9 @@ echo '%%jpb_env PATH=/usr/libexec/javapackages-bootstrap:$PATH' >%{buildroot}%{_
%doc AUTHORS %doc AUTHORS
%changelog %changelog
* Thu Dec 12 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.0-3
- Fix FTBFS after default Java change
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-2 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688