|
|
|
@ -4,11 +4,13 @@
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 12
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%{!?py3ver: %global py3ver %(%{?__python3} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-zope-interface
|
|
|
|
|
Version: 4.0.4
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 4.0.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Zope 3 Interface Infrastructure
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
@ -16,6 +18,7 @@ URL: http://pypi.python.org/pypi/zope.interface
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
BuildRequires: python-nose
|
|
|
|
|
BuildRequires: python-zope-event
|
|
|
|
|
# since F14
|
|
|
|
|
Obsoletes: python-zope-filesystem <= 1-8
|
|
|
|
@ -23,6 +26,7 @@ Obsoletes: python-zope-filesystem <= 1-8
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
|
BuildRequires: python3-zope-event
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -93,11 +97,11 @@ popd
|
|
|
|
|
%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-%{py3ver}
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -125,6 +129,10 @@ popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Apr 11 2013 Luke Macken <lmacken@redhat.com> - 4.0.5-1
|
|
|
|
|
- Update to 4.0.5 (#891046)
|
|
|
|
|
- Run the unit tests with nose
|
|
|
|
|
|
|
|
|
|
* Tue Mar 26 2013 David Malcolm <dmalcolm@redhat.com> - 4.0.4-2
|
|
|
|
|
- remove rhel clause from python3 guard
|
|
|
|
|
|
|
|
|
|