]>
Commit | Line | Data |
---|---|---|
33398c02 ER |
1 | # TODO |
2 | # - why it was needed to move code to py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84 ? | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without tests # do not perform "make test" | |
6 | ||
69d8a7de | 7 | Summary: Deprecation library for Python code |
853d4e59 | 8 | Summary(pl.UTF-8): Biblioteka odradzająca dla kodu w Pythonie |
25e68304 | 9 | Name: Zope-Deprecation |
191b9d43 | 10 | Version: 4.0.2 |
1f24873d | 11 | Release: 2 |
69d8a7de | 12 | License: ZPL 2.1 |
13 | Group: Libraries/Python | |
4024cce2 | 14 | Source0: http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz |
191b9d43 ER |
15 | # Source0-md5: 5f8cecce85f2783f9e020f1288e908fd |
16 | URL: http://docs.zope.org/zope.deprecation/ | |
17 | BuildRequires: python >= 1:2.6 | |
853d4e59 | 18 | BuildRequires: python-devel >= 1:2.5 |
449afe77 | 19 | BuildRequires: python-setuptools |
853d4e59 | 20 | BuildRequires: rpm-pythonprov |
a1c3040c | 21 | BuildRequires: rpmbuild(macros) >= 1.710 |
727fd8f2 | 22 | Requires: Zope-Testing |
33398c02 ER |
23 | Requires: python-modules |
24 | # not noarch because of py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84 | |
25 | #BuildArch: noarch | |
25e68304 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
191b9d43 ER |
29 | This package provides a simple function called deprecated(names, reason) to |
30 | mark deprecated modules, classes, functions, methods and properties. | |
25e68304 | 31 | |
853d4e59 JB |
32 | %description -l pl.UTF-8 |
33 | Biblioteka odradzająca dla kodu w Pythonie. | |
34 | ||
25e68304 | 35 | %prep |
36 | %setup -q -n zope.deprecation-%{version} | |
37 | ||
38 | %build | |
9313eb36 | 39 | %py_build |
33398c02 ER |
40 | |
41 | %{?with_tests:%{__python} setup.py test} | |
25e68304 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
9313eb36 | 45 | %py_install \ |
99929afd | 46 | --install-purelib=%{py_sitedir} \ |
33398c02 | 47 | --skip-build \ |
25e68304 | 48 | --optimize 2 \ |
49 | --root=$RPM_BUILD_ROOT | |
50 | ||
33398c02 ER |
51 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/deprecation/tests.py[co] |
52 | ||
853d4e59 | 53 | %py_postclean |
25e68304 | 54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
191b9d43 | 60 | %doc CHANGES.txt |
33398c02 ER |
61 | %dir %{py_sitedir}/zope/deprecation |
62 | %{py_sitedir}/zope/deprecation/*.py[co] | |
99929afd | 63 | %{py_sitedir}/zope.deprecation-*.egg-info |
64 | %{py_sitedir}/zope.deprecation-*-nspkg.pth |