diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index aad2d042e9..d97f7dfb73 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -16,6 +16,15 @@ BuildArch: noarch BuildRequires: perl perl-DBI perl-JSON # Do not need the SOAP rpm require, because rpm will generate it automatically if hpoa.pm is included #Requires: perl-SOAP-Lite +# openSUSE has no perl-generators, so no perl(...) requirement is generated here and nothing +# installs the modules this code loads. xcatd stays inactive without them: xCAT::Table dies +# loading JSON. EL and openEuler generate these automatically and need no list. +%if 0%{?suse_version} +Requires: perl(Expect) +Requires: perl(HTML::Form) +Requires: perl(JSON) +Requires: perl(SNMP) +%endif %endif %description diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 2f6b71e288..6c0daf8df1 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -31,6 +31,12 @@ BuildArch: noarch Requires: perl-xCAT = 4:%{version}-%{release} Requires: cpio +# openSUSE has no perl-generators, so no perl(...) requirement is generated here and nothing +# installs the modules this code loads. xcatd stays inactive without them: xCAT::Table dies +# loading JSON. EL and openEuler generate these automatically and need no list. +%if 0%{?suse_version} +Requires: perl(Expect) +%endif # fping or nmap is needed by pping (in case xCAT-client is installed by itself on a remote client) %ifos linux diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index 43ab9e20a9..f1d94acb5e 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -52,6 +52,15 @@ Requires: perl-IO-Socket-SSL perl-XML-Simple perl-XML-Parser perl-Digest-SHA1 pe # Time::HiRes and Text::Balanced) are not pulled in transitively by perl-xCAT # either. List them here or the affected subcommands die at load time. Requires: perl-Net-Telnet perl-Net-DNS perl-Crypt-CBC perl-Crypt-Rijndael +# openSUSE has no perl-generators, so no perl(...) requirement is generated here and nothing +# installs the modules this code loads. xcatd stays inactive without them: xCAT::Table dies +# loading JSON. EL and openEuler generate these automatically and need no list. +%if 0%{?suse_version} +Requires: perl(Date::Parse) +Requires: perl(Expect) +Requires: perl(JSON) +Requires: perl(SNMP) +%endif # DB_File is only used by the Confluent client (lib/xcat/Confluent/Client.pm). EL10 # dropped libdb: EPEL still carries perl-DB_File for x86_64 and ppc64le, but riscv64 has # no EPEL at all, so on EL10 ask for the module weakly -- it is installed where it exists