]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | Summary: Deprecation library for Python code | |
8 | Summary(pl.UTF-8): Biblioteka odradzajÄ…ca dla kodu w Pythonie | |
9 | Name: Zope-Deprecation | |
10 | Version: 4.0.2 | |
11 | Release: 2 | |
12 | License: ZPL 2.1 | |
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.710 | |
22 | Requires: Zope-Testing | |
23 | Requires: python-modules | |
24 | # not noarch because of py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84 | |
25 | #BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This package provides a simple function called deprecated(names, reason) to | |
30 | mark deprecated modules, classes, functions, methods and properties. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Biblioteka odradzajÄ…ca dla kodu w Pythonie. | |
34 | ||
35 | %prep | |
36 | %setup -q -n zope.deprecation-%{version} | |
37 | ||
38 | %build | |
39 | %py_build | |
40 | ||
41 | %{?with_tests:%{__python} setup.py test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | %py_install \ | |
46 | --install-purelib=%{py_sitedir} \ | |
47 | --skip-build \ | |
48 | --optimize 2 \ | |
49 | --root=$RPM_BUILD_ROOT | |
50 | ||
51 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/deprecation/tests.py[co] | |
52 | ||
53 | %py_postclean | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc CHANGES.txt | |
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 |