From a3b4106bf24d6e1fa21049e8cbff2e0920080100 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Tue, 2 Jan 2018 18:35:05 +0000 Subject: [PATCH] Initial import (#1527682) --- .gitignore | 1 + README.md | 3 - python-requests-gssapi.spec | 108 ++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 110 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 python-requests-gssapi.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fabe6a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/requests-gssapi-1.0.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index c0aadc8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-requests-gssapi - -The python-requests-gssapi package \ No newline at end of file diff --git a/python-requests-gssapi.spec b/python-requests-gssapi.spec new file mode 100644 index 0000000..51d8060 --- /dev/null +++ b/python-requests-gssapi.spec @@ -0,0 +1,108 @@ +%global sname requests-gssapi +%global s_name requests_gssapi + +# No python3 builds of several deps in EPEL < 7 +%if 0%{?fedora} || 0%{?rhel} > 7 +%bcond_without python3 +%else +%bcond_with python3 +%endif + +Name: python-%{sname} +Version: 1.0.0 +Release: 1%{?dist} +Summary: A GSSAPI/SPNEGO authentication handler for python-requests + +License: ISC +URL: https://github.com/pythongssapi/%{sname} +Source0: https://github.com/pythongssapi/%{sname}/releases/download/v%{version}/%{sname}-%{version}.tar.gz +BuildArch: noarch + +# Patches + +BuildRequires: git-core +BuildRequires: python2-devel +BuildRequires: python2-gssapi +BuildRequires: python2-mock +BuildRequires: python2-nose +BuildRequires: python2-requests +BuildRequires: python2-setuptools + +%if %{with_python3} +BuildRequires: python3-devel +BuildRequires: python3-gssapi +BuildRequires: python3-mock +BuildRequires: python3-nose +BuildRequires: python3-requests +BuildRequires: python3-setuptools +%endif + +%global _description\ +Requests is an HTTP library, written in Python, for human beings. This\ +library adds optional GSSAPI authentication support and supports\ +mutual authentication. It includes a fully backward-compatible shim\ +for requests-kerberos. + +%description %_description + +%package -n python2-%{sname} +Summary: %summary +Requires: python2-gssapi +Requires: python2-requests +%{?python_provide:%python_provide python2-%{sname}} +%description -n python2-%{sname} %_description + +%if %{with_python3} +%package -n python3-%{sname} +Summary: %summary +Requires: python3-gssapi +Requires: python3-requests +%{?python_provide:%python_provide python3-%{sname}} +%description -n python3-%{sname} %_description +%endif + + +%prep +%autosetup -S git -n %{sname}-%{version} + + +%build +%py2_build + +%if %{with_python3} +%py3_build +%endif + +%install +%py2_install + +%if %{with_python3} +%py3_install +%endif + + +%check +%{__python2} setup.py nosetests + +%if %{with_python3} +%{__python3} setup.py nosetests +%endif + + +%files -n python2-%{sname} +%doc README.rst AUTHORS HISTORY.rst +%license LICENSE +%{python2_sitelib}/%{s_name}* + + +%if %{with_python3} +%files -n python3-%{sname} +%doc README.rst AUTHORS HISTORY.rst +%license LICENSE +%{python3_sitelib}/%{s_name}* +%endif + + +%changelog +* Tue Dec 19 2017 Robbie Harwood - 1.0.0-1 +- New upstream release (v1.0.0) diff --git a/sources b/sources new file mode 100644 index 0000000..d9f12cd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (requests-gssapi-1.0.0.tar.gz) = 26e7136b181732a0a5a3c4ebe3ad04172e176e0e5658089defb2f0fbd6c1133920ace7818e64b44439f7ba16d7cba9f7c0cfafc8cb163ca7e47b61c4e2c12646