Skip to content

Commit 87829ff

Browse files
committed
rpm: fixup sitearch
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent e48469e commit 87829ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rpm/SPECS/python-ethtool.spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
%{!?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]")}
23

34
Summary: ethtool python bindings
45
Name: python-ethtool
@@ -30,6 +31,9 @@ rm -rf %{buildroot}
3031
%doc COPYING
3132
%{_sbindir}/pethtool
3233
%{python_sitearch}/ethtool.so
34+
%if "%{python_ver}" >= "2.5"
35+
%{python_sitearch}/*.egg-info
36+
%endif
3337

3438
%changelog
3539
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3

0 commit comments

Comments
 (0)