|
|
ed6eb81 |
%global upstream_name requests-kerberos
|
|
|
ed6eb81 |
%global module_name requests_kerberos
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
# Upstream doesn't support Python 3 yet, and there is no python3-kerberos.
|
|
|
0390218 |
%if 0 && 0%{?fedora}
|
|
|
ed6eb81 |
%bcond_without python3
|
|
|
ed6eb81 |
%else
|
|
|
ed6eb81 |
%bcond_with python3
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
Name: python-%{upstream_name}
|
|
Fedora Release Monitoring |
86f9d3b |
Version: 0.7.0
|
|
|
c7baacd |
Release: 2%{?dist}
|
|
|
ed6eb81 |
Summary: A Kerberos authentication handler for python-requests
|
|
|
ed6eb81 |
License: MIT
|
|
|
ed6eb81 |
URL: https://github.com/requests/requests-kerberos
|
|
|
ed6eb81 |
Source0: http://pypi.python.org/packages/source/r/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
|
c7baacd |
# https://github.com/requests/requests-kerberos/pull/53
|
|
|
c7baacd |
Patch1: 0001-relax-version-in-kerberos-requirement.patch
|
|
|
ed6eb81 |
BuildArch: noarch
|
|
|
ed6eb81 |
BuildRequires: python2-devel
|
|
|
ed6eb81 |
BuildRequires: python-setuptools
|
|
|
ed6eb81 |
%if %{with python3}
|
|
|
ed6eb81 |
BuildRequires: python3-devel
|
|
|
ed6eb81 |
BuildRequires: python3-setuptools
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
94553a1 |
Requires: python-requests >= 1.1
|
|
|
ed6eb81 |
Requires: python-kerberos
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%description
|
|
|
ed6eb81 |
Requests is an HTTP library, written in Python, for human beings. This library
|
|
|
ed6eb81 |
adds optional Kerberos/GSSAPI authentication support and supports mutual
|
|
|
ed6eb81 |
authentication.
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%if %{with python3}
|
|
|
ed6eb81 |
%package -n python3-%{upstream_name}
|
|
|
ed6eb81 |
Summary: A Kerberos authentication handler for python-requests
|
|
|
94553a1 |
Requires: python3-requests >= 1.1
|
|
|
ed6eb81 |
Requires: python3-kerberos
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%description -n python3-%{upstream_name}
|
|
|
ed6eb81 |
Requests is an HTTP library, written in Python, for human beings. This library
|
|
|
ed6eb81 |
adds optional Kerberos/GSSAPI authentication support and supports mutual
|
|
|
ed6eb81 |
authentication.
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%prep
|
|
|
ed6eb81 |
%setup -q -n %{upstream_name}-%{version}
|
|
|
ed6eb81 |
rm -r %{module_name}.egg-info
|
|
|
c7baacd |
%patch1 -p1
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%if %{with python3}
|
|
|
ed6eb81 |
rm -rf %{py3dir}
|
|
|
ed6eb81 |
cp -a . %{py3dir}
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%build
|
|
|
ed6eb81 |
%{__python} setup.py build
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%if %{with python3}
|
|
|
ed6eb81 |
pushd %{py3dir}
|
|
|
ed6eb81 |
%{__python3} setup.py build
|
|
|
ed6eb81 |
popd
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%install
|
|
|
ed6eb81 |
%if %{with python3}
|
|
|
ed6eb81 |
pushd %{py3dir}
|
|
|
ed6eb81 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
ed6eb81 |
popd
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%files
|
|
|
ed6eb81 |
%doc README.rst LICENSE AUTHORS HISTORY.rst
|
|
|
ed6eb81 |
%{python_sitelib}/%{module_name}
|
|
|
ed6eb81 |
%{python_sitelib}/%{module_name}*.egg-info
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%if %{with python3}
|
|
|
ed6eb81 |
%files -n python3-%{upstream_name}
|
|
|
ed6eb81 |
%doc README.rst LICENSE AUTHORS HISTORY.rst
|
|
|
ed6eb81 |
%{python3_sitelib}/%{module_name}
|
|
|
ed6eb81 |
%{python3_sitelib}/%{module_name}*.egg-info
|
|
|
ed6eb81 |
%endif
|
|
|
ed6eb81 |
|
|
|
ed6eb81 |
%changelog
|
|
|
c7baacd |
* Thu Jun 11 2015 Dan Callaghan <dcallagh@redhat.com> - 0.7.0-2
|
|
|
c7baacd |
- relaxed version in kerberos module requirement, to work with
|
|
|
c7baacd |
python-kerberos 1.1 (#1215565)
|
|
|
c7baacd |
|
|
Fedora Release Monitoring |
86f9d3b |
* Tue May 05 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.7.0-1
|
|
Fedora Release Monitoring |
86f9d3b |
- Update to 0.7.0 (#1164464)
|
|
Fedora Release Monitoring |
86f9d3b |
|
|
|
bc7c05f |
* Fri Nov 07 2014 Dan Callaghan <dcallagh@redhat.com> - 0.6-1
|
|
|
bc7c05f |
- fix for mutual authentication handling (RHBZ#1160545, CVE-2014-8650)
|
|
|
bc7c05f |
|
|
|
9566f25 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
|
|
|
9566f25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
9566f25 |
|
|
|
94553a1 |
* Tue May 27 2014 Dan Callaghan <dcallagh@redhat.com> - 0.5-1
|
|
|
94553a1 |
- upstream bug fix release 0.5
|
|
|
94553a1 |
|
|
|
eef03b5 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
|
|
|
eef03b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
eef03b5 |
|
|
|
89c8ca3 |
* Mon Jun 03 2013 Dan Callaghan <dcallagh@redhat.com> - 0.3-1
|
|
|
89c8ca3 |
- upstream bug fix release 0.3
|
|
|
89c8ca3 |
|
|
|
d5876b5 |
* Mon May 27 2013 Dan Callaghan <dcallagh@redhat.com> - 0.2-2
|
|
|
d5876b5 |
- require requests >= 1.0
|
|
|
d5876b5 |
|
|
|
ed6eb81 |
* Tue May 14 2013 Dan Callaghan <dcallagh@redhat.com> - 0.2-1
|
|
|
ed6eb81 |
- initial version
|