]>
Commit | Line | Data |
---|---|---|
230df66a | 1 | Summary: Python 'interface' concept implementation |
2 | Summary(pl.UTF-8): Implementacja interfejsów dla języka Python | |
780a3ae9 | 3 | Name: Zope-Interface |
329c3be3 | 4 | Version: 4.0.3 |
d63d5b25 | 5 | Release: 2 |
230df66a | 6 | License: ZPL 2.1 |
7b84e2b8 | 7 | Group: Libraries/Python |
50f4adef | 8 | Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz |
329c3be3 ER |
9 | # Source0-md5: 1ddd308f2c83703accd1696158c300eb |
10 | URL: http://docs.zope.org/zope.interface/ | |
44f2928a ER |
11 | BuildRequires: python |
12 | BuildRequires: python-devel | |
037cfed9 | 13 | BuildRequires: python-setuptools |
256ecd95 JB |
14 | BuildRequires: rpm-pythonprov |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
165f01ee ER |
16 | Requires: python-modules |
17 | # set this requirement explicitly, so people know where %py_sitedir/zope can be found | |
4341ba4b | 18 | Requires: Zope-dirs |
256ecd95 JB |
19 | Provides: ZopeInterface |
20 | Obsoletes: ZopeInterface | |
ccad16eb | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
230df66a | 24 | Python 'interface' concept implementation. |
ccad16eb | 25 | |
38ab133d | 26 | %description -l pl.UTF-8 |
256ecd95 JB |
27 | Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla |
28 | języka Python. | |
ccad16eb | 29 | |
30 | %prep | |
780a3ae9 | 31 | %setup -q -n zope.interface-%{version} |
ccad16eb | 32 | |
33 | %build | |
f4ebf442 | 34 | %py_build |
ccad16eb | 35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
f4ebf442 | 38 | %py_install |
ccad16eb | 39 | |
165f01ee ER |
40 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.c |
41 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests | |
42 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests | |
43 | ||
256ecd95 | 44 | %py_postclean |
ccad16eb | 45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
8390069d | 51 | %doc CHANGES.txt |
ad267389 | 52 | %dir %{py_sitedir}/zope/interface |
ad267389 JB |
53 | %{py_sitedir}/zope/interface/*.py[co] |
54 | %attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so | |
55 | %{py_sitedir}/zope/interface/common | |
256ecd95 JB |
56 | %{py_sitedir}/zope.interface-*.egg-info |
57 | %{py_sitedir}/zope.interface-*-nspkg.pth |