!4 解决python-pyspnego编译时python3dist的名称为unknown

From: @huangduirong 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2023-02-15 08:05:39 +00:00 committed by Gitee
commit 837caf8705
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,23 @@
From cad87500ddb9a56a907b664f1215754a8fdb4783 Mon Sep 17 00:00:00 2001
From: huangduirong <huangduirong@huawei.com>
Date: Wed, 15 Feb 2023 02:49:31 -0500
Subject: [PATCH] x
---
setup.cfg | 3 +++
1 file changed, 3 insertions(+)
diff --git a/setup.cfg b/setup.cfg
index 8bfd5a1..3e4fe7e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,3 +2,6 @@
tag_build =
tag_date = 0
+[metadata]
+name = pyspnego
+version = 0.7.0
--
2.35.1

View File

@ -1,11 +1,14 @@
%global _empty_manifest_terminate_build 0
Name: python-pyspnego
Version: 0.7.0
Release: 1
Release: 2
Summary: Windows Negotiate Authentication Client and Server
License: MIT
URL: https://github.com/jborean93/pyspnego
Source0: https://files.pythonhosted.org/packages/97/f3/bdf3cd5f4c5a1bf9e1d4bb771c133850ee08241c18cafd90a6d872937a9f/pyspnego-0.7.0.tar.gz
Patch0: 0001-solve-python3dist-unknow.patch
BuildArch: noarch
%description
Python SPNEGO 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.
@ -39,7 +42,7 @@ Provides: python3-pyspnego-doc
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.
%prep
%autosetup -n pyspnego-%{version}
%autosetup -n pyspnego-%{version} -p1
%build
%py3_build
@ -83,6 +86,9 @@ PYTHONPATH=src/ pytest-3 -v tests
%{_docdir}/*
%changelog
* Wed Feb 15 2023 huangduirong <huangduirong@kylinos.cn> - 0.7.0-2
- solve python3dist is unknow
* Tue Feb 14 2023 wubijie <wubijie@kylinos.cn> - 0.7.0-1
- Update package to version 0.7.0