Fix usage of macros
This commit is contained in:
parent
07f6c0210c
commit
ab23ab9c7e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user