59fc858
%if 0%{?fedora}
59fc858
%global with_python3 1
59fc858
%endif
59fc858
07df10f
%{!?upstream_version: %global upstream_version %{version}}
1656141
%global pypi_name requestsexceptions
1656141
1656141
Name:           python-%{pypi_name}
07df10f
Version:        1.3.0
7890f7e
Release:        3%{?dist}
1656141
Summary:        Import exceptions from potentially bundled packages in requests
1656141
1656141
License:        ASL 2.0
1656141
URL:            http://www.openstack.org/
07df10f
Source0:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
1656141
BuildArch:      noarch
1656141
1656141
%description
1656141
This is a simple library to find the correct path to exceptions in the
1656141
requests library regardless of whether they are bundled.
1656141
1656141
%package -n python2-%{pypi_name}
1656141
Summary:        Import exceptions from potentially bundled packages in requests
1656141
%{?python_provide:%python_provide python2-%{pypi_name}}
1656141
1656141
BuildRequires:  python2-devel
055ba5d
BuildRequires:  python2-pbr
055ba5d
BuildRequires:  python2-setuptools
1656141
1656141
%description -n python2-%{pypi_name}
1656141
This is a simple library to find the correct path to exceptions in the
1656141
requests library regardless of whether they are bundled.
1656141
59fc858
%if 0%{?with_python3}
59fc858
%package -n python3-%{pypi_name}
59fc858
Summary:        Import exceptions from potentially bundled packages in requests
59fc858
%{?python_provide:%python_provide python3-%{pypi_name}}
59fc858
59fc858
BuildRequires:  python3-devel
59fc858
BuildRequires:  python3-pbr
59fc858
59fc858
%description -n python3-%{pypi_name}
59fc858
This is a simple library to find the correct path to exceptions in the
59fc858
requests library regardless of whether they are bundled.
59fc858
%endif
59fc858
1656141
%prep
07df10f
%autosetup -n %{pypi_name}-%{upstream_version}
1656141
1656141
%build
1656141
%py2_build
59fc858
%if 0%{?with_python3}
59fc858
%py3_build
59fc858
%endif
1656141
1656141
%install
1656141
%py2_install
59fc858
%if 0%{?with_python3}
59fc858
%py3_install
59fc858
%endif
1656141
1656141
%files -n python2-%{pypi_name}
1656141
%doc README.rst
1656141
%license LICENSE
1656141
%{python2_sitelib}/%{pypi_name}
1656141
%{python2_sitelib}/*.egg-info
1656141
59fc858
%if 0%{?with_python3}
59fc858
%files -n python3-%{pypi_name}
59fc858
%doc README.rst
59fc858
%license LICENSE
59fc858
%{python3_sitelib}/%{pypi_name}
59fc858
%{python3_sitelib}/*.egg-info
59fc858
%endif
59fc858
1656141
%changelog
7890f7e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
7890f7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7890f7e
055ba5d
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.0-2
055ba5d
- Update Python 2 dependency declarations to new packaging standards
055ba5d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
055ba5d
07df10f
* Fri Aug 11 2017 Alfredo Moralejo <amoralej@redhat.com> 1.3.0-1
07df10f
- Update to 1.3.0
618c14d