X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa.spec;h=f84ab9e3ea720594e066ed5aaebf1bb336405a14;hb=caeefc1a8a5ce718edc9efb2aca9bb54f23c5593;hp=a2ee70a32de8cf81a6e2dbab8c6e74b91c6c3d7c;hpb=722e34a2b11db56817d913d752ff790de0bcec89;p=sfa.git diff --git a/sfa.spec b/sfa.spec index a2ee70a3..f84ab9e3 100644 --- a/sfa.spec +++ b/sfa.spec @@ -33,10 +33,13 @@ Requires: m2crypto Requires: libxslt-python Requires: python-ZSI -# python 2.5 has uuid module added, for python 2.4 we still need it -%define has_uuid %(`python -c "import uuid" 2> /dev/null; echo $?`) -%if has_uuid -%else +# python 2.5 has uuid module added, for python 2.4 we still need it. +# we can't really check for if we can load uuid as a python module, +# 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 Requires: python-uuid %endif