diff --git a/python-zope-interface.spec b/python-zope-interface.spec index e172e29bf8855475c02685c5da6d661919eef284..d4e51e8b9d73b21ba33ef81c3cf88c604c7c9f6a 100644 --- a/python-zope-interface.spec +++ b/python-zope-interface.spec @@ -1,14 +1,11 @@ -%global with_python2 1 -%global with_python3 1 - Name: python-zope-interface -Version: 4.5.0 -Release: 3 +Version: 4.7.2 +Release: 1 Summary: Zope 3 Interface Infrastructure Group: Development/Libraries License: ZPLv2.1 -URL: https://pypi.io/project/zope.interface -Source0: https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz +URL: https://pypi.org/project/zope.interface +Source0: https://files.pythonhosted.org/packages/f8/44/8531e65de6fde76e6055f5ce93e8a482dff534cea9bebcac7845e2273efd/zope.interface-%{version}.tar.gz %description Interfaces are a mechanism for labeling objects as conforming to a given API @@ -16,23 +13,6 @@ or contract. This is a separate distribution of the zope.interface package used in Zope 3. -%if 0%{?with_python2} -%package -n python2-zope-interface -Summary: Zope 3 Interface Infrastructure -%{?python_provide:%python_provide python2-zope-interface} - -BuildRequires: gcc python2-devel python2-setuptools python2-nose python2-zope-event -Requires: python2-zope-event -Obsoletes: python-zope-filesystem <= 1-8 - -%description -n python2-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 - -%if 0%{?with_python3} %package -n python3-zope-interface Summary: Zope 3 Interface Infrastructure %{?python_provide:%python_provide python3-zope-interface} @@ -45,68 +25,36 @@ 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 %autosetup -n zope.interface-%{version} rm -rf %{modname}.egg-info %build -%if 0%{?with_python2} -%py2_build -%endif - -%if 0%{?with_python3} %py3_build -%endif %install -%if 0%{?with_python2} -%py2_install -%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/{,tests/}*.txt -%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/_zope_interface_coptimizations.c -%endif - -%if 0%{?with_python3} %py3_install %{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt %{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c -%endif %check -%if 0%{?with_python3} -PYTHONPATH=$(pwd) nosetests-2 -%endif - -%if 0%{?with_python3} PYTHONPATH=$(pwd) nosetests-3 -%endif -%if 0%{?with_python2} -%files -n python2-zope-interface -%doc README.rst CHANGES.rst COPYRIGHT.txt docs/ -%license LICENSE.txt -%{python2_sitearch}/zope/interface/ -%dir %{python2_sitearch}/zope/ -%exclude %{python2_sitearch}/zope/interface/tests/ -%exclude %{python2_sitearch}/zope/interface/common/tests/ -%{python2_sitearch}/zope.interface-*.egg-info -%{python2_sitearch}/zope.interface-*-nspkg.pth -%endif -%if 0%{?with_python3} %files -n python3-zope-interface %doc README.rst CHANGES.rst COPYRIGHT.txt docs/ %license LICENSE.txt %{python3_sitearch}/zope/interface/ -# Co-own %%{python3_sitearch}/zope/ %dir %{python3_sitearch}/zope/ %exclude %{python3_sitearch}/zope/interface/tests/ %exclude %{python3_sitearch}/zope/interface/common/tests/ %{python3_sitearch}/zope.interface-*.egg-info %{python3_sitearch}/zope.interface-*-nspkg.pth -%endif %changelog +* Wed Aug 5 2020 zhangjiapeng - 4.7.2-1 +- Upgrade to 4.7.2 to remove deprecated use of setuptools features + * Wed Feb 12 2020 openEuler Buildteam - 4.5.0-3 - Package init diff --git a/zope.interface-4.5.0.tar.gz b/zope.interface-4.5.0.tar.gz deleted file mode 100644 index 9ee417af71c7b47b3c47874f4fb2d3c296d09822..0000000000000000000000000000000000000000 Binary files a/zope.interface-4.5.0.tar.gz and /dev/null differ diff --git a/zope.interface-4.7.2.tar.gz b/zope.interface-4.7.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6df60226387cb8dab2b021a681f7c745896a6229 Binary files /dev/null and b/zope.interface-4.7.2.tar.gz differ