]> git.pld-linux.org Git - packages/Zope-Deprecation.git/commitdiff
rebuild for python eggs; verbose files
authorElan Ruusamäe <glen@delfi.ee>
Sun, 27 Jan 2013 17:15:24 +0000 (19:15 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 27 Jan 2013 17:15:24 +0000 (19:15 +0200)
Zope-Deprecation.spec

index 4c9427334a1138f46cc7026649cf479ae1bab731..c191aad75625e318dd59bd9c7f30a98e07155ee1 100644 (file)
@@ -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
This page took 0.086273 seconds and 5 git commands to generate.