X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython-zope.interface.git;a=blobdiff_plain;f=Zope-Interface.spec;h=7d32da2145e194547c4b49418bcd1e1629bb1209;hp=0ba2d2585f8149cd69ece78604fb06d4aa4c5d94;hb=329c3be;hpb=037cfed922d4c8739ac67b2c90b6381ca2106515;ds=sidebyside diff --git a/Zope-Interface.spec b/Zope-Interface.spec index 0ba2d25..7d32da2 100644 --- a/Zope-Interface.spec +++ b/Zope-Interface.spec @@ -1,19 +1,21 @@ Summary: Python 'interface' concept implementation Summary(pl.UTF-8): Implementacja interfejsów dla języka Python Name: Zope-Interface -Version: 3.4.0 +Version: 4.0.3 Release: 1 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 >= 1:2.5 -BuildRequires: python-devel >= 1:2.5 +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 -%pyrequires_eq python-modules +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) @@ -29,29 +31,30 @@ języka Python. %setup -q -n zope.interface-%{version} %build -python ./setup.py build +CC="%{__cc}" \ +CFLAGS="%{rpmcflags}" \ +%{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT - -python ./setup.py install \ - --optimize 2 \ +%{__python} setup.py install \ + --skip-build \ + --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 -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