[packages/Zope-Deprecation] rebuild for python eggs; verbose files

glen glen at pld-linux.org
Sun Jan 27 18:15:36 CET 2013


commit c37bfcd6cd2c142bf03a298317c34926fe3400f5
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 27 19:15:24 2013 +0200

    rebuild for python eggs; verbose files

 Zope-Deprecation.spec | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/Zope-Deprecation.spec b/Zope-Deprecation.spec
index 4c94273..c191aad 100644
--- a/Zope-Deprecation.spec
+++ b/Zope-Deprecation.spec
@@ -1,8 +1,10 @@
+# TODO
+# - why it was needed to move code to py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84 ?
 Summary:	Deprecation library for Python code
 Summary(pl.UTF-8):	Biblioteka odradzająca dla kodu w Pythonie
 Name:		Zope-Deprecation
 Version:	3.4.0
-Release:	4
+Release:	5
 License:	ZPL 2.1
 Group:		Libraries/Python
 Source0:	http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
@@ -13,8 +15,10 @@ BuildRequires:	python-devel >= 1:2.5
 BuildRequires:	python-setuptools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
-%pyrequires_eq	python-modules
 Requires:	Zope-Testing
+Requires:	python-modules
+# not noarch because of py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84
+#BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,16 +31,20 @@ Biblioteka odradzająca dla kodu w Pythonie.
 %setup -q -n zope.deprecation-%{version}
 
 %build
-python ./setup.py build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-python ./setup.py install \
+%{__python} setup.py install \
 	--install-purelib=%{py_sitedir} \
+	--skip-build \
 	--optimize 2 \
 	--root=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/deprecation/tests.py[co]
+
 %py_postclean
 
 %clean
@@ -44,6 +52,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{py_sitedir}/zope/deprecation
+%dir %{py_sitedir}/zope/deprecation
+%{py_sitedir}/zope/deprecation/*.py[co]
+%{py_sitedir}/zope/deprecation/DEPENDENCIES.cfg
+# mv to %doc ?
+%{py_sitedir}/zope/deprecation/README.txt
 %{py_sitedir}/zope.deprecation-*.egg-info
 %{py_sitedir}/zope.deprecation-*-nspkg.pth
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Zope-Deprecation.git/commitdiff/c37bfcd6cd2c142bf03a298317c34926fe3400f5



More information about the pld-cvs-commit mailing list