]>
Commit | Line | Data |
---|---|---|
1 | Summary: Python 'interface' concept implementation | |
2 | Summary(pl.UTF-8): Implementacja interfejsów dla języka Python | |
3 | Name: Zope-Interface | |
4 | Version: 3.4.0 | |
5 | Release: 3 | |
6 | License: ZPL 2.1 | |
7 | Group: Libraries/Python | |
8 | Source0: http://download.zope.org/distribution/zope.interface-%{version}.tar.gz | |
9 | # Source0-md5: 0be9fd80b7bb6bee520e56eba7d29c90 | |
10 | URL: http://www.zope.org/Products/ZopeInterface/ | |
11 | BuildRequires: python >= 1:2.5 | |
12 | BuildRequires: python-devel >= 1:2.5 | |
13 | BuildRequires: python-setuptools | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | %pyrequires_eq python-modules | |
17 | Provides: ZopeInterface | |
18 | Obsoletes: ZopeInterface | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Python 'interface' concept implementation. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla | |
26 | języka Python. | |
27 | ||
28 | %prep | |
29 | %setup -q -n zope.interface-%{version} | |
30 | ||
31 | %build | |
32 | python ./setup.py build | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | python ./setup.py install \ | |
38 | --optimize 2 \ | |
39 | --root=$RPM_BUILD_ROOT | |
40 | ||
41 | %py_postclean | |
42 | rm $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.{txt,c} | |
43 | rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests | |
44 | rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc CHANGES.txt src/zope/interface/{README,human}.txt | |
52 | %lang(ru) %doc src/zope/interface/{README,human}.ru.txt | |
53 | %dir %{py_sitedir}/zope | |
54 | %dir %{py_sitedir}/zope/interface | |
55 | %{py_sitedir}/zope/interface/*.cfg | |
56 | %{py_sitedir}/zope/interface/*.py[co] | |
57 | %attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so | |
58 | %{py_sitedir}/zope/interface/common | |
59 | %{py_sitedir}/zope.interface-*.egg-info | |
60 | %{py_sitedir}/zope.interface-*-nspkg.pth |