We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48469e commit 87829ffCopy full SHA for 87829ff
rpm/SPECS/python-ethtool.spec
@@ -1,4 +1,5 @@
1
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2
+%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
3
4
Summary: ethtool python bindings
5
Name: python-ethtool
@@ -30,6 +31,9 @@ rm -rf %{buildroot}
30
31
%doc COPYING
32
%{_sbindir}/pethtool
33
%{python_sitearch}/ethtool.so
34
+%if "%{python_ver}" >= "2.5"
35
+%{python_sitearch}/*.egg-info
36
+%endif
37
38
%changelog
39
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
0 commit comments