]> git.pld-linux.org Git - packages/python-zope.interface.git/blobdiff - Zope-Interface.spec
BR: rpmbuild(macros) >= 1.710
[packages/python-zope.interface.git] / Zope-Interface.spec
index c92c5927b9a419cbce3e378348eb3ff4cb073359..6662b5f5bf5e38e642ca615fefa4c19683a3440e 100644 (file)
@@ -1,47 +1,57 @@
 Summary:       Python 'interface' concept implementation
 Summary(pl.UTF-8):     Implementacja interfejsów dla języka Python
 Name:          Zope-Interface
-Version:       3.4.0
-Release:       1
+Version:       4.0.3
+Release:       2
 License:       ZPL 2.1
-Group:         Python/Libraries
-Source0:       http://download.zope.org/distribution/zope.interface-%{version}.tar.gz
-# Source0-md5: 0be9fd80b7bb6bee520e56eba7d29c90
-URL:           http://www.zope.org/Products/ZopeInterface/
+Group:         Libraries/Python
+Source0:       http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
+# Source0-md5: 1ddd308f2c83703accd1696158c300eb
+URL:           http://docs.zope.org/zope.interface/
 BuildRequires: python
 BuildRequires: python-devel
-%pyrequires_eq python-modules
-Provides:              ZopeInterface
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.710
+Requires:      python-modules
+# set this requirement explicitly, so people know where %py_sitedir/zope can be found
+Requires:      Zope-dirs
+Provides:      ZopeInterface
+Obsoletes:     ZopeInterface
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Python 'interface' concept implementation.
 
 %description -l pl.UTF-8
-Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla języka
-Python.
+Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
+języka Python.
 
 %prep
 %setup -q -n zope.interface-%{version}
 
 %build
-python ./setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
+%py_install
 
-python ./setup.py install \
-       --optimize 2 \
-       --root=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/*.c
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/common/tests
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/interface/tests
 
-%{py_postclean}
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.txt
-%{py_sitedir}/zope/interface
-%{py_sitedir}/zope*egg*
-%{py_sitedir}/zope*pth
+%doc CHANGES.txt
+%dir %{py_sitedir}/zope/interface
+%{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.038359 seconds and 4 git commands to generate.