Enable python dependency generator

References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-01-04 21:47:37 +01:00
commit a651d52507
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -1,9 +1,10 @@
%{?python_enable_dependency_generator}
# Created by pyp2rpm-3.3.0
%global pypi_name httmock
Name: python-%{pypi_name}
Version: 1.2.6
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A mocking library for requests
License: ASL 2.0
@ -12,10 +13,6 @@ Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock
Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(requests) >= 1.0.0
BuildRequires: python3dist(setuptools)
%description
A mocking library for requests for Python.
You can use it to mock third-party APIs and test libraries
@ -24,8 +21,10 @@ that use requests internally.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3dist(requests) >= 1.0.0
Requires: python3dist(requests) >= 1.0.0
%description -n python3-%{pypi_name}
A mocking library for requests for Python.
You can use it to mock third-party APIs and test libraries
@ -54,6 +53,9 @@ cp %{SOURCE1} .
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Fri Jan 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.6-5
- Enable python dependency generator
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.6-4
- Subpackage python2-httmock has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal