!9 change to use python3 for pcsc-spy

Merge pull request !9 from shijieluo/tmp
This commit is contained in:
openeuler-ci-bot 2020-02-18 11:28:47 +08:00 committed by Gitee
commit 76d4894e61
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 Name: pcsc-lite
Version: 1.8.23 Version: 1.8.23
Release: 8 Release: 9
Summary: Middleware to access a smart card using SCard API (PC/SC) Summary: Middleware to access a smart card using SCard API (PC/SC)
License: BSD License: BSD
URL: https://pcsclite.apdu.fr/ URL: https://pcsclite.apdu.fr/
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2 Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
BuildRequires: systemd-devel polkit-devel gettext-devel 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(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
Requires: pcsc-ifd-handler polkit python2 Requires: pcsc-ifd-handler polkit
Recommends: ccid Recommends: ccid
Provides: pcsc-lite-libs%{?_isa} pcsc-lite-libs Provides: pcsc-lite-libs%{?_isa} pcsc-lite-libs
Obsoletes: pcsc-lite-libs Obsoletes: pcsc-lite-libs
Patch0: 0000-pcsc-lite-change-to-use-python3-for-pcsc-spy.patch
%description %description
PC/SC Lite is a middleware to access a smart card using SCard API (PC/SC). 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. This package contains PC/SC Lite server and other utilities.
%package devel %package devel
Summary: PC/SC Lite library and header files Summary: PC/SC Lite library and header files
Requires: python3
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description devel %description devel
@ -109,6 +112,9 @@ mkdir -p %{buildroot}/%{_localstatedir}/run/pcscd
%changelog %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 * Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.8.23-8
- Change the recommends of pcsc-lite-ccid to ccid - Change the recommends of pcsc-lite-ccid to ccid