40f98b1
%global upstream_name aiohttp-negotiate
40f98b1
%global modname aiohttp_negotiate
40f98b1
40f98b1
Name:           python-%{upstream_name}
40f98b1
Version:        0.11
40f98b1
Release:        1%{?dist}
40f98b1
Summary:        Add-on for Python aiohttp library to support Negotiate authentication
40f98b1
License:        BSD
40f98b1
URL:            https://github.com/ox-it/aiohttp-negotiate
40f98b1
Source0:        https://github.com/ox-it/%{upstream_name}/archive/%{version}.tar.gz#/%{upstream_name}-%{version}.tar.gz
40f98b1
# https://github.com/ox-it/aiohttp-negotiate/pull/1
40f98b1
Source1:        https://raw.githubusercontent.com/danc86/aiohttp-negotiate/350ac51ba0ab0b871d39c975af27d027e35f514e/LICENSE
40f98b1
BuildArch:      noarch
40f98b1
40f98b1
%global _description \
40f98b1
A mixin for supporting Negotiate authentication with aiohttp.
40f98b1
40f98b1
%description %{_description}
40f98b1
40f98b1
%package -n python%{python3_pkgversion}-%{upstream_name}
40f98b1
Summary:        %{summary}
40f98b1
%{?python_provide:%python_provide python%{python3_pkgversion}-%{upstream_name}}
40f98b1
BuildRequires:  python%{python3_pkgversion}-devel
40f98b1
BuildRequires:  python%{python3_pkgversion}-setuptools
40f98b1
Requires:       python%{python3_pkgversion}-aiohttp
40f98b1
Requires:       python%{python3_pkgversion}-www-authenticate
40f98b1
Requires:       python%{python3_pkgversion}-gssapi
40f98b1
40f98b1
%description -n python%{python3_pkgversion}-%{upstream_name} %{_description}
40f98b1
40f98b1
Python %{python3_pkgversion} version.
40f98b1
40f98b1
%if 0%{?with_python3_other}
40f98b1
%package -n python%{python3_other_pkgversion}-%{upstream_name}
40f98b1
Summary:        %{summary}
40f98b1
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{upstream_name}}
40f98b1
BuildRequires:  python%{python3_other_pkgversion}-devel
40f98b1
BuildRequires:  python%{python3_other_pkgversion}-setuptools
40f98b1
Requires:       python%{python3_other_pkgversion}-aiohttp
40f98b1
Requires:       python%{python3_other_pkgversion}-www-authenticate
40f98b1
Requires:       python%{python3_other_pkgversion}-gssapi
40f98b1
40f98b1
%description -n python%{python3_other_pkgversion}-%{upstream_name} %{_description}
40f98b1
40f98b1
Python %{python3_other_pkgversion} version.
40f98b1
%endif
40f98b1
40f98b1
%prep
40f98b1
%autosetup -n %{upstream_name}-%{version}
40f98b1
cp -p %{SOURCE1} .
40f98b1
40f98b1
%build
40f98b1
%py3_build
40f98b1
%if 0%{?with_python3_other}
40f98b1
%py3_other_build
40f98b1
%endif
40f98b1
40f98b1
%install
40f98b1
%py3_install
40f98b1
%if 0%{?with_python3_other}
40f98b1
%py3_other_install
40f98b1
%endif
40f98b1
40f98b1
%check
40f98b1
# No tests. :-(
40f98b1
40f98b1
%files -n python%{python3_pkgversion}-%{upstream_name}
40f98b1
%license LICENSE
40f98b1
%doc README.rst
40f98b1
%{python3_sitelib}/%{modname}.py*
40f98b1
%{python3_sitelib}/__pycache__/%{modname}.*
40f98b1
%{python3_sitelib}/%{modname}-*.egg-info
40f98b1
40f98b1
%if 0%{?with_python3_other}
40f98b1
%files -n python%{python3_other_pkgversion}-%{upstream_name}
40f98b1
%license LICENSE
40f98b1
%doc README.rst
40f98b1
%{python3_other_sitelib}/%{modname}.py*
40f98b1
%{python3_other_sitelib}/__pycache__/%{modname}.*
40f98b1
%{python3_other_sitelib}/%{modname}-*.egg-info
40f98b1
%endif
40f98b1
40f98b1
%changelog
40f98b1
* Thu Dec 08 2016 Dan Callaghan <dcallagh@redhat.com> - 0.11-1
40f98b1
- initial version