[python-zope-interface] - Move the texts files to %%doc - Exclude the tests from installation - Filter private shared librar
cheeselee
cheeselee at fedoraproject.org
Sun Sep 19 02:26:10 UTC 2010
commit 3410c5f05e046c6ecf26ee6bc9ba33995c775350
Author: Robin Lee <robinlee.sysu at gmail.com>
Date: Sun Sep 19 10:25:37 2010 +0800
- Move the texts files to %%doc
- Exclude the tests from installation
- Filter private shared library provides
python-zope-interface.spec | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/python-zope-interface.spec b/python-zope-interface.spec
index 2447e0c..43ae034 100644
--- a/python-zope-interface.spec
+++ b/python-zope-interface.spec
@@ -1,6 +1,10 @@
+# Filter private shared library provides
+%filter_provides_in %{python_sitearch}/zope/interface/.*\.so$
+%filter_setup
+
Name: python-zope-interface
Version: 3.6.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Zope 3 Interface Infrastructure
Group: Development/Libraries
License: ZPLv2.1
@@ -24,25 +28,41 @@ CFLAGS="%{optflags}" %{__python} setup.py build
%install
%{__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
%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c
-# Fix permissions of shared objects to placate rpmlint
-%{__chmod} 755 %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.so
+# deal with documentation
+%{__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
%{__python} setup.py test
%files
%defattr(-,root,root,-)
-%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
+%{_docdir}/%{name}-%{version}/
%{python_sitearch}/zope/interface/
# Co-own %%{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-*-nspkg.pth
%changelog
+* Sun Sep 19 2010 Robin Lee <robinlee.sysu at 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 at gmail.com> - 3.6.1-4
- Run the test suite
- Don't move the text files
More information about the scm-commits
mailing list