]> git.pld-linux.org Git - packages/python-zope.interface.git/blob - Zope-Interface.spec
- ver. 3.5.3
[packages/python-zope.interface.git] / Zope-Interface.spec
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.5.3
5 Release:        1
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:  1fdb9a77f92d3ada3e795a8c9b58d0c6
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 BuildRequires:  unzip
17 %pyrequires_eq  python-modules
18 # set this requirement explicitly, so people know where %py_sitedir/zope
19 # can be found
20 Requires:       Zope-dirs
21 Provides:       ZopeInterface
22 Obsoletes:      ZopeInterface
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Python 'interface' concept implementation.
27
28 %description -l pl.UTF-8
29 Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
30 języka Python.
31
32 %prep
33 %setup -q -n zope.interface-%{version}
34
35 %build
36 export CFLAGS="%{rpmcflags}"
37 %{__python} ./setup.py build
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %{__python} ./setup.py install \
42         --optimize 2 \
43         --root=$RPM_BUILD_ROOT
44
45 %py_postclean
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
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
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
This page took 0.059227 seconds and 4 git commands to generate.