1717
1818%define __os_install_post %{nil }
1919%global debug_package %{nil }
20- %global __requires_exclude libc\\.so\\..*
20+ %global __requires_exclude libc\\.so\\..*|libc\\.so\\.6\\(GLIBC_.*\\)
2121%define _binaries_in_noarch_packages_terminate_build 0
2222
2323# DISABLE the post-percentinstall java repacking and line number stripping
@@ -42,8 +42,8 @@ Source0: %{name}-%{_maventag}.tgz
4242BuildRoot: %{_tmppath }/%{name }-%{_maventag }-%{release }-build
4343BuildArch: noarch
4444
45- BuildRequires: java-11-openjdk-devel
46- BuildRequires: ws-commons-util
45+ BuildRequires: ( java-11-openjdk-devel or java-17-openjdk-devel or java-21-openjdk-devel)
46+ # BuildRequires: ws-commons-util
4747BuildRequires: jpackage-utils
4848BuildRequires: gcc
4949BuildRequires: glibc-devel
@@ -63,9 +63,8 @@ intelligent IaaS cloud implementation.
6363
6464%package management
6565Summary: CloudStack management server UI
66- Requires: java-11-openjdk
67- Requires: tzdata-java
68- Requires: python
66+ Requires: (java-17-openjdk or java-21-openjdk)
67+ Requires: (tzdata-java or timezone-java)
6968Requires: python3
7069Requires: bash
7170Requires: gawk
@@ -74,12 +73,12 @@ Requires: file
7473Requires: bzip2
7574Requires: gzip
7675Requires: unzip
77- Requires: /sbin/mount.nfs
78- Requires: openssh-clients
79- Requires: nfs-utils
76+ Requires: ( /sbin/mount.nfs or /usr/sbin/mount.nfs)
77+ Requires: ( openssh-clients or openssh)
78+ Requires: ( nfs-utils or nfs-client)
8079Requires: iproute
8180Requires: wget
82- Requires: mysql
81+ Requires: ( mysql or mariadb or mysql8.4)
8382Requires: sudo
8483Requires: /sbin/service
8584Requires: /sbin/chkconfig
@@ -105,12 +104,12 @@ Requires: python3-pip
105104Group: System Environment/Libraries
106105%description common
107106The Apache CloudStack files shared between agent and management server
108- %global __requires_exclude ^ libuuid\\.so\\.1$
107+ %global __requires_exclude libc\\.so\\..*|libc\\.so\\.6\\(GLIBC_.*\\)|^( libuuid\\.so\\.1|/usr/bin/python) $
109108
110109%package agent
111110Summary: CloudStack Agent for KVM hypervisors
112111Requires: (openssh-clients or openssh)
113- Requires: java-17-openjdk
112+ Requires: ( java-17-openjdk or java-21-openjdk)
114113Requires: (tzdata-java or timezone-java)
115114Requires: %{name }-common = %{_ver }
116115Requires: libvirt
@@ -152,7 +151,7 @@ The CloudStack baremetal agent
152151
153152%package usage
154153Summary: CloudStack Usage calculation server
155- Requires: java-17-openjdk
154+ Requires: ( java-17-openjdk or java-21-openjdk)
156155Requires: (tzdata-java or timezone-java)
157156Group: System Environment/Libraries
158157%description usage
0 commit comments