git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b94bb59
)
statically check distroname to require python-uuid. still ugly but hope it'll work...
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 24 Mar 2010 14:03:52 +0000
(14:03 +0000)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 24 Mar 2010 14:03:52 +0000
(14:03 +0000)
sfa.spec
patch
|
blob
|
history
diff --git
a/sfa.spec
b/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.
# 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
Requires: python-uuid
%endif