diff --git a/.python-zope-interface.metadata b/.python-zope-interface.metadata index bae1cdf..78e5770 100644 --- a/.python-zope-interface.metadata +++ b/.python-zope-interface.metadata @@ -1 +1 @@ -0a626c371a3321c196dd6e8687859cb0524c854b SOURCES/zope.interface-4.0.5.zip +575ecb0dd1faae2294b8e2ec7b5ccb22006c4ccc SOURCES/zope.interface-5.4.0.tar.gz diff --git a/SPECS/python-zope-interface.spec b/SPECS/python-zope-interface.spec index c2c09bc..73d3425 100644 --- a/SPECS/python-zope-interface.spec +++ b/SPECS/python-zope-interface.spec @@ -1,32 +1,12 @@ -# Filter private shared library provides -%filter_provides_in %{python_sitearch}/zope/interface/.*\.so$ -%filter_setup - -%if 0%{?fedora} > 12 -%global with_python3 1 -%{!?py3ver: %global py3ver %(%{?__python3} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)} -%endif - +%global debug_package %{nil} Name: python-zope-interface -Version: 4.0.5 -Release: 4%{?dist} +Version: 5.4.0 +Release: 1%{?dist} Summary: Zope 3 Interface Infrastructure -Group: Development/Libraries License: ZPLv2.1 -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 -# since F14 -Obsoletes: python-zope-filesystem <= 1-8 - -%if 0%{?with_python3} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-nose -%endif +URL: https://pypi.io/project/zope.interface +Source0: https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz %description Interfaces are a mechanism for labeling objects as conforming to a given API @@ -34,84 +14,47 @@ or contract. This is a separate distribution of the zope.interface package used in Zope 3. -%if 0%{?with_python3} %package -n python3-zope-interface Summary: Zope 3 Interface Infrastructure -Group: Development/Libraries +%{?python_provide:%python_provide python3-zope-interface} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-zope-event +BuildRequires: python3-zope-testing + +Requires: python3-zope-event %description -n python3-zope-interface Interfaces are a mechanism for labeling objects as conforming to a given API or contract. This is a separate distribution of the zope.interface package used in Zope 3. -%endif %prep %setup -n zope.interface-%{version} -q - rm -rf %{modname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif - %build -CFLAGS="%{optflags}" %{__python} setup.py build - -%if 0%{?with_python3} -pushd %{py3dir} -CFLAGS="%{optflags}" %{__python3} setup.py build -popd -%endif - +%py3_build %install -# python3 block -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install -O1 --skip-build --root %{buildroot} - +%py3_install # Will put docs in %%{_docdir} instead -%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt - +%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/*.txt # C files don't need to be packaged %{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c -popd -%endif - -# do it again for python2 -%{__python} setup.py install -O1 --skip-build --root %{buildroot} - -# Will put docs in %%{_docdir} instead -%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/{,tests/}*.txt - -# C files don't need to be packaged -%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c %check -PYTHONPATH=$(pwd) nosetests - -%if 0%{?with_python3} -pushd %{py3dir} -PYTHONPATH=$(pwd) nosetests-%{py3ver} +# We have to run tests installed together with the package +# https://github.com/zopefoundation/zope.interface/issues/196 +pushd %{buildroot}%{python3_sitearch} +PURE_PYTHON=1 python3 -m unittest discover -s zope/interface -t . popd -%endif - -%files -%defattr(-,root,root,-) -%doc README.rst LICENSE.txt CHANGES.rst COPYRIGHT.txt docs/ -%{python_sitearch}/zope/interface/ -# Co-own %%{python_sitearch}/zope/ -%dir %{python_sitearch}/zope/ -%exclude %{python_sitearch}/zope/interface/tests/ -%exclude %{python_sitearch}/zope/interface/common/tests/ -%{python_sitearch}/zope.interface-*.egg-info -%{python_sitearch}/zope.interface-*-nspkg.pth - -%if 0%{?with_python3} + %files -n python3-zope-interface -%doc README.rst LICENSE.txt CHANGES.rst COPYRIGHT.txt docs/ +%doc README.rst CHANGES.rst COPYRIGHT.txt docs/ +%license LICENSE.txt %{python3_sitearch}/zope/interface/ # Co-own %%{python3_sitearch}/zope/ %dir %{python3_sitearch}/zope/ @@ -119,17 +62,144 @@ popd %exclude %{python3_sitearch}/zope/interface/common/tests/ %{python3_sitearch}/zope.interface-*.egg-info %{python3_sitearch}/zope.interface-*-nspkg.pth -%endif %changelog -* Fri Jan 24 2014 Daniel Mach - 4.0.5-4 -- Mass rebuild 2014-01-24 +* Thu Apr 29 2021 Lumír Balhar - 5.4.0-1 +- Update to 5.4.0 (#1949876) + +* Wed Jan 27 2021 Fedora Release Engineering - 5.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 19 2020 Lumír Balhar - 5.2.0-1 +- Update to 5.2.0 (#1894930) + +* Fri Oct 02 2020 Lumír Balhar - 5.1.2-1 +- Update to 5.1.2 (#1883998) + +* Wed Jul 29 2020 Fedora Release Engineering - 5.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 5.1.0-2 +- Rebuilt for Python 3.9 + +* Thu Apr 09 2020 Lumír Balhar - 5.1.0-1 +- Update to 5.1.0 (#1822171) + +* Fri Mar 20 2020 Lumír Balhar - 5.0.2-1 +- Update to 5.0.2 (#1815086) + +* Thu Jan 30 2020 Fedora Release Engineering - 4.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Nov 19 2019 Lumír Balhar - 4.7.1-1 +- Update to 4.7.1 (#1771185) + +* Fri Oct 25 2019 Lumír Balhar - 4.6.0-5 +- Python 2 subpackage removed + +* Thu Oct 03 2019 Miro Hrončok - 4.6.0-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 4.6.0-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 4.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Feb 05 2019 Lumír Balhar - 4.6.0-1 +- New upstream version + +* Sat Feb 02 2019 Fedora Release Engineering - 4.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 4.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jul 11 2018 Lumír Balhar - 4.5.0-1 +- New upstream version +- Specfile cleanup + +* Sun Jun 17 2018 Miro Hrončok - 4.4.3-2 +- Rebuilt for Python 3.7 + +* Tue Feb 06 2018 Lumír Balhar - 4.4.3-1 +- New upstream release + +* Fri Sep 29 2017 Troy Dawson - 4.3.3-7 +- Cleanup spec file conditionals + +* Thu Aug 03 2017 Fedora Release Engineering - 4.3.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 4.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jul 07 2017 Igor Gnatenko - 4.3.3-4 +- Rebuild due to bug in RPM (RHBZ #1468476) + +* Sat Feb 11 2017 Fedora Release Engineering - 4.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Dec 21 2016 Jerry James - 4.3.3-2 +- Rebuild for Python 3.6 again + +* Wed Dec 14 2016 Ralph Bean - 4.3.3-1 +- new version + +* Mon Dec 12 2016 Stratakis Charalampos - 4.3.2-2 +- Rebuild for Python 3.6 + +* Tue Sep 27 2016 Ralph Bean - 4.3.2-1 +- new version + +* Tue Jul 19 2016 Fedora Release Engineering - 4.2.0-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue Jun 28 2016 Ralph Bean - 4.2.0-1 +- new version + +* Tue Jun 28 2016 Ralph Bean - 4.1.3-5 +- Modernize python macros. +- Provide an explicit python2 subpackage. + +* Thu Feb 04 2016 Fedora Release Engineering - 4.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jan 28 2016 Dan Horák - 4.1.3-3 +- make Python3 support more modular + +* Wed Nov 04 2015 Matej Stuchlik - 4.1.3-2 +- Rebuilt for Python 3.5 + +* Mon Oct 05 2015 Ralph Bean - 4.1.3-1 +- new version + +* Thu Jun 18 2015 Fedora Release Engineering - 4.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Feb 18 2015 Ralph Bean - 4.1.2-1 +- new version + +* Wed Aug 20 2014 Ralph Bean - 4.1.1-1 +- Latest upstream. +- Modernized python macros. + +* Sun Aug 17 2014 Fedora Release Engineering - 4.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 4.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 14 2014 Bohuslav Kabrda - 4.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 -* Fri Dec 27 2013 Daniel Mach - 4.0.5-3 -- Mass rebuild 2013-12-27 +* Wed Feb 12 2014 Ralph Bean - 4.1.0-1 +- Latest upstream. +- Change .zip back to .tar.gz. +- Drop fedora 12 conditional. -* Fri May 17 2013 Bohuslav Kabrda - 4.0.5-2 -- Remove the python-zope-event soft dependency. +* Sun Aug 04 2013 Fedora Release Engineering - 4.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Apr 11 2013 Luke Macken - 4.0.5-1 - Update to 4.0.5 (#891046)