From 6a52d2327b90e9c6c49ecddcdca990f26a3a97c6 Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Thu, 28 Jun 2012 16:43:23 +0000 Subject: [PATCH] fix spec file syntax error on aix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13194 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-server.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index ae3cc97e6..65d58ec8d 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -12,7 +12,6 @@ Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root -%define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi) %ifnos linux AutoReqProv: no %endif @@ -21,14 +20,22 @@ AutoReqProv: no # also need to fix Requires for AIX %ifos linux BuildArch: noarch -%if %fsm Requires: perl-IO-Socket-SSL perl-XML-Simple -%else -Requires: perl-IO-Socket-SSL perl-XML-Simple perl-IO-Tty perl-Crypt-SSLeay make -%endif Obsoletes: atftp-xcat %endif +%define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi) + +%if %fsm +# nothing needed here +%else +%ifos linux +# do this for non-fsm linux +Requires: perl-IO-Tty perl-Crypt-SSLeay make +%endif +%endif + + Requires: perl-xCAT >= %{epoch}:%(cat Version) Requires: xCAT-client >= %{epoch}:%(cat Version|cut -d. -f 1,2)