]> git.pld-linux.org Git - packages/Zope-Interface.git/blobdiff - Zope-Interface.spec
- Up to 3.8.0
[packages/Zope-Interface.git] / Zope-Interface.spec
index a55aafa52ff71f8b665a3d41f224b7f0fb7ae1fd..1f151204681c3bd5568be76458bb1f3e0dbd5485 100644 (file)
@@ -1,45 +1,61 @@
-Summary:       zope.interface package used in Zope 3
-Summary(pl.UTF-8):     Moduł interface używany w Zope 3
+Summary:       Python 'interface' concept implementation
+Summary(pl.UTF-8):     Implementacja interfejsów dla języka Python
 Name:          Zope-Interface
-Version:       3.4.0
-Release:       0.1
-License:       ZPL 2.0
-Group:         Development/Tools
-Source0:       http://download.zope.org/distribution/zope.interface-%{version}.tar.gz
-# Source0-md5: 0be9fd80b7bb6bee520e56eba7d29c90
+Version:       3.8.0
+Release:       1
+License:       ZPL 2.1
+Group:         Libraries/Python
+Source0:       http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
+# Source0-md5: 8ab837320b4532774c9c89f030d2a389
 URL:           http://www.zope.org/Products/ZopeInterface/
 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
+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.UTF-8
-Moduł interface używany w Zope 3.
+Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
+języka Python.
 
 %prep
 %setup -q -n zope.interface-%{version}
 
 %build
-python ./setup.py build
+export CFLAGS="%{rpmcflags}"
+%{__python} ./setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-python ./setup.py install \
+%{__python} ./setup.py install \
        --optimize 2 \
        --root=$RPM_BUILD_ROOT
 
-%{py_postclean}
+%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 README.txt
-%{py_sitedir}/zope/interface
-%{py_sitedir}/zope*egg*
-%{py_sitedir}/zope*pth
+%doc CHANGES.txt src/zope/interface/{README,human}.txt
+%lang(ru) %doc src/zope/interface/{README,human}.ru.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.065382 seconds and 5 git commands to generate.