diff --git a/python-mock.spec b/python-mock.spec index e3a56ceed0cdd9815ec7f784d95d3e794ed0cb58..d045b358296e4fd9bdc7edfd6914764dba99cb2f 100644 --- a/python-mock.spec +++ b/python-mock.spec @@ -7,28 +7,18 @@ needed attributes in the normal way. \ Name: python-mock Version: 3.0.5 -Release: 2 +Release: 3 Summary: A Python Mocking and Patching Library for Testing License: BSD URL: http://www.voidspace.org.uk/python/mock/ Source0: https://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2-setuptools python2-funcsigs python2-pbr git python2-unittest2 BuildRequires: python3-devel python3-setuptools python3-funcsigs python3-pbr python3-unittest2 %description %{_description__} -%package -n python2-mock -Summary: Python2 subpackage for %{name} -%{?python_provide:%python_provide python2-mock} -Requires: python2-funcsigs python2-pbr python2-six >= 1.9.0 - -%description -n python2-mock -This is the python2 subpackage for %{name}. -%{_description__} - %package -n python3-mock Summary: Python3 subpackage for %{name} %{?python_provide:%python_provide python3-mock} @@ -42,26 +32,22 @@ This is the python3 subpackage for %{name}. %autosetup -n mock-%{version} -p1 %build -%{py2_build} %{py3_build} %check -%{__python2} setup.py test %{__python3} setup.py test ||: %install %{py3_install} -%{py2_install} - -%files -n python2-mock -%license LICENSE.txt -%{python2_sitelib}/{*.egg-info,mock} %files -n python3-mock %license LICENSE.txt %{python3_sitelib}/{*.egg-info,mock} %changelog +* Thur Jan 27 2022 huangtianhua - 3.0.5-3 +- Remove python2 support + * Thu Sep 29 2020 liuweibo - 3.0.5-2 - Fix Source0