ed6eb8
%global upstream_name requests-kerberos
ed6eb8
%global module_name requests_kerberos
d7b22a
%global commit0 393e49c698904c76ad9f56c6e4dbd2dbc55a7c42
d7b22a
%global gittag0 v0.12.0
6022ae
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
ed6eb8
ed6eb8
Name:           python-%{upstream_name}
d7b22a
Version:        0.12.0
f7e421
Release:        8%{?dist}
ed6eb8
Summary:        A Kerberos authentication handler for python-requests
ed6eb8
License:        MIT
ed6eb8
URL:            https://github.com/requests/requests-kerberos
6022ae
# Upstream considers Github not PyPI to be the authoritative source tarballs:
37a22b
# https://github.com/requests/requests-kerberos/pull/78
6022ae
Source0:        https://github.com/requests/requests-kerberos/archive/%{commit0}.tar.gz#/%{upstream_name}-%{shortcommit0}.tar.gz
b088fb
# Upstream has switched their requirement to the "pykerberos" fork, but for now 
b088fb
# we still have the original "kerberos" module in Fedora.
b088fb
Patch1:         0001-switch-requirement-from-pykerberos-back-to-kerberos.patch
ed6eb8
BuildArch:      noarch
ed6eb8
BuildRequires:  python3-devel
ed6eb8
BuildRequires:  python3-setuptools
37a22b
BuildRequires:  python3-pytest
37a22b
BuildRequires:  python3-mock
ed6eb8
ed6eb8
%description
ed6eb8
Requests is an HTTP library, written in Python, for human beings. This library 
ed6eb8
adds optional Kerberos/GSSAPI authentication support and supports mutual 
ed6eb8
authentication.
ed6eb8
ed6eb8
%package -n python3-%{upstream_name}
37a22b
Summary:        %{summary}
94553a
Requires:       python3-requests >= 1.1
ed6eb8
Requires:       python3-kerberos
d7b22a
Requires:       python3-cryptography
37a22b
# runtime requirements are needed for tests also
37a22b
BuildRequires:  python3-requests >= 1.1
37a22b
BuildRequires:  python3-kerberos
d7b22a
BuildRequires:  python3-cryptography
37a22b
%{?python_provide:%python_provide python3-%{upstream_name}}
ed6eb8
ed6eb8
%description -n python3-%{upstream_name}
ed6eb8
Requests is an HTTP library, written in Python, for human beings. This library 
ed6eb8
adds optional Kerberos/GSSAPI authentication support and supports mutual 
ed6eb8
authentication.
ed6eb8
ed6eb8
%prep
6022ae
%setup -q -n %{upstream_name}-%{commit0}
c7baac
%patch1 -p1
ed6eb8
ed6eb8
%build
37a22b
%py3_build
ed6eb8
37a22b
%check
d7b22a
py.test-3 tests/
ed6eb8
ed6eb8
%install
37a22b
%py3_install
ed6eb8
ed6eb8
%files -n python3-%{upstream_name}
37a22b
%license LICENSE
37a22b
%doc README.rst AUTHORS HISTORY.rst
ed6eb8
%{python3_sitelib}/%{module_name}
ed6eb8
%{python3_sitelib}/%{module_name}*.egg-info
ed6eb8
ed6eb8
%changelog
f7e421
* Mon Sep 09 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.12.0-8
f7e421
- Subpackage python2-requests-kerberos has been removed
f7e421
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
f7e421
58b1a2
* Fri Aug 16 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.12.0-7
58b1a2
- Rebuilt for Python 3.8
58b1a2
d458a5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-6
d458a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d458a5
e280d1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-5
e280d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e280d1
1ff0c7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-4
1ff0c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1ff0c7
330012
* Sun Jun 17 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.12.0-3
330012
- Rebuilt for Python 3.7
330012
31b772
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
31b772
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
31b772
d7b22a
* Mon Jan 08 2018 Dan Callaghan <dcallagh@redhat.com> 0.12.0-1
d7b22a
- Upstream release 0.12.0:
d7b22a
  https://github.com/requests/requests-kerberos/blob/v0.12.0/HISTORY.rst#0120-2017-12-20
d7b22a
52c1e8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-5
52c1e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
52c1e8
7311af
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
7311af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7311af
578d04
* Mon Dec 19 2016 Miro Hron훾ok <mhroncok@redhat.com> - 0.10.0-3
578d04
- Rebuild for Python 3.6
578d04
859f3f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
859f3f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
859f3f
6022ae
* Tue Jul 12 2016 Dan Callaghan <dcallagh@redhat.com> - 0.10.0-1
6022ae
- upstream bug fix release 0.10.0:
6022ae
  https://github.com/requests/requests-kerberos/blob/v0.10.0/HISTORY.rst#0100-2016-05-18
6022ae
be13a4
* Fri Jul 01 2016 Dan Callaghan <dcallagh@redhat.com> - 0.8.0-5
be13a4
- add Obsoletes for python -> python2 rename
be13a4
37a22b
* Fri Jul 01 2016 Dan Callaghan <dcallagh@redhat.com> - 0.8.0-4
37a22b
- build for Python 2 and 3 (RHBZ#1334415)
37a22b
- use %%license
37a22b
- run tests in %%check
37a22b
b088fb
* Thu Feb 11 2016 Dan Callaghan <dcallagh@redhat.com> - 0.8.0-3
b088fb
- really fix requirements for kerberos module (#1305986)
b088fb
11bc45
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
11bc45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
11bc45
c85a82
* Mon Feb 01 2016 Dan Callaghan <dcallagh@redhat.com> - 0.8.0-1
c85a82
- upstream release 0.8.0 (#1296743)
c85a82
21cc2b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
21cc2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
21cc2b
c7baac
* Thu Jun 11 2015 Dan Callaghan <dcallagh@redhat.com> - 0.7.0-2
c7baac
- relaxed version in kerberos module requirement, to work with
c7baac
  python-kerberos 1.1 (#1215565)
c7baac
Fedora Release Monitoring 86f9d3
* Tue May 05 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.7.0-1
Fedora Release Monitoring 86f9d3
- Update to 0.7.0 (#1164464)
Fedora Release Monitoring 86f9d3
bc7c05
* Fri Nov 07 2014 Dan Callaghan <dcallagh@redhat.com> - 0.6-1
bc7c05
- fix for mutual authentication handling (RHBZ#1160545, CVE-2014-8650)
bc7c05
9566f2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
9566f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9566f2
94553a
* Tue May 27 2014 Dan Callaghan <dcallagh@redhat.com> - 0.5-1
94553a
- upstream bug fix release 0.5
94553a
eef03b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
eef03b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eef03b
89c8ca
* Mon Jun 03 2013 Dan Callaghan <dcallagh@redhat.com> - 0.3-1
89c8ca
- upstream bug fix release 0.3
89c8ca
d5876b
* Mon May 27 2013 Dan Callaghan <dcallagh@redhat.com> - 0.2-2
d5876b
- require requests >= 1.0
d5876b
ed6eb8
* Tue May 14 2013 Dan Callaghan <dcallagh@redhat.com> - 0.2-1
ed6eb8
- initial version