- Move the texts files to %%doc

- Exclude the tests from installation
- Filter private shared library provides
epel8
Robin Lee 15 years ago
parent a81774c03a
commit 3410c5f05e

@ -1,6 +1,10 @@
# Filter private shared library provides
%filter_provides_in %{python_sitearch}/zope/interface/.*\.so$
%filter_setup
Name: python-zope-interface Name: python-zope-interface
Version: 3.6.1 Version: 3.6.1
Release: 4%{?dist} Release: 5%{?dist}
Summary: Zope 3 Interface Infrastructure Summary: Zope 3 Interface Infrastructure
Group: Development/Libraries Group: Development/Libraries
License: ZPLv2.1 License: ZPLv2.1
@ -24,25 +28,41 @@ CFLAGS="%{optflags}" %{__python} setup.py build
%install %install
%{__python} setup.py install -O1 --skip-build --root %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot}
# Will put docs in %{_docdir} instead
%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/{,tests/}*.txt
# C files don't need to be packaged # C files don't need to be packaged
%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c %{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c
# Fix permissions of shared objects to placate rpmlint # deal with documentation
%{__chmod} 755 %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.so %{__mkdir_p} %{buildroot}%{_docdir}/%{name}-%{version}/
%{__cp} -p src/zope/interface/*.txt src/zope/interface/tests/*.txt \
%{buildroot}%{_docdir}/%{name}-%{version}
%{__mv} %{buildroot}%{_docdir}/%{name}-%{version}/README{,-development}.txt
%{__cp} -p CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt \
%{buildroot}%{_docdir}/%{name}-%{version}/
%check %check
%{__python} setup.py test %{__python} setup.py test
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt %{_docdir}/%{name}-%{version}/
%{python_sitearch}/zope/interface/ %{python_sitearch}/zope/interface/
# Co-own %%{python_sitearch}/zope/ # Co-own %%{python_sitearch}/zope/
%dir %{python_sitearch}/zope/ %dir %{python_sitearch}/zope/
%exclude %{python_sitearch}/zope/interface/tests/
%exclude %{python_sitearch}/zope/interface/common/tests/
%{python_sitearch}/zope.interface-*.egg-info %{python_sitearch}/zope.interface-*.egg-info
%{python_sitearch}/zope.interface-*-nspkg.pth %{python_sitearch}/zope.interface-*-nspkg.pth
%changelog %changelog
* Sun Sep 19 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-5
- Move the texts files to %%doc
- Exclude the tests from installation
- Filter private shared library provides
* Wed Sep 15 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-4 * Wed Sep 15 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-4
- Run the test suite - Run the test suite
- Don't move the text files - Don't move the text files

Loading…
Cancel
Save