]> git.pld-linux.org Git - packages/python-zope.interface.git/blobdiff - Zope-Interface.spec
- release 3
[packages/python-zope.interface.git] / Zope-Interface.spec
index 2510c76b725308a6d090ae01700503522e97fbf0..055661d8a25ef5040b01990dcbabe08366a95141 100644 (file)
@@ -1,28 +1,32 @@
-Summary:       zope.interface package used in Zope 3
-Summary(pl.UTF-8):     Moduł interface używany w Zope 3
-Name:          ZopeInterface
-Version:       3.0.1
-Release:       5
-License:       ZPL 2.0
-Group:         Development/Tools
-Source0:       http://www.zope.org/Products/ZopeInterface/%{version}final/%{name}-%{version}.tgz
-# Source0-md5: 114f302c2b132d43ad4e01d108b4d192
-Patch0:                %{name}-build.patch
+Summary:       Python 'interface' concept implementation
+Summary(pl.UTF-8):     Implementacja interfejsów dla języka Python
+Name:          Zope-Interface
+Version:       3.4.0
+Release:       3
+License:       ZPL 2.1
+Group:         Libraries/Python
+Source0:       http://download.zope.org/distribution/zope.interface-%{version}.tar.gz
+# Source0-md5: 0be9fd80b7bb6bee520e56eba7d29c90
 URL:           http://www.zope.org/Products/ZopeInterface/
-BuildRequires: python
-BuildRequires: python-devel
+BuildRequires: python >= 1:2.5
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
 %pyrequires_eq python-modules
+Provides:      ZopeInterface
+Obsoletes:     ZopeInterface
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-zope.interface package used in Zope 3.
+Python 'interface' concept implementation.
 
 %description -l pl.UTF-8
-Moduł interface używany w Zope 3.
+Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
+języka Python.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n zope.interface-%{version}
 
 %build
 python ./setup.py build
@@ -34,32 +38,23 @@ python ./setup.py install \
        --optimize 2 \
        --root=$RPM_BUILD_ROOT
 
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}/zope
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/zope
-
-find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
-rm -rf $RPM_BUILD_ROOT%{py_sitedir}/zope/README.txt
+%py_postclean
+rm $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.{txt,c}
+rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests
+rm -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.txt
-%{py_sitedir}/zope/*.cfg
+%doc CHANGES.txt src/zope/interface/{README,human}.txt
+%lang(ru) %doc src/zope/interface/{README,human}.ru.txt
 %dir %{py_sitedir}/zope
-%{py_sitedir}/zope/*.py[co]
 %dir %{py_sitedir}/zope/interface
-%{py_sitedir}/zope/interface/*.py[co]
 %{py_sitedir}/zope/interface/*.cfg
-%{py_sitedir}/zope/interface/*.so
-%{py_sitedir}/zope/interface/*.txt
-%dir %{py_sitedir}/zope/interface/common
-%{py_sitedir}/zope/interface/common/*.py[co]
-%dir %{py_sitedir}/zope/interface/common/tests
-%{py_sitedir}/zope/interface/common/tests/*.py[co]
-%dir %{py_sitedir}/zope/interface/tests
-%{py_sitedir}/zope/interface/tests/*.py[co]
-%{py_sitedir}/zope/interface/tests/*.txt
-%dir %{py_sitedir}/zope/testing
-%{py_sitedir}/zope/testing/*.py[co]
+%{py_sitedir}/zope/interface/*.py[co]
+%attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so
+%{py_sitedir}/zope/interface/common
+%{py_sitedir}/zope.interface-*.egg-info
+%{py_sitedir}/zope.interface-*-nspkg.pth
This page took 0.095117 seconds and 4 git commands to generate.