]> git.pld-linux.org Git - packages/python-zope.interface.git/blob - Zope-Interface.spec
- files cleanup, .so perms
[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.4.0
5 Release:        1
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:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 %pyrequires_eq  python-modules
16 Provides:       ZopeInterface
17 Obsoletes:      ZopeInterface
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Python 'interface' concept implementation.
22
23 %description -l pl.UTF-8
24 Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
25 języka Python.
26
27 %prep
28 %setup -q -n zope.interface-%{version}
29
30 %build
31 python ./setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 python ./setup.py install \
37         --optimize 2 \
38         --root=$RPM_BUILD_ROOT
39
40 %py_postclean
41 rm $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.{txt,c}
42 rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests
43 rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc CHANGES.txt src/zope/interface/{README,human}.txt
51 %lang(ru) %doc src/zope/interface/{README,human}.ru.txt
52 %dir %{py_sitedir}/zope/interface
53 %{py_sitedir}/zope/interface/*.cfg
54 %{py_sitedir}/zope/interface/*.py[co]
55 %attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so
56 %{py_sitedir}/zope/interface/common
57 %{py_sitedir}/zope.interface-*.egg-info
58 %{py_sitedir}/zope.interface-*-nspkg.pth
This page took 0.06091 seconds and 4 git commands to generate.