|
|
bd30646 |
Name: pkcs11-helper
|
|
|
bd30646 |
Version: 1.07
|
|
|
bd30646 |
Release: 2%{?dist}
|
|
|
bd30646 |
Summary: A library for using PKCS#11 providers
|
|
|
bd30646 |
|
|
|
bd30646 |
Group: Development/Libraries
|
|
|
bd30646 |
License: GPLv2 or BSD
|
|
|
bd30646 |
URL: http://www.opensc-project.org/pkcs11-helper/
|
|
|
bd30646 |
Source0: http://www.opensc-project.org/files/%{name}/%{name}-%{version}.tar.bz2
|
|
|
bd30646 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
bd30646 |
|
|
|
bd30646 |
BuildRequires: doxygen graphviz
|
|
|
bd30646 |
BuildRequires: openssl-devel
|
|
|
bd30646 |
|
|
|
bd30646 |
%description
|
|
|
bd30646 |
pkcs11-helper is a library that simplifies the interaction with PKCS#11
|
|
|
bd30646 |
providers for end-user applications using a simple API and optional OpenSSL
|
|
|
bd30646 |
engine. The library allows using multiple PKCS#11 providers at the same time,
|
|
|
bd30646 |
enumerating available token certificates, or selecting a certificate directly
|
|
|
bd30646 |
by serialized id, handling card removal and card insert events, handling card
|
|
|
bd30646 |
re-insert to a different slot, supporting session expiration and much more all
|
|
|
bd30646 |
using a simple API.
|
|
|
bd30646 |
|
|
|
bd30646 |
%package devel
|
|
|
bd30646 |
Summary: Development files for pkcs11-helper
|
|
|
bd30646 |
Group: Development/Libraries
|
|
|
bd30646 |
Requires: %{name} = %{version}-%{release}
|
|
|
bd30646 |
Requires: openssl-devel
|
|
|
bd30646 |
Requires: pkgconfig
|
|
|
bd30646 |
# for /usr/share/aclocal
|
|
|
bd30646 |
Requires: automake
|
|
|
bd30646 |
|
|
|
bd30646 |
%description devel
|
|
|
bd30646 |
This package contains header files and documentation necessary for developing
|
|
|
bd30646 |
programs using the pkcs11-helper library.
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%prep
|
|
|
bd30646 |
%setup -q
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%build
|
|
|
bd30646 |
%configure --disable-static --enable-doc
|
|
|
bd30646 |
make %{?_smp_mflags}
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%install
|
|
|
bd30646 |
rm -rf $RPM_BUILD_ROOT
|
|
|
bd30646 |
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
bd30646 |
|
|
|
bd30646 |
# Use %%doc to install documentation in a standard location
|
|
|
bd30646 |
mkdir apidocdir
|
|
|
bd30646 |
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/api/ apidocdir/
|
|
|
bd30646 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/
|
|
|
bd30646 |
|
|
|
bd30646 |
# Remove libtool .la files
|
|
|
bd30646 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%clean
|
|
|
bd30646 |
rm -rf $RPM_BUILD_ROOT
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%post -p /sbin/ldconfig
|
|
|
bd30646 |
|
|
|
bd30646 |
%postun -p /sbin/ldconfig
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%files
|
|
|
bd30646 |
%defattr(-,root,root,-)
|
|
|
bd30646 |
%doc AUTHORS ChangeLog COPYING* README THANKS
|
|
|
bd30646 |
%{_libdir}/libpkcs11-helper.so.*
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%files devel
|
|
|
bd30646 |
%defattr(-,root,root,-)
|
|
|
bd30646 |
%doc apidocdir/*
|
|
|
bd30646 |
%{_includedir}/pkcs11-helper-1.0/
|
|
|
bd30646 |
%{_libdir}/libpkcs11-helper.so
|
|
|
bd30646 |
%{_libdir}/pkgconfig/libpkcs11-helper-1.pc
|
|
|
bd30646 |
%{_datadir}/aclocal/pkcs11-helper-1.m4
|
|
|
bd30646 |
%{_mandir}/man8/pkcs11-helper-1.8*
|
|
|
bd30646 |
|
|
|
bd30646 |
|
|
|
bd30646 |
%changelog
|
|
|
bd30646 |
* Sat Jul 11 2009 Kalev Lember <kalev@smartlink.ee> - 1.07-2
|
|
|
bd30646 |
- Make devel package depend on automake for /usr/share/aclocal
|
|
|
bd30646 |
|
|
|
bd30646 |
* Tue Jun 23 2009 Kalev Lember <kalev@smartlink.ee> - 1.07-1
|
|
|
bd30646 |
- Initial RPM release.
|