1 Summary: Python 'interface' concept implementation
2 Summary(pl.UTF-8): Implementacja interfejsów dla języka Python
7 Group: Libraries/Python
8 Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
9 # Source0-md5: 1fdb9a77f92d3ada3e795a8c9b58d0c6
10 URL: http://www.zope.org/Products/ZopeInterface/
12 BuildRequires: python-devel
13 BuildRequires: python-setuptools
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.219
17 %pyrequires_eq python-modules
18 # set this requirement explicitly, so people know where %py_sitedir/zope
21 Provides: ZopeInterface
22 Obsoletes: ZopeInterface
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Python 'interface' concept implementation.
28 %description -l pl.UTF-8
29 Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
33 %setup -q -n zope.interface-%{version}
36 export CFLAGS="%{rpmcflags}"
37 %{__python} ./setup.py build
40 rm -rf $RPM_BUILD_ROOT
41 %{__python} ./setup.py install \
43 --root=$RPM_BUILD_ROOT
46 rm $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.{txt,c}
47 rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests
48 rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc CHANGES.txt src/zope/interface/{README,human}.txt
56 %lang(ru) %doc src/zope/interface/{README,human}.ru.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