File gnupg-pkcs11-scd.spec of Package gnupg-pkcs11-scd
Summary: GnuPG-compatible smart-card daemon with PKCS#11 support
Name: gnupg-pkcs11-scd
Version: 0.9.2
Release: 1.1
License: BSD-3-Clause
Group: Productivity/Networking/Security
Url: http://gnupg-pkcs11.sourceforge.net
Source: %{name}-%{version}.tar.gz
BuildRequires: libgnutls-devel
BuildRequires: libopenssl-devel
BuildRequires: pkcs11-helper-devel >= 1.03
BuildRequires: libpkcs11-helper1 >= 1.03
BuildRequires: libassuan-devel >= 2.0.0
BuildRequires: libgcrypt-devel
BuildRequires: pkg-config
BuildRequires: automake
Requires: openssl
Requires: libpkcs11-helper1 >= 1.03
Requires: libassuan0 >= 2.0.0
Requires: gpg2
%description
gnupg-pkcs11-scd is a drop-in replacement for the smart-card daemon (scd) shipped with the next-generation GnuPG (gnupg-2). The daemon interfaces to smart-cards by using RSA Security Inc. PKCS#11 Cryptographic Token Interface (Cryptoki).
%prep
%setup -q
%build
autoreconf -vfi
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%install
%makeinstall
%clean
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
%files
%defattr(-,root,root)
%{_bindir}/gnupg-pkcs11-scd
%{_mandir}/man1/gnupg-pkcs11-scd*
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/*