From ba5b941d389db8e8e354f16ce62393b48bd2258c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 4 Jan 2019 15:20:15 +0100 Subject: [PATCH] Subpackage python2-httmock has been removed --- python-httmock.spec | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index 63f8d65..bb2c61e 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -12,10 +12,6 @@ Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2dist(requests) >= 1.0.0 -BuildRequires: python2dist(setuptools) - BuildRequires: python3-devel BuildRequires: python3dist(requests) >= 1.0.0 BuildRequires: python3dist(setuptools) @@ -25,16 +21,6 @@ A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. -%package -n python2-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} - -Requires: python2dist(requests) >= 1.0.0 -%description -n python2-%{pypi_name} -A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. - %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} @@ -52,25 +38,14 @@ rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . %build -%py2_build %py3_build %install -# Must do the default python version install last because -# the scripts in /usr/bin are overwritten with every setup.py install. -%py2_install %py3_install %check -%{__python2} setup.py test %{__python3} setup.py test -%files -n python2-%{pypi_name} -%license LICENSE -%doc README.md -%{python2_sitelib}/%{pypi_name}.py* -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info - %files -n python3-%{pypi_name} %license LICENSE %doc README.md @@ -79,6 +54,10 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Fri Jan 04 2019 Miro HronĨok - 1.2.6-4 +- Subpackage python2-httmock has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild