# # spec file # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define modname urllib-gssapi %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{modname} Version: 1.0.2 Release: 0 Summary: GSSAPI over HTTP Negotiate/SPNEGO support for urllib/urllib2 License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/pythongssapi/urllib-gssapi Source: https://github.com/pythongssapi/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz BuildRequires: %{python_module gssapi} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-gssapi BuildArch: noarch %python_subpackages %description %{modname} is a backend for urllib. It provides GSSAPI/SPNEGO authentication to HTTP servers. %{modname} replaces urllib_kerberos and behaves in the same ways. %prep %autosetup -p1 -n %{modname}-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # Tests don't test anything, #gh#pythongssapi/urllib-gssapi#1 # %%check %files %{python_files} %license COPYING %doc README.md %{python_sitelib}/urllib_gssapi* %changelog