Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 77bc3a64f41c03515ccb3f0af3c6b6fb > files > 2

engine_pkcs11-0.1.4-1mdv2008.1.src.rpm

Summary: PKCS#11 engine for OpenSSL
Name: engine_pkcs11
Version: 0.1.4
Release: %mkrel 1
License: BSD
Group: System/Libraries
Source0: http://www.opensc.org/files/%{name}-%{version}.tar.gz
Buildrequires: libp11-devel >= 0.2.1
Buildrequires: libopenssl-devel
URL: http://www.opensc.org/engine_pkcs11
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)

%description
Engine_pkcs11 is an implementation of an engine for OpenSSL. It can be loaded
using code, config file or command line and will pass 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. Originaly
this engine was a part of OpenSC, until OpenSC was split into several small
projects for improved flexibility.

%prep
%setup -q
cat > README.mandriva <<EOF
In Mandriva, the engine file has been placed in the
%{_libdir}/openssl/engines directory instead of the default
%{_libdir}/engines. This was done so in order to match our openssl
installation.

Considering this new path, below is the suggested change to openssl.cnf
in order to use this engine:

openssl_conf = openssl_def

[openssl_def]
engines = engine_section

[engine_section]
pkcs11 = pkcs11_section

[pkcs11_section]
engine_id = pkcs11
dynamic_path = %{_libdir}/openssl/engines/engine_pkcs11.so
MODULE_PATH = %{_libdir}/opensc-pkcs11.so
init = 0

EOF

chmod 0644 README.mandriva

%build
%configure
%make enginedir=%{_libdir}/openssl/engines

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std enginedir=%{_libdir}/openssl/engines

# remove unnecessary files
rm -f %{buildroot}%{_libdir}/openssl/engines/*.a

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/README doc/*.html doc/*.css README.mandriva
%{_libdir}/openssl/engines/*




%changelog
* Mon Nov 05 2007 Andreas Hasenack <andreas@mandriva.com> 0.1.4-1mdv2008.1
+ Revision: 106185
- updated to version 0.1.4


* Fri Jan 12 2007 Andreas Hasenack <andreas@mandriva.com> 0.1.3-3mdv2007.0
+ Revision: 107938
- rebuilt
- Import engine_pkcs11

* Mon Dec 05 2005 Andreas Hasenack <andreas@mandriva.com> 0.1.3-2mdk
- fix engine path to match openssl's
- added a README.mandriva file to explain this change

* Sat Dec 03 2005 Andreas Hasenack <andreas@mandriva.com> 0.1.3-1mdk
- packaged for Mandriva