2 # - why it was needed to move code to py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84 ?
5 %bcond_without tests # do not perform "make test"
7 Summary: Deprecation library for Python code
8 Summary(pl.UTF-8): Biblioteka odradzajÄ…ca dla kodu w Pythonie
13 Group: Libraries/Python
14 Source0: http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
15 # Source0-md5: 5f8cecce85f2783f9e020f1288e908fd
16 URL: http://docs.zope.org/zope.deprecation/
17 BuildRequires: python >= 1:2.6
18 BuildRequires: python-devel >= 1:2.5
19 BuildRequires: python-setuptools
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.219
22 Requires: Zope-Testing
23 Requires: python-modules
24 # not noarch because of py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This package provides a simple function called deprecated(names, reason) to
30 mark deprecated modules, classes, functions, methods and properties.
32 %description -l pl.UTF-8
33 Biblioteka odradzajÄ…ca dla kodu w Pythonie.
36 %setup -q -n zope.deprecation-%{version}
39 %{__python} setup.py build
41 %{?with_tests:%{__python} setup.py test}
44 rm -rf $RPM_BUILD_ROOT
45 %{__python} setup.py install \
46 --install-purelib=%{py_sitedir} \
49 --root=$RPM_BUILD_ROOT
51 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/deprecation/tests.py[co]
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %dir %{py_sitedir}/zope/deprecation
62 %{py_sitedir}/zope/deprecation/*.py[co]
63 %{py_sitedir}/zope.deprecation-*.egg-info
64 %{py_sitedir}/zope.deprecation-*-nspkg.pth