[packages/virtualsmartcard] - new

qboosh qboosh at pld-linux.org
Mon Nov 27 21:36:49 CET 2017


commit 06c0a80acdae779af6ffe91ac74d4fef3551e5e6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 27 21:37:45 2017 +0100

    - new

 virtualsmartcard-prefix.patch | 38 ++++++++++++++++++++++++
 virtualsmartcard.spec         | 67 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)
---
diff --git a/virtualsmartcard.spec b/virtualsmartcard.spec
new file mode 100644
index 0000000..8ca5ed2
--- /dev/null
+++ b/virtualsmartcard.spec
@@ -0,0 +1,67 @@
+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:	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
+Patch0:		%{name}-prefix.patch
+URL:		https://frankmorgner.github.io/vsmartcard/
+BuildRequires:	autoconf >= 2.64
+BuildRequires:	automake
+BuildRequires:	doxygen
+BuildRequires:	help2man
+BuildRequires:	libtool
+BuildRequires:	pcsc-lite-devel
+BuildRequires:	pkgconfig
+BuildRequires:	python-devel >= 2
+BuildRequires:	qrencode-devel
+BuildRequires:	rpm-pythonprov
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# uses log_msg symbol from pcscd
+%define		skip_post_check_so	libifdvpcd.so.*
+
+%description
+Virtual Smart Card - smart card emulator written in Python.
+
+%description -l pl.UTF-8
+Virtual Smart Card - emulator kart procesorowych napisany w Pythonie.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--disable-silent-rules
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_bindir}/vicc
+%attr(755,root,root) %{_bindir}/vpcd-config
+%attr(755,root,root) %{_libdir}/pcsc/drivers/serial/libifdvpcd.so*
+%config(noreplace) %verify(not md5 mtime size) /etc/reader.conf.d/vpcd
+%{py_sitescriptdir}/virtualsmartcard
+%{_mandir}/man1/vicc.1*
diff --git a/virtualsmartcard-prefix.patch b/virtualsmartcard-prefix.patch
new file mode 100644
index 0000000..2c51c65
--- /dev/null
+++ b/virtualsmartcard-prefix.patch
@@ -0,0 +1,38 @@
+--- 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 @@
+ 		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
+ 			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 @@
+ 		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
+ 			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`"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/virtualsmartcard.git/commitdiff/06c0a80acdae779af6ffe91ac74d4fef3551e5e6



More information about the pld-cvs-commit mailing list