You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-zope-interface/python-zope-interface.spec

75 lines
2.2 KiB

%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: python-zope-interface
Version: 3.0.1
Release: 8%{?dist}
Summary: Zope interfaces package
Group: Development/Libraries
License: ZPLv2.1
URL: http://zope.org/Products/ZopeInterface
Source0: http://zope.org/Products/ZopeInterface/3.0.1final/ZopeInterface-%{version}.tgz
Source1: ZPL-2.1.txt
Patch0: ZopeInterface-3.0.1-declbug.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
%description
This is a separate distribution of the zope.interface package used in Zope 3.
It includes a patch to fix compilation on gcc 4.x, as described here:
http://www.zope.org/Collectors/Zope3-dev/366/
%prep
%setup -n ZopeInterface-%{version} -q
%{__cp} -a %{SOURCE1} .
%patch0 -p1
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%check
cd ./build/lib.* && PYTHONPATH=$(pwd) %{__python} ./zope/testing/tests.py
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.txt ZPL-2.1.txt
%{python_sitearch}/zope/
%changelog
* Wed Aug 29 2007 Paul Howarth <paul@city-fan.org> 3.0.1-8
- update license tag to ZPLv2.1 in anticipation of this tag being approved
* Sat Dec 9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-7
- rebuild against python 2.5 for Rawhide
* Tue Oct 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-6
- add %%check section
* Wed Sep 20 2006 Paul Howarth <paul@city-fan.org> 3.0.1-5
- dispense with %%{pybasever} macro and python-abi dependency, not needed from
FC4 onwards
- include ZPL 2.1 license text
- add reference in %%description to origin of patch
- change License: tag from "ZPL 2.1" to "Zope Public License" to shut rpmlint up
* Thu Aug 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-4
- files list simplified as .pyo files are no longer %%ghost-ed
* Tue May 9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-3
- import from PyVault Repository
- rewrite in Fedora Extras style
* Tue Aug 23 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-2
- add bug fix for gcc 4
* Mon Feb 07 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-1
- new rpm