Back port to EPEL7
This commit is contained in:
parent
f759a6beeb
commit
34eae97d04
1 changed files with 7 additions and 28 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.2.6
|
||||
Release: 1%{?dist}
|
||||
Release: 1%{?dist}.1
|
||||
Summary: A mocking library for requests
|
||||
|
||||
License: ASL 2.0
|
||||
|
|
@ -13,12 +13,8 @@ Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/test
|
|||
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)
|
||||
BuildRequires: python2-requests >= 1.0.0
|
||||
BuildRequires: python2-setuptools
|
||||
|
||||
%description
|
||||
A mocking library for requests for Python.
|
||||
|
|
@ -27,24 +23,13 @@ that use requests internally.
|
|||
|
||||
%package -n python2-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
|
||||
Requires: python2dist(requests) >= 1.0.0
|
||||
Requires: python2-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}}
|
||||
|
||||
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
|
||||
that use requests internally.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
# Remove bundled egg-info
|
||||
|
|
@ -53,17 +38,14 @@ 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
|
||||
|
|
@ -71,13 +53,10 @@ cp %{SOURCE1} .
|
|||
%{python2_sitelib}/%{pypi_name}.py*
|
||||
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
%{python3_sitelib}/%{pypi_name}.py
|
||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
|
||||
%changelog
|
||||
* Fri May 11 2018 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-1 1
|
||||
- Back port to EPEL7
|
||||
|
||||
* Fri May 11 2018 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-1
|
||||
- Initial package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue