File pkcs11-helper.spec of Package pkcs11-helper
#
# spec file for package pkcs11-helper (Version 1.06)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: pkcs11-helper
BuildRequires: doxygen libgnutls-devel libopenssl-devel mozilla-nss-devel pkg-config
Version: 1.06
Release: 1
PreReq: %{insserv_prereq} %{fillup_prereq}
Group: System/Libraries
License: BSD 3-Clause; GPL v2 only
Url: http://www.opensc-project.org/pkcs11-helper/
Summary: Helper Library for the Use with Smart Cards and the PKCS#11 API
Source: http://www.opensc-project.org/files/pkcs11-helper/%{name}-%{version}.tar.bz2
Requires: libpkcs11-helper1 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
pkcs11-helper allows using multiple PKCS#11 providers at the same
time and selecting keys by id, label or certificate subject.
Besides it covers the following topics: * Handling card removal
and card insert events
* Handling card re-insert to a different slot
* Supporting session expiration serialization
* and much more All this is possible using a simple API.
Authors:
--------
Alon Bar-Lev <alon.barlev@gmail.com>
%package -n libpkcs11-helper1
License: BSD 3-Clause; GPL v2 only
Group: System/Libraries
Summary: Helper Library for the Use with Smart Cards and the PKCS#11 API
Requires: %{name} >= %{version}
%description -n libpkcs11-helper1
pkcs11-helper allows using multiple PKCS#11 providers at the same time,
selecting keys by id, label or certificate subject, handling card
removal and card insert events, handling card re-insert to a different
slot, supporting session expiration serialization and much more, all
using a simple API.
Authors:
--------
Alon Bar-Lev <alon.barlev@gmail.com>
%package devel
License: BSD 3-Clause; GPL v2 only
Group: Development/Libraries/C and C++
Summary: Helper Library for the Use with Smart Cards and the PKCS#11 API
Requires: %{name} = %{version} libgnutls-devel libopenssl-devel mozilla-nss-devel
%description devel
pkcs11-helper allows using multiple PKCS#11 providers at the same time,
selecting keys by id, label or certificate subject, handling card
removal and card insert events, handling card re-insert to a different
slot, supporting session expiration serialization and much more, all
using a simple API.
Authors:
--------
Alon Bar-Lev <alon.barlev@gmail.com>
%prep
%setup -q
%build
autoreconf -f -i
%configure\
--enable-doc\
--docdir=%{_docdir}/%{name}
make %{?jobs:-j%jobs}
%install
%makeinstall
cp -a AUTHORS ChangeLog THANKS $RPM_BUILD_ROOT%{_docdir}/%{name}/
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libpkcs11-helper1 -p /sbin/ldconfig
%postun -n libpkcs11-helper1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%exclude %{_docdir}/%{name}/api
%doc %{_mandir}/man8/*.*
%files -n libpkcs11-helper1
%defattr(-,root,root)
%{_libdir}/libpkcs11-helper.so.*
%files devel
%defattr(-,root,root)
%doc %{_docdir}/%{name}/api
%{_includedir}/pkcs11-helper-1.0
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_libdir}/*.*a
%{_datadir}/aclocal/*.m4
%changelog
* Mon Sep 08 2008 sbrabec@suse.cz
- Updated to version 1.06:
* Portability fixes.
* Tue Apr 15 2008 ro@suse.de
- added baselibs.conf file for multilib support
* Wed Apr 02 2008 sbrabec@suse.cz
- Updated to version 1.05:
* Export pkcs11h_logout().
* Added NSS crypto engine.
* Added new slotevent mode (poll vs fetch).
* Add more invalid characters to serialization string.
* Fix openssl decrypt return code.
* Wed Aug 08 2007 sbrabec@suse.cz
- Fixed dependencies to allow to install more instances of library.
* Wed Aug 01 2007 sbrabec@suse.cz
- New SuSE package, version 1.03.