# # spec file for package libp11 (Version 0.2.2) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libp11 Version: 0.2.2 Release: 1 URL: http://www.opensc-project.org/libp11/ Group: Productivity/Security License: LGPL Summary: Library Implementing a Small Layer on Top of PKCS#11 API Source: %{name}-%{version}.tar.bz2 Patch: %{name}-%{version}-crash.patch Autoreqprov: on BuildRequires: openssl-devel pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Libp11 is a library implementing a small layer on top of PKCS#11 API to make using PKCS#11 implementations easier. The official name for PKCS#11 is "RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki)". Libp11 source code includes the official header files (version 2.20) and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki)". Authors: -------- Andreas Jellinghaus Kevin Stefanik Ludovic Rousseau Nils Larsch Olaf Kirch Stef Hoeben %package devel Group: Productivity/Security Summary: Library Implementing a Small Layer on Top of PKCS#11 API Requires: %{name} = %{version} glibc-devel openssl-devel libtool %description devel Libp11 is a library implementing a small layer on top of PKCS#11 API to make using PKCS#11 implementations easier. The official name for PKCS#11 is "RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki)". Libp11 source code include the official header files (version 2.20) and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki)". Authors: -------- Andreas Jellinghaus Kevin Stefanik Ludovic Rousseau Nils Larsch Olaf Kirch Stef Hoeben %prep %setup -q %patch -p1 %build export CFLAGS="$RPM_OPT_FLAGS" ./configure\ --prefix=/usr\ --libdir=/usr/%{_lib} make %{?jobs:-j %jobs} %install make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} cp -a COPYING doc/README doc/ChangeLog doc/*.css doc/*.html doc/api $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %post %run_ldconfig %postun %run_ldconfig %files %defattr (-, root, root) %doc %dir %{_defaultdocdir}/%{name} %doc %{_defaultdocdir}/%{name}/COPYING %doc %{_defaultdocdir}/%{name}/README %doc %{_defaultdocdir}/%{name}/ChangeLog %doc %{_defaultdocdir}/%{name}/*.html %doc %{_defaultdocdir}/%{name}/*.css /usr/%{_lib}/*.so.* %files devel %defattr (-, root, root) %doc %{_defaultdocdir}/%{name}/api /usr/%{_lib}/*.so /usr/%{_lib}/*.*a /usr/%{_lib}/pkgconfig/*.pc /usr/include/*.h %changelog -n libp11 * Tue Oct 03 2006 - sbrabec@suse.cz - Updated to version 0.2.2: * bug fixes * code cleanup * Fri May 12 2006 - sbrabec@suse.cz - New SuSE package, version 0.2.1.