diff --git a/python-httmock.spec b/python-httmock.spec index 4de895e..04de4a9 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -30,6 +30,19 @@ 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}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2dist(requests) >= 1 + +%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. + + %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info @@ -37,12 +50,15 @@ rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . %build +%py2_build %py3_build %install +%py2_install %py3_install %check +%{__python2} setup.py test %{__python3} setup.py test %files -n python3-%{pypi_name} @@ -52,7 +68,17 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%files -n python2-%{pypi_name} +%license LICENSE +%doc README.md +%{python2_sitelib}/%{pypi_name}.py* +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + + %changelog +* Fri Nov 15 2019 Steve Traylen - 1.3.0-2 +- Adapt to epel8 + * Wed Nov 13 2019 Steve Traylen - 1.3.0-1 - Update to 1.3.0