]>
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: 4.0.1 | |
5 | Release: 2 | |
6 | License: ZPL 2.1 | |
7 | Group: Libraries/Python | |
8 | Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz | |
9 | # Source0-md5: d171f8f8a6997409c7680f1dbb3b7e45 | |
10 | URL: http://www.zope.org/Products/ZopeInterface/ | |
11 | BuildRequires: python | |
12 | BuildRequires: python-devel | |
13 | BuildRequires: python-setuptools | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | Requires: python-modules | |
17 | # set this requirement explicitly, so people know where %py_sitedir/zope can be found | |
18 | Requires: Zope-dirs | |
19 | Provides: ZopeInterface | |
20 | Obsoletes: ZopeInterface | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Python 'interface' concept implementation. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla | |
28 | języka Python. | |
29 | ||
30 | %prep | |
31 | %setup -q -n zope.interface-%{version} | |
32 | ||
33 | %build | |
34 | CC="%{__cc}" \ | |
35 | CFLAGS="%{rpmcflags}" \ | |
36 | %{__python} setup.py build | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | %{__python} setup.py install \ | |
41 | --skip-build \ | |
42 | --optimize=2 \ | |
43 | --root=$RPM_BUILD_ROOT | |
44 | ||
45 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.c | |
46 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests | |
47 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests | |
48 | ||
49 | %py_postclean | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc CHANGES.txt | |
57 | %dir %{py_sitedir}/zope/interface | |
58 | %{py_sitedir}/zope/interface/*.py[co] | |
59 | %attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so | |
60 | %{py_sitedir}/zope/interface/common | |
61 | %{py_sitedir}/zope.interface-*.egg-info | |
62 | %{py_sitedir}/zope.interface-*-nspkg.pth |