From 9885a2306639478a642002a55ec70dc30ef1ca04 Mon Sep 17 00:00:00 2001 From: june <159748074+june-fish@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:15:56 -0500 Subject: [PATCH] add: virtualsmartcard (#5635) * add: virtualsmartcard * fix: update rhai script --- anda/tools/virtualsmartcard/anda.hcl | 5 +++ anda/tools/virtualsmartcard/update.rhai | 3 ++ .../virtualsmartcard/virtualsmartcard.spec | 40 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 anda/tools/virtualsmartcard/anda.hcl create mode 100644 anda/tools/virtualsmartcard/update.rhai create mode 100644 anda/tools/virtualsmartcard/virtualsmartcard.spec diff --git a/anda/tools/virtualsmartcard/anda.hcl b/anda/tools/virtualsmartcard/anda.hcl new file mode 100644 index 0000000000..23d088ef48 --- /dev/null +++ b/anda/tools/virtualsmartcard/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "virtualsmartcard.spec" + } +} diff --git a/anda/tools/virtualsmartcard/update.rhai b/anda/tools/virtualsmartcard/update.rhai new file mode 100644 index 0000000000..e78960ff12 --- /dev/null +++ b/anda/tools/virtualsmartcard/update.rhai @@ -0,0 +1,3 @@ +let v = gh_tag("frankmorgner/vsmartcard"); +v.crop(17); +rpm.version(v); diff --git a/anda/tools/virtualsmartcard/virtualsmartcard.spec b/anda/tools/virtualsmartcard/virtualsmartcard.spec new file mode 100644 index 0000000000..0d570fcd7e --- /dev/null +++ b/anda/tools/virtualsmartcard/virtualsmartcard.spec @@ -0,0 +1,40 @@ +Name: virtualsmartcard +Version: 0.10 +Release: 1%?dist +Summary: Smart card emulator and driver for networked smart card reader/emulator +URL: https://frankmorgner.github.io/vsmartcard/index.html +Source0: https://github.com/frankmorgner/vsmartcard/releases/download/%name-%version/%name-%version.tar.gz +License: GPL-3.0-only +BuildRequires: pcsc-lite-devel gcc libtool pkg-config qrencode-devel python3-devel help2man + +Requires: qrencode-libs python3 +Packager: june-fish + +%description +Virtual Smart Card emulates a smart card and makes it accessible through PC/SC. The vpcd is a smart card reader driver for PCSC-Lite and the windows smart card service. It allows smart card applications to access the vpicc through the PC/SC API. + +%prep +%autosetup +autoreconf --verbose --install +%configure prefix=NONE pythondir=%{python3_sitelib} bindir=%{_bindir} + +%build +%make_build + +%install +%make_install prefix=NONE pythondir=%{python3_sitelib} bindir=%{_bindir} + +%files +%{_bindir}/vicc +%{_mandir}/man1/vicc.1.gz +%{python3_sitelib}/virtualsmartcard/ +%{python3_sitelib}/virtualsmartcard/cards/ +%{_libdir}/pcsc/drivers/serial/libifdvpcd.so.%version +%{_libdir}/pcsc/drivers/serial/libifdvpcd.so +%{_sysconfdir}/reader.conf.d/vpcd +%{_bindir}/vpcd-config +%doc docs + +%changelog +* Wed Jun 25 2025 june-fish +- Initial Package