change to use python3 for pcsc-spy python scripts

This commit is contained in:
eulerstorage 2020-02-18 10:15:30 +08:00
parent 0e81401ff9
commit d84cb9d98a
2 changed files with 35 additions and 3 deletions

View File

@ -0,0 +1,26 @@
From 5a0c5fcd6371f1e1b5b18b2888d9e3304e402177 Mon Sep 17 00:00:00 2001
From: Shijie Luo <luoshijie1@huawei.com>
Date: Tue, 18 Feb 2020 09:43:11 +0800
Subject: [PATCH] pcsc-lite:change to use python3 for pcsc-spy
pcsc-spy is needed when we compile pcsc-lite, change to
use python3 instead of python2.
Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
---
src/spy/pcsc-spy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spy/pcsc-spy b/src/spy/pcsc-spy
index bf49482..7b9c5f3 100755
--- a/src/spy/pcsc-spy
+++ b/src/spy/pcsc-spy
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python3
"""
# Display PC/SC functions arguments
--
1.8.3.1

View File

@ -1,29 +1,32 @@
Name: pcsc-lite
Version: 1.8.23
Release: 8
Release: 9
Summary: Middleware to access a smart card using SCard API (PC/SC)
License: BSD
URL: https://pcsclite.apdu.fr/
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
BuildRequires: systemd-devel polkit-devel gettext-devel
BuildRequires: perl-podlators doxygen gnupg2 gcc git
BuildRequires: perl-podlators doxygen gnupg2 gcc git python3
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires: pcsc-ifd-handler polkit python2
Requires: pcsc-ifd-handler polkit
Recommends: ccid
Provides: pcsc-lite-libs%{?_isa} pcsc-lite-libs
Obsoletes: pcsc-lite-libs
Patch0: 0000-pcsc-lite-change-to-use-python3-for-pcsc-spy.patch
%description
PC/SC Lite is a middleware to access a smart card using SCard API (PC/SC).
This package contains PC/SC Lite server and other utilities.
%package devel
Summary: PC/SC Lite library and header files
Requires: python3
Requires: %{name} = %{version}-%{release}
%description devel
@ -109,6 +112,9 @@ mkdir -p %{buildroot}/%{_localstatedir}/run/pcscd
%changelog
* Tue Feb 18 2020 Shijie Luo <buildteam@openeuler.org> - 1.8.23-9
- change to use python3 for pcsc-spy python script.
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.8.23-8
- Change the recommends of pcsc-lite-ccid to ccid