]> 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 1de96468e3f464c9fffc950a9072e516d1ab9fdd..6662b5f5bf5e38e642ca615fefa4c19683a3440e 100644 (file)
@@ -1,21 +1,20 @@
 Summary:       Python 'interface' concept implementation
 Summary(pl.UTF-8):     Implementacja interfejsów dla języka Python
 Name:          Zope-Interface
-Version:       4.0.1
-Release:       1
+Version:       4.0.3
+Release:       2
 License:       ZPL 2.1
 Group:         Libraries/Python
 Source0:       http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
-# Source0-md5: d171f8f8a6997409c7680f1dbb3b7e45
-URL:           http://www.zope.org/Products/ZopeInterface/
+# Source0-md5: 1ddd308f2c83703accd1696158c300eb
+URL:           http://docs.zope.org/zope.interface/
 BuildRequires: python
 BuildRequires: python-devel
 BuildRequires: python-setuptools
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
-%pyrequires_eq python-modules
-# set this requirement explicitly, so people know where %py_sitedir/zope
-# can be found
+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
@@ -32,19 +31,17 @@ języka Python.
 %setup -q -n zope.interface-%{version}
 
 %build
-export CFLAGS="%{rpmcflags}"
-%{__python} ./setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} ./setup.py install \
-       --optimize 2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
+
+%{__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
-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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.041829 seconds and 4 git commands to generate.