]>
Commit | Line | Data |
---|---|---|
8b3d71bd JP |
1 | %define _enable_debug_packages 0 |
2 | ||
99daff2c | 3 | %define module zope.deferredimport |
322e8459 JB |
4 | Summary: Defer Python module import |
5 | Summary(pl.UTF-8): Opóźnianie importu modułów Pythona | |
99daff2c | 6 | Name: python-%{module} |
723e518b | 7 | Version: 3.5.3 |
8b3d71bd | 8 | Release: 2 |
3dce3665 | 9 | License: ZPL 2.1 |
10 | Group: Libraries/Python | |
e06d28d8 | 11 | Source0: http://pypi.python.org/packages/source/z/zope.deferredimport/zope.deferredimport-%{version}.tar.gz |
723e518b | 12 | # Source0-md5: 68fce3bf4f011d4a840902fd763884ee |
3989f43c | 13 | URL: http://www.zope.org/ |
322e8459 JB |
14 | BuildRequires: python >= 1:2.5 |
15 | BuildRequires: python-devel >= 1:2.5 | |
72159618 | 16 | BuildRequires: python-setuptools |
322e8459 | 17 | BuildRequires: rpm-pythonprov |
8b6236f2 | 18 | BuildRequires: rpmbuild(macros) >= 1.710 |
2a1d1a85 | 19 | %pyrequires_eq python-modules |
99daff2c JK |
20 | Requires: python-zope.proxy |
21 | Requires: python-zope.testing | |
22 | Obsoletes: Zope-DeferredImport | |
2a1d1a85 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
322e8459 JB |
26 | Defer Python module import. |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Opóźnianie importu modułów Pythona. | |
2a1d1a85 | 30 | |
31 | %prep | |
99daff2c | 32 | %setup -q -n %{module}-%{version} |
2a1d1a85 | 33 | |
34 | %build | |
48e73741 | 35 | %py_build |
2a1d1a85 | 36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
48e73741 | 40 | %py_install \ |
abccdf26 | 41 | --install-purelib=%{py_sitedir} \ |
2a1d1a85 | 42 | --optimize 2 \ |
43 | --root=$RPM_BUILD_ROOT | |
44 | ||
322e8459 | 45 | %py_postclean |
2a1d1a85 | 46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
abccdf26 | 52 | %{py_sitedir}/zope/deferredimport |
53 | %{py_sitedir}/zope.deferredimport-*.egg-info | |
54 | %{py_sitedir}/zope.deferredimport-*-nspkg.pth |