git://git.onelab.eu
/
pyplnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If /sys/class/net doesn't exist, use an empty list.
[pyplnet.git]
/
pyplnet.spec
diff --git
a/pyplnet.spec
b/pyplnet.spec
index
bf443ee
..
df5a919
100644
(file)
--- a/
pyplnet.spec
+++ b/
pyplnet.spec
@@
-9,7
+9,7
@@
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
-%{!?python_site
arch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1
)")}
+%{!?python_site
lib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(
)")}
Summary: PlanetLab Network Configuration library
Name: %{name}
Summary: PlanetLab Network Configuration library
Name: %{name}
@@
-27,6
+27,7
@@
URL: %(echo %{url} | cut -d ' ' -f 2)
Requires: python >= 2.4
BuildRequires: python, python-devel
Requires: python >= 2.4
BuildRequires: python, python-devel
+BuildArch: noarch
%description
pyplnet is used to write the network configuration files based on the
%description
pyplnet is used to write the network configuration files based on the
@@
-41,13
+42,17
@@
python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
+chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/plnet.py
+mkdir -p $RPM_BUILD_ROOT/%{_bindir}
+ln -s %{python_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%{python_sitearch}/*
+%{_bindir}/plnet
+%{python_sitelib}/*
%changelog
* Tue Dec 2 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - pyplnet-4.3-1
%changelog
* Tue Dec 2 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - pyplnet-4.3-1