File engine_pkcs11.spec of Package engine_pkcs11

#
# spec file for package engine_pkcs11
#
# Copyright (c) 2013 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.1.8
Release:        0
Url:            http://www.opensc-project.org/engine_pkcs11/
Summary:        OpenSSL PKCS#11 Engine
License:        BSD-3-Clause
Group:          Productivity/Security
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-COPYING
BuildRequires:  libp11-devel >= 0.2.5
BuildRequires:  libxslt
BuildRequires:  pkg-config
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
cp -a %{S:1} COPYING

%build
%configure\
	--enable-doc\
	--docdir=%{_docdir}/%{name}\
	--disable-static
make %{?_smp_mflags}

%install
%makeinstall
cp COPYING doc/nonpersistent/ChangeLog $RPM_BUILD_ROOT%{_docdir}/%{name}/

%files
%defattr (-, root, root)
%doc %{_docdir}/%{name}
%dir %{_libdir}/engines/
%{_libdir}/engines/*.so

%changelog
openSUSE Build Service is sponsored by