From 7a05f8a41063cd583097511bb4f36629915e06c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 24 Mar 2010 14:03:52 +0000 Subject: [PATCH] statically check distroname to require python-uuid. still ugly but hope it'll work for the tests. --- sfa.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.43.0