File pcsc-ctapi-wrapper.spec of Package pcsc-ctapi-wrapper
#
# spec file for package pcsc-ctapi-wrapper
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: pcsc-ctapi-wrapper
Version: 0.3
Release: 0
Summary: Wrapper for programs that deal with CT-API drivers to use PCSC
License: LGPL-2.1
Group: System/Libraries
Source: http://downloads.sourceforge.net/pcsc-ctapi/pcsc-ctapi/0.3/%{name}-%{version}.tar.gz
Url: https://sourceforge.net/projects/pcsc-ctapi/
BuildRequires: pcsc-lite-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
For some chipcards there's only a PCSC driver but no CT-API driver. However,
some applications like Moneyplex or QPaMaT can only access cards which provide
a CT-API driver. With this wrapper, the application can use this "dummy"
library that internally accesses CT-API.
%prep
%setup -q
%build
make %{?_smp_mflags} CFLAGS="%{optflags} -std=gnu90 -I/usr/include/PCSC"
%install
mkdir -p %{buildroot}/%{_libdir}/ctapi
install -m 0644 libpcsc-ctapi-wrapper.so* %{buildroot}/%{_libdir}/ctapi
%files
%defattr(-,root,root)
%doc README LICENSE
%{_libdir}/ctapi/libpcsc-ctapi-wrapper.so.*
%dir %{_libdir}/ctapi/
%changelog