%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} Name: python-zope-interface Version: 3.0.1 Release: 4%{?dist} Summary: Zope interfaces package Group: Development/Libraries License: ZPL 2.1 URL: http://zope.org/Products/ZopeInterface Source0: http://zope.org/Products/ZopeInterface/3.0.1final/ZopeInterface-%{version}.tgz Patch0: ZopeInterface-3.0.1-declbug.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel %if "%{pybasever}" == "2.3" Requires: python-abi = 2.3 %endif %description This is a separate distribution of the zope.interface package used in Zope 3. %prep %setup -n ZopeInterface-%{version} -q %patch0 -p1 %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt %dir %{python_sitearch}/zope/ %{python_sitearch}/zope/*.cfg %{python_sitearch}/zope/*.txt %{python_sitearch}/zope/*.py %{python_sitearch}/zope/*.pyc %ghost %{python_sitearch}/zope/*.pyo %dir %{python_sitearch}/zope/interface/ %{python_sitearch}/zope/interface/*.cfg %{python_sitearch}/zope/interface/*.txt %{python_sitearch}/zope/interface/*.py %{python_sitearch}/zope/interface/*.pyc %{python_sitearch}/zope/interface/*.so %ghost %{python_sitearch}/zope/interface/*.pyo %dir %{python_sitearch}/zope/interface/common/ %{python_sitearch}/zope/interface/common/*.py %{python_sitearch}/zope/interface/common/*.pyc %ghost %{python_sitearch}/zope/interface/common/*.pyo %dir %{python_sitearch}/zope/interface/common/tests/ %{python_sitearch}/zope/interface/common/tests/*.py %{python_sitearch}/zope/interface/common/tests/*.pyc %ghost %{python_sitearch}/zope/interface/common/tests/*.pyo %dir %{python_sitearch}/zope/interface/tests/ %{python_sitearch}/zope/interface/tests/*.txt %{python_sitearch}/zope/interface/tests/*.py %{python_sitearch}/zope/interface/tests/*.pyc %ghost %{python_sitearch}/zope/interface/tests/*.pyo %dir %{python_sitearch}/zope/testing/ %{python_sitearch}/zope/testing/*.py %{python_sitearch}/zope/testing/*.pyc %ghost %{python_sitearch}/zope/testing/*.pyo %changelog * Wed Jun 07 2006 Thomas Vander Stichele - 3.0.1-4 - cosmetic changes. Let's hope the "rm" binary never gets renamed. * Tue May 9 2006 Paul Howarth 3.0.1-3 - import from PyVault Repository - rewrite in Fedora Extras style * Tue Aug 23 2005 Jeff Pitman 3.0.1-2 - add bug fix for gcc 4 * Mon Feb 07 2005 Jeff Pitman 3.0.1-1 - new rpm