X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=Zope-Interface.spec;h=9581ce6d1dace3ac9eeec0182ff4d1d66b15c960;hb=f4ebf44280d51933706cb1e045fcd1a43f848c23;hp=87ca9ff4cf493e5cf5593b7d1e5d7fc8aa4d67c3;hpb=a7a658cc6f5a7744a1ce1d40146740914849fddf;p=packages%2FZope-Interface.git diff --git a/Zope-Interface.spec b/Zope-Interface.spec index 87ca9ff..9581ce6 100644 --- a/Zope-Interface.spec +++ b/Zope-Interface.spec @@ -1,22 +1,20 @@ Summary: Python 'interface' concept implementation Summary(pl.UTF-8): Implementacja interfejsów dla języka Python Name: Zope-Interface -Version: 3.5.0 +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}.zip -# Source0-md5: 478d05add7cd7faf25a2fd880a739ddb -URL: http://www.zope.org/Products/ZopeInterface/ +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 BuildRequires: python-setuptools BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.219 -BuildRequires: unzip -%pyrequires_eq python-modules -# set this requirement explicitly, so people know where %py_sitedir/zope -# can be found +Requires: python-modules +# set this requirement explicitly, so people know where %py_sitedir/zope can be found Requires: Zope-dirs Provides: ZopeInterface Obsoletes: ZopeInterface @@ -33,29 +31,25 @@ 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/*.{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 CHANGES.txt src/zope/interface/{README,human}.txt -%lang(ru) %doc src/zope/interface/{README,human}.ru.txt +%doc CHANGES.txt %dir %{py_sitedir}/zope/interface -%{py_sitedir}/zope/interface/*.cfg %{py_sitedir}/zope/interface/*.py[co] %attr(755,root,root) %{py_sitedir}/zope/interface/_zope_interface_coptimizations.so %{py_sitedir}/zope/interface/common