File pkcs11-helper.spec of Package pkcs11-helper

#
# spec file for package pkcs11-helper (Version 1.07)
#
# Copyright (c) 2010 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.07
Release:        2
Group:          System/Libraries
License:        BSD3c ; GPLv2
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
Source2:        baselibs.conf
Requires:       libpkcs11-helper1 = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# remove me when pkgconfig Libs.Private misbehaviours are fixed
Patch:          pkcs11-helper-1.06-pkgconfig.patch

%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:        BSD3c ; GPLv2
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:        BSD3c ; GPLv2
Group:          Development/Libraries/C and C++
Summary:        Helper Library for the Use with Smart Cards and the PKCS#11 API
Requires:       %{name} = %{version} libopenssl-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
%patch

%build
%if %suse_version > 1020
autoreconf -f -i
%endif
%configure --disable-static --with-pic\
	--enable-doc\
	--docdir=%{_docdir}/%{name}
make %{?jobs:-j%jobs}

%install
%makeinstall
cp -a AUTHORS ChangeLog THANKS $RPM_BUILD_ROOT%{_docdir}/%{name}/
%{__rm} -f %{buildroot}%{_libdir}/*.la

%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
%{_datadir}/aclocal/*.m4

%changelog