package init
This commit is contained in:
parent
72e72b1932
commit
69c105266f
17
LICENSE
Normal file
17
LICENSE
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
ISC License
|
||||||
|
|
||||||
|
Copyright (c) 2012-2017 Kenneth Reitz
|
||||||
|
Copyright (c) 2017 the python-requests-gssapi contributors
|
||||||
|
Copyright (c) 2017 Red Hat, Inc.
|
||||||
|
|
||||||
|
Permission to use, copy, modify and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS-IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
60
python-requests-gssapi.spec
Normal file
60
python-requests-gssapi.spec
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
%global sname requests-gssapi
|
||||||
|
%global s_name requests_gssapi
|
||||||
|
|
||||||
|
Name: python-%{sname}
|
||||||
|
Version: 1.2.2
|
||||||
|
Release: 1
|
||||||
|
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: python3-devel
|
||||||
|
BuildRequires: python3-gssapi
|
||||||
|
BuildRequires: python3-mock
|
||||||
|
BuildRequires: python3-nose
|
||||||
|
BuildRequires: python3-requests
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
|
%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 python3-%{sname}
|
||||||
|
Summary: %summary
|
||||||
|
Requires: python3-gssapi
|
||||||
|
Requires: python3-requests
|
||||||
|
%{?python_provide:%python_provide python3-%{sname}}
|
||||||
|
%description -n python3-%{sname} %_description
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -S git -n %{sname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} setup.py nosetests
|
||||||
|
|
||||||
|
%files -n python3-%{sname}
|
||||||
|
%doc README.rst AUTHORS HISTORY.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/%{s_name}*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jun 23 2021 liufeng <liufeng@kylinos.cn> - 1.2.2-1
|
||||||
|
- Package init
|
||||||
BIN
requests-gssapi-1.2.2.tar.gz
Normal file
BIN
requests-gssapi-1.2.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user