]>
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 |
5b273a54 | 4 | Version: 3.5.0 |
1732790f | 5 | Release: 2 |
230df66a | 6 | License: ZPL 2.1 |
7b84e2b8 | 7 | Group: Libraries/Python |
5b273a54 | 8 | Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip |
9 | # Source0-md5: 478d05add7cd7faf25a2fd880a739ddb | |
ccad16eb | 10 | URL: http://www.zope.org/Products/ZopeInterface/ |
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 | |
a7a658cc | 16 | BuildRequires: unzip |
ccad16eb | 17 | %pyrequires_eq python-modules |
4341ba4b | 18 | # set this requirement explicitly, so people know where %py_sitedir/zope |
19 | # can be found | |
20 | Requires: Zope-dirs | |
256ecd95 JB |
21 | Provides: ZopeInterface |
22 | Obsoletes: ZopeInterface | |
ccad16eb | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
230df66a | 26 | Python 'interface' concept implementation. |
ccad16eb | 27 | |
38ab133d | 28 | %description -l pl.UTF-8 |
256ecd95 JB |
29 | Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla |
30 | języka Python. | |
ccad16eb | 31 | |
32 | %prep | |
780a3ae9 | 33 | %setup -q -n zope.interface-%{version} |
ccad16eb | 34 | |
35 | %build | |
44f2928a ER |
36 | export CFLAGS="%{rpmcflags}" |
37 | %{__python} ./setup.py build | |
ccad16eb | 38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
44f2928a | 41 | %{__python} ./setup.py install \ |
ccad16eb | 42 | --optimize 2 \ |
43 | --root=$RPM_BUILD_ROOT | |
44 | ||
256ecd95 | 45 | %py_postclean |
ad267389 JB |
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 | |
ccad16eb | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
ad267389 JB |
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/*.cfg | |
59 | %{py_sitedir}/zope/interface/*.py[co] | |
60 | %attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so | |
61 | %{py_sitedir}/zope/interface/common | |
256ecd95 JB |
62 | %{py_sitedir}/zope.interface-*.egg-info |
63 | %{py_sitedir}/zope.interface-*-nspkg.pth |