X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=Zope-Interface.spec;h=9581ce6d1dace3ac9eeec0182ff4d1d66b15c960;hb=f4ebf44280d51933706cb1e045fcd1a43f848c23;hp=bd9e054aa1cae919096833ee6a5532c09cc5d360;hpb=dd899f184ff8a965ce84f1bc53e7f00377d43de6;p=packages%2Fpython-zope.interface.git diff --git a/Zope-Interface.spec b/Zope-Interface.spec index bd9e054..9581ce6 100644 --- a/Zope-Interface.spec +++ b/Zope-Interface.spec @@ -1,65 +1,57 @@ -Summary: zope.interface package used in Zope 3 -Summary(pl): Modu³ interface u¿ywany w Zope 3 -Name: ZopeInterface -Version: 3.0.1 -Release: 3 -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 -URL: http://www.zope.org/Products/ZopeInterface/ +Summary: Python 'interface' concept implementation +Summary(pl.UTF-8): Implementacja interfejsów dla języka Python +Name: Zope-Interface +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: 1ddd308f2c83703accd1696158c300eb +URL: http://docs.zope.org/zope.interface/ BuildRequires: python BuildRequires: python-devel -%pyrequires_eq python-modules +BuildRequires: python-setuptools +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.219 +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 -zope.interface package used in Zope 3. +Python 'interface' concept implementation. -%description -l pl -Modu³ interface u¿ywany w Zope 3. +%description -l pl.UTF-8 +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 +%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_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 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc README.txt -%{py_sitedir}/zope/*.cfg -%dir %{py_sitedir}/zope -%{py_sitedir}/zope/*.py[co] +%doc CHANGES.txt %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] +%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