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