Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Troy Dawson
d74a697357 remove package.cfg per new epel-playground policy 2020-09-24 18:53:37 +00:00
Steve Traylen
b8ad659025 Adapt to epel8 2019-11-15 10:34:30 +01:00
Steve Traylen
c4796a6927 Merge branch 'master' into epel8 2019-11-15 10:26:38 +01:00
Gwyn Ciesla
06cd561c35 "Adding package.cfg file" 2019-11-13 08:21:58 -06:00

View file

@ -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 <steve.traylen@cern.ch> - 1.3.0-2
- Adapt to epel8
* Wed Nov 13 2019 Steve Traylen <steve.traylen@cern.ch> - 1.3.0-1
- Update to 1.3.0