[packages/virtualsmartcard] - updated to 0.9, switched to python3

qboosh qboosh at pld-linux.org
Sun Sep 8 17:03:22 CEST 2024


commit 7993b5ec82bf566f9d4dc141785d71fb9aaeb514
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 8 16:32:33 2024 +0200

    - updated to 0.9, switched to python3

 virtualsmartcard-prefix.patch | 34 ++++++++--------------------------
 virtualsmartcard.spec         | 13 +++++++------
 2 files changed, 15 insertions(+), 32 deletions(-)
---
diff --git a/virtualsmartcard.spec b/virtualsmartcard.spec
index 26fd34a..abbb69d 100644
--- a/virtualsmartcard.spec
+++ b/virtualsmartcard.spec
@@ -1,13 +1,13 @@
 Summary:	Virtual Smart Card - smart card emulator written in Python
 Summary(pl.UTF-8):	Virtual Smart Card - emulator kart procesorowych napisany w Pythonie
 Name:		virtualsmartcard
-Version:	0.7
-Release:	3
+Version:	0.9
+Release:	1
 License:	GPL v3+
 Group:		Applications/Emulators
 #Source0Download: https://github.com/frankmorgner/vsmartcard/releases
 Source0:	https://github.com/frankmorgner/vsmartcard/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	917119fbe74c0b0e331d3a84557c618a
+# Source0-md5:	c9a65519349a5be90de35a55ae8181b2
 Patch0:		%{name}-prefix.patch
 URL:		https://frankmorgner.github.io/vsmartcard/
 BuildRequires:	autoconf >= 2.64
@@ -17,7 +17,7 @@ BuildRequires:	help2man
 BuildRequires:	libtool
 BuildRequires:	pcsc-lite-devel
 BuildRequires:	pkgconfig
-BuildRequires:	python-devel >= 2
+BuildRequires:	python3-devel >= 1:3.2
 BuildRequires:	qrencode-devel
 BuildRequires:	rpm-pythonprov
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,6 +42,7 @@ Virtual Smart Card - emulator kart procesorowych napisany w Pythonie.
 %{__autoheader}
 %{__automake}
 %configure \
+	PYTHON=%{__python3} \
 	--enable-serialdropdir=$(pkg-config --variable=usbdropdir libpcsclite) \
 	--disable-silent-rules
 %{__make}
@@ -59,10 +60,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
+%doc doc/README.txt.in
 %attr(755,root,root) %{_bindir}/vicc
 %attr(755,root,root) %{_bindir}/vpcd-config
 %attr(755,root,root) %{_libdir}/pcsc/drivers/libifdvpcd.so*
 %config(noreplace) %verify(not md5 mtime size) /etc/reader.conf.d/vpcd
-%{py_sitescriptdir}/virtualsmartcard
+%{py3_sitescriptdir}/virtualsmartcard
 %{_mandir}/man1/vicc.1*
diff --git a/virtualsmartcard-prefix.patch b/virtualsmartcard-prefix.patch
index 2c51c65..e821f60 100644
--- a/virtualsmartcard-prefix.patch
+++ b/virtualsmartcard-prefix.patch
@@ -1,38 +1,20 @@
---- virtualsmartcard-0.7/configure.ac.orig	2014-09-07 14:50:04.000000000 +0200
-+++ virtualsmartcard-0.7/configure.ac	2017-11-27 21:15:15.252769974 +0100
-@@ -68,17 +68,10 @@
+--- virtualsmartcard-0.9/configure.ac.orig	2024-09-08 15:17:35.992591558 +0200
++++ virtualsmartcard-0.9/configure.ac	2024-09-08 15:22:52.677542595 +0200
+@@ -106,7 +106,7 @@ if test "${libpcsclite}" = no ; then
  		serial wrapper driver (default to pcscd config or $(prefix)/pcsc/drivers/serial)]),
  		[serialdropdir="${enableval}"], [serialdropdir=no])
  	if test "${serialdropdir}" = no ; then
 -		if test "${prefix}" = NONE ; then
++		if true ; then
  			serialdropdir="`$PKG_CONFIG libpcsclite --variable=usbdropdir`/serial"
  			if test "${serialdropdir}" = "/serial" ; then
- 				AC_MSG_ERROR([use --enable-serialdropdir=DIR])
- 			fi
--		else
--			serialdropdir="${prefix}`$PKG_CONFIG libpcsclite --variable=usbdropdir`/serial"
--			if test "${serialdropdir}" = "${prefix}/serial" ; then
--				AC_MSG_ERROR([use --enable-serialdropdir=DIR])
--			fi
--		fi
- 	fi
- 
- 
-@@ -88,17 +81,10 @@
+ 				case "$host" in
+@@ -152,7 +152,7 @@ if test "${libpcsclite}" = no ; then
  		serial wrapper driver (default to pcscd config or /etc/reader.conf.d)]),
  		[serialconfdir="${enableval}"], [serialconfdir=no])
  	if test "${serialconfdir}" = no ; then
 -		if test "${prefix}" = NONE ; then
++		if true ; then
  			serialconfdir="`$PKG_CONFIG libpcsclite --variable=serialconfdir`"
  			if test "${serialconfdir}" = "" ; then
- 				serialconfdir="/etc/reader.conf.d"
- 			fi
--		else
--			serialconfdir="${prefix}`$PKG_CONFIG libpcsclite --variable=serialconfdir`"
--			if test "${serialconfdir}" = "${prefix}" ; then
--				serialconfdir="${prefix}/etc/reader.conf.d"
--			fi
--		fi
- 	fi
- else
-     builddir="`pwd`"
+ 				case "$host" in
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/virtualsmartcard.git/commitdiff/7993b5ec82bf566f9d4dc141785d71fb9aaeb514



More information about the pld-cvs-commit mailing list