[python-netifaces] Fix usage of macros
Ryan Rix
rrix at fedoraproject.org
Tue Jun 21 18:20:11 UTC 2011
commit ab23ab9c7ee4f4a6d1810cfcca47aa2be73e02c7
Author: Ryan Rix <ry at n.rix.si>
Date: Tue Jun 21 11:19:53 2011 -0700
Fix usage of macros
python-netifaces.spec | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/python-netifaces.spec b/python-netifaces.spec
index afaaadb..f3702a6 100644
--- a/python-netifaces.spec
+++ b/python-netifaces.spec
@@ -3,10 +3,6 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
-# Filter private shared library provides
-%filter_provides_in %{python_sitearch}/zope/interface/.*\.so$
-%filter_setup
-
Name: python-netifaces
Version: 0.5
Release: 1%{?dist}
@@ -39,7 +35,7 @@ python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --root $RPM_BUILD_ROOT
-chmod -x $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/netifaces-0.5-py2.7.egg-info/*
+chmod -x $RPM_BUILD_ROOT%{python_sitearch}/netifaces-0.5-*.egg-info/*
%clean
@@ -49,7 +45,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
-%{python_sitearch}/netifaces-0.5-py2.7.egg-info/
+%{python_sitearch}/netifaces-0.5-*.egg-info/
%{python_sitearch}/netifaces.so
%changelog
More information about the scm-commits
mailing list