]> git.pld-linux.org Git - packages/python-zope.interface.git/blame - Zope-Interface.spec
- BR: unzip
[packages/python-zope.interface.git] / Zope-Interface.spec
CommitLineData
230df66a 1Summary: Python 'interface' concept implementation
2Summary(pl.UTF-8): Implementacja interfejsów dla języka Python
780a3ae9 3Name: Zope-Interface
5b273a54 4Version: 3.5.0
1732790f 5Release: 2
230df66a 6License: ZPL 2.1
7b84e2b8 7Group: Libraries/Python
5b273a54 8Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip
9# Source0-md5: 478d05add7cd7faf25a2fd880a739ddb
ccad16eb 10URL: http://www.zope.org/Products/ZopeInterface/
44f2928a
ER
11BuildRequires: python
12BuildRequires: python-devel
037cfed9 13BuildRequires: python-setuptools
256ecd95
JB
14BuildRequires: rpm-pythonprov
15BuildRequires: rpmbuild(macros) >= 1.219
a7a658cc 16BuildRequires: unzip
ccad16eb 17%pyrequires_eq python-modules
4341ba4b 18# set this requirement explicitly, so people know where %py_sitedir/zope
19# can be found
20Requires: Zope-dirs
256ecd95
JB
21Provides: ZopeInterface
22Obsoletes: ZopeInterface
ccad16eb 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
230df66a 26Python 'interface' concept implementation.
ccad16eb 27
38ab133d 28%description -l pl.UTF-8
256ecd95
JB
29Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
30języka Python.
ccad16eb 31
32%prep
780a3ae9 33%setup -q -n zope.interface-%{version}
ccad16eb 34
35%build
44f2928a
ER
36export CFLAGS="%{rpmcflags}"
37%{__python} ./setup.py build
ccad16eb 38
39%install
40rm -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
46rm $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.{txt,c}
47rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests
48rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests
ccad16eb 49
50%clean
51rm -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
This page took 0.121784 seconds and 4 git commands to generate.