File engine_pkcs11.spec of Package engine_pkcs11
#
# spec file for package engine_pkcs11
#
# Copyright (c) 2015 SUSE LINUX Products 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: engine_pkcs11
Version: 0.2.0
Release: 0
Url: https://github.com/OpenSC/engine_pkcs11
Summary: OpenSSL PKCS#11 Engine
License: BSD-3-Clause
Group: Productivity/Security
Source: https://github.com/OpenSC/engine_pkcs11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-COPYING
Patch: engine_pkcs11-dso-include.patch
BuildRequires: libp11-devel >= 0.2.5
BuildRequires: libxslt
BuildRequires: pkg-config
BuildRequires: pkgconfig(p11-kit-1)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Engine_pkcs11 is an implementation of an engine for OpenSSL. It can be
loaded using code, a configuration file, or the command line and passes
any function call by openssl to a PKCS#11 module. Engine_pkcs11 is
meant to be used with smart cards and software for using smart cards in
PKCS#11 format, such as OpenSC. Originally, this engine was part of
OpenSC until OpenSC was split into several small projects to improve
flexibility.
%prep
%setup -q
%if 0%{?suse_version} > 1330
%patch -p1
%endif
cp -a %{S:1} COPYING
%build
%configure\
--docdir=%{_docdir}/%{name}\
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/engines/libpkcs11.la
%files
%defattr (-, root, root)
%doc COPYING NEWS
%dir %{_libdir}/engines/
%{_libdir}/engines/*.so
%changelog