diff --git a/xCAT-IBMhpc/xCAT-IBMhpc.spec b/xCAT-IBMhpc/xCAT-IBMhpc.spec index c7886b1e4..284b5ce4b 100644 --- a/xCAT-IBMhpc/xCAT-IBMhpc.spec +++ b/xCAT-IBMhpc/xCAT-IBMhpc.spec @@ -23,7 +23,7 @@ BuildArch: noarch #Requires: %endif -Requires: perl-xCAT >= %{epoch}:%(cat Version|cut -d. -f 1,2) +Requires: perl-xCAT >= %{epoch}:%(cat Version) Requires: xCAT-client >= %{epoch}:%(cat Version|cut -d. -f 1,2) Provides: xCAT-IBMhpc = %{epoch}:%{version} diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 267242dae..4ce5bbd1b 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -19,6 +19,8 @@ BuildArch: noarch Provides: xCAT-client = %{epoch}:%{version} +Requires: perl-xCAT >= %{epoch}:%(cat Version) + # fping or nmap is needed by pping (in case xCAT-client is installed by itself on a remote client) %ifos linux Requires: nmap diff --git a/xCAT-rmc/xCAT-rmc.spec b/xCAT-rmc/xCAT-rmc.spec index 442c29983..fa413d801 100644 --- a/xCAT-rmc/xCAT-rmc.spec +++ b/xCAT-rmc/xCAT-rmc.spec @@ -15,7 +15,7 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildArch: noarch %endif -Requires: perl-xCAT >= %{epoch}:%(cat Version|cut -d. -f 1,2) +Requires: perl-xCAT >= %{epoch}:%(cat Version) Requires: xCAT-server >= %{epoch}:%(cat Version|cut -d. -f 1,2) Provides: xCAT-rmc = %{version} diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index a045037b6..b872a75d7 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -24,7 +24,7 @@ Requires: perl-IO-Socket-SSL perl-XML-Simple perl-IO-Tty perl-Crypt-SSLeay make Obsoletes: atftp-xcat %endif -Requires: perl-xCAT >= %{epoch}:%(cat Version|cut -d. -f 1,2) +Requires: perl-xCAT >= %{epoch}:%(cat Version) Requires: xCAT-client >= %{epoch}:%(cat Version|cut -d. -f 1,2) Provides: xCAT-server = %{epoch}:%{version}