From 2e809c117cbfd601505e24a8739c5db05f45fb26 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Jul 12 2009 21:00:38 +0000 Subject: Initial import. --- diff --git a/.cvsignore b/.cvsignore index e69de29..e435766 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pkcs11-helper-1.07.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..4e7c637 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pkcs11-helper-1_07-2_fc12:HEAD:pkcs11-helper-1.07-2.fc12.src.rpm:1247432394 diff --git a/pkcs11-helper.spec b/pkcs11-helper.spec new file mode 100644 index 0000000..42b2ad7 --- /dev/null +++ b/pkcs11-helper.spec @@ -0,0 +1,90 @@ +Name: pkcs11-helper +Version: 1.07 +Release: 2%{?dist} +Summary: A library for using PKCS#11 providers + +Group: Development/Libraries +License: GPLv2 or BSD +URL: http://www.opensc-project.org/pkcs11-helper/ +Source0: http://www.opensc-project.org/files/%{name}/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: doxygen graphviz +BuildRequires: openssl-devel + +%description +pkcs11-helper is a library that simplifies the interaction with PKCS#11 +providers for end-user applications using a simple API and optional OpenSSL +engine. The library allows using multiple PKCS#11 providers at the same time, +enumerating available token certificates, or selecting a certificate directly +by serialized id, handling card removal and card insert events, handling card +re-insert to a different slot, supporting session expiration and much more all +using a simple API. + +%package devel +Summary: Development files for pkcs11-helper +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: openssl-devel +Requires: pkgconfig +# for /usr/share/aclocal +Requires: automake + +%description devel +This package contains header files and documentation necessary for developing +programs using the pkcs11-helper library. + + +%prep +%setup -q + + +%build +%configure --disable-static --enable-doc +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +# Use %%doc to install documentation in a standard location +mkdir apidocdir +mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/api/ apidocdir/ +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/ + +# Remove libtool .la files +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING* README THANKS +%{_libdir}/libpkcs11-helper.so.* + + +%files devel +%defattr(-,root,root,-) +%doc apidocdir/* +%{_includedir}/pkcs11-helper-1.0/ +%{_libdir}/libpkcs11-helper.so +%{_libdir}/pkgconfig/libpkcs11-helper-1.pc +%{_datadir}/aclocal/pkcs11-helper-1.m4 +%{_mandir}/man8/pkcs11-helper-1.8* + + +%changelog +* Sat Jul 11 2009 Kalev Lember - 1.07-2 +- Make devel package depend on automake for /usr/share/aclocal + +* Tue Jun 23 2009 Kalev Lember - 1.07-1 +- Initial RPM release. diff --git a/sources b/sources index e69de29..5f2fd24 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d0034481a39af9e840702246e2ffa43e pkcs11-helper-1.07.tar.bz2