|
|
|
@ -8,19 +8,13 @@
|
|
|
|
|
%filter_provides_in %{python2_sitearch}/zope/interface/.*\.so$
|
|
|
|
|
%filter_setup
|
|
|
|
|
|
|
|
|
|
%{!?py2ver: %global py2ver %(%{?__python2} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)}
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%{!?py3ver: %global py3ver %(%{?__python3} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-zope-interface
|
|
|
|
|
Version: 4.4.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 4.5.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Zope 3 Interface Infrastructure
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
@ -110,9 +104,9 @@ rm -rf %{modname}.egg-info
|
|
|
|
|
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-%{py2ver}
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-2
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-%{py3ver}
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python2-zope-interface
|
|
|
|
@ -140,6 +134,10 @@ PYTHONPATH=$(pwd) nosetests-%{py3ver}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jul 11 2018 Lumír Balhar <lbalhar@redhat.com> - 4.5.0-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Specfile cleanup
|
|
|
|
|
|
|
|
|
|
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.4.3-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|