git://git.onelab.eu
/
plnode-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check if we can get rpm to create a Requires: to /usr/bin/python
[plnode-utils.git]
/
plnode-utils-lxc.spec
diff --git
a/plnode-utils-lxc.spec
b/plnode-utils-lxc.spec
index
aed7c12
..
58c91b1
100644
(file)
--- a/
plnode-utils-lxc.spec
+++ b/
plnode-utils-lxc.spec
@@
-4,6
+4,9
@@
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+# for f12
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
Summary: Python utilities for a PlanetLab node
Name: %{name}
Version: %{version}
Summary: Python utilities for a PlanetLab node
Name: %{name}
Version: %{version}
@@
-29,11
+32,11
@@
This python package provides utilities like bwlimit, used in various places on a
%build
# xxx fixme
# this is where we chose which flavour of bwlimit gets shipped
%build
# xxx fixme
# this is where we chose which flavour of bwlimit gets shipped
-cp
bwlimit_lxc.py
bwlimit.py
-python setup.py build
+cp
plnode/bwlimit_lxc.py plnode/
bwlimit.py
+
/usr/bin/
python setup.py build
%install
%install
-python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
+
/usr/bin/
python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
%clean
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT