diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-06-22 10:16:35 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-06-22 10:16:35 +0000 |
commit | 0dd08b9909300ddf0f16bd2fb2eb0a3487c030f4 (patch) | |
tree | 9963b0c2587f5dc520d6d8e3bb52c30b7b9639ba | |
parent | e9f686529c140ca7121ba32495ed9b1e233d0037 (diff) |
-rw-r--r-- | python-pyspnego.spec | 84 | ||||
-rw-r--r-- | sources | 2 |
2 files changed, 38 insertions, 48 deletions
diff --git a/python-pyspnego.spec b/python-pyspnego.spec index 5f9f94c..8838fe1 100644 --- a/python-pyspnego.spec +++ b/python-pyspnego.spec @@ -1,66 +1,56 @@ -# Created by pyp2rpm-3.3.8 -%global pypi_name pyspnego -%global pypi_version 0.5.2 +%global upstream_name pyspnego +%global module_name spnego -Name: python-%{pypi_name} -Version: %{pypi_version} -Release: 1%{?dist} -Summary: Windows Negotiate Authentication Client and Server +Name: python-%{upstream_name} +Version: 0.5.2 +Release: 1%{?dist} +Summary: Python library to handle SPNEGO and CredSSP authentication +License: MIT +URL: https://github.com/jborean93/pyspnego -License: MIT -URL: https://github.com/jborean93/pyspnego -Source0: %{pypi_source} +Source0: %{url}/archive/v%{version}/%{upstream_name}-%{version}.tar.gz -BuildRequires: python3-devel -BuildRequires: python3dist(cryptography) -BuildRequires: python3dist(dataclasses) -BuildRequires: python3dist(gssapi) >= 1.5 -BuildRequires: python3dist(krb5) >= 0.3 -BuildRequires: python3dist(ruamel.yaml) -BuildRequires: python3dist(setuptools) +BuildRequires: python3-devel -%description - Python SPNEGO Library[ and CredSSP -authentication. Also includes a packet parser that can +%global _description %{expand: +Library to handle SPNEGO (Negotiate, NTLM, Kerberos) and CredSSP +authentication. Also includes a packet parser that can be used to decode raw +NTLM/SPNEGO/Kerberos tokens into a human readable format.} -%package -n python3-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} +%description %_description -Requires: python3dist(cryptography) -Requires: python3dist(dataclasses) -Requires: python3dist(gssapi) >= 1.5 -Requires: python3dist(krb5) >= 0.3 -Requires: python3dist(ruamel.yaml) -Requires: python3dist(setuptools) -%description -n python3-%{pypi_name} - Python SPNEGO Library[ and CredSSP -authentication. Also includes a packet parser that can +%package -n python3-%{upstream_name} +Summary: %{summary} +BuildRequires: krb5-devel +BuildRequires: krb5-workstation +BuildRequires: krb5-server + +%description -n python3-%{upstream_name} %_description %prep -%autosetup -n %{pypi_name}-%{pypi_version} -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info +%autosetup -p1 -n %{upstream_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -t %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{module_name} %check -%{__python3} setup.py test +export LC_ALL=C +%tox -%files -n python3-%{pypi_name} +%files -n python3-%{upstream_name} +%{python3_sitearch}/%{module_name}/ +%{python3_sitearch}/%{module_name}-%{version}.dist-info/ %license LICENSE -%doc README.md tests/integration/README.md -%{_bindir}/pyspnego-parse -%{python3_sitearch}/spnego -%{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info +%doc README.md CHANGELOG.md %changelog -* Wed Jun 22 2022 Julien Rische <jrische@redhat.com> - 0.5.2-1 -- Initial package. +* Mon Jun 21 2022 Julien Rische <jrische@redhat.com> - 0.5.2-1 +- Initial package release @@ -1 +1 @@ -f520b41f604431aace5e8410b977910b pyspnego-0.5.2.tar.gz +a441061cfbaf104c785218565888569a pyspnego-0.5.2.tar.gz |