File vsmartcard.spec of Package vsmartcard
#
# spec file for package vsmartcard
#
# Copyright (c) 2020-2022, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: vsmartcard
Version: 3.5
Release: 0
Summary: Smart card emulator written in Python
License: GPL-3.0-or-later
Group: Hardware/Modem
URL: https://frankmorgner.github.io/vsmartcard/
Source: https://github.com/frankmorgner/vsmartcard/archive/ACardEmulator-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: help2man
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpcsclite)
BuildRequires: pkgconfig(libqrencode)
Requires: pcsc-lite
%description
Virtual Smart Card emulates a smart card and makes it accessible
through PC/SC. Currently the Virtual Smart Card supports the
following types of smart cards:
* Generic ISO-7816 smart card including secure messaging
* German electronic identity card (nPA) with complete support for
EAC (PACE, TA, CA)
* Electronic passport (ePass/MRTD) with support for BAC
* Cryptoflex smart card (incomplete)
%prep
%setup -q -n %{name}-ACardEmulator-%{version}
%build
cd virtualsmartcard
autoreconf -fiv
%configure \
--sysconfdir=%{_sysconfdir} \
--enable-serialconfdir=%{_sysconfdir}/reader.conf.d \
--enable-serialdropdir=%{_libdir}/readers/serial/
%make_build
%install
cd virtualsmartcard
%make_install
%fdupes %{buildroot}%{python3_sitelib}
%files
%license virtualsmartcard/COPYING
%doc virtualsmartcard/README.md
%{_bindir}/vicc
%{_bindir}/vpcd-config
%config %{_sysconfdir}/reader.conf.d/vpcd
%dir %{_libdir}/readers
%dir %{_libdir}/readers/serial
%{_libdir}/readers/serial/libifdvpcd.so
%{_libdir}/readers/serial/libifdvpcd.so.0.8
%{_mandir}/man1/vicc.1%{?ext_man}
%{python3_sitelib}/virtualsmartcard
%changelog