From: Barış Metin Date: Wed, 24 Mar 2010 14:03:52 +0000 (+0000) Subject: statically check distroname to require python-uuid. still ugly but hope it'll work... X-Git-Tag: sfa-0.9-11~44 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=7a05f8a41063cd583097511bb4f36629915e06c1 statically check distroname to require python-uuid. still ugly but hope it'll work for the tests. --- diff --git a/sfa.spec b/sfa.spec index 311e4a53..b5d9c42c 100644 --- a/sfa.spec +++ b/sfa.spec @@ -40,8 +40,11 @@ Requires: python-lxml # it'll be installed by "devel.pkgs". we have the epel repository so # python-uuid will be provided. but we can test for the python # version. -%define has_py24 %( python -c "import sys;sys.exit(sys.version_info[0:2] == (2,4))" 2> /dev/null; echo $? ) -%if %has_py24 +# %define has_py24 %( python -c "import sys;sys.exit(sys.version_info[0:2] == (2,4))" 2> /dev/null; echo $? ) +# %if %has_py24 +# +# this also didn't work very well. I'll just check for distroname - baris +%if %{distroname} == "centos5" Requires: python-uuid %endif