From: Elan Ruusamäe Date: Sun, 27 Jan 2013 17:15:24 +0000 (+0200) Subject: rebuild for python eggs; verbose files X-Git-Tag: auto/th/Zope-Deprecation-3.4.0-5~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2FZope-Deprecation.git;a=commitdiff_plain;h=c37bfcd6cd2c142bf03a298317c34926fe3400f5 rebuild for python eggs; verbose files --- 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