statically check distroname to require python-uuid. still ugly but hope it'll work...
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 24 Mar 2010 14:03:52 +0000 (14:03 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 24 Mar 2010 14:03:52 +0000 (14:03 +0000)
sfa.spec

index 311e4a5..b5d9c42 100644 (file)
--- 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