From d6f32863f6a85db03f8748210e2e6891f8e7fc7c Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 14 Mar 2003 14:30:10 +0000 Subject: [PATCH] - added cryptoflex patch (CryptoFlex 8k v2 support) - added mozilla plugin (signer) Changed files: opensc.spec -> 1.8 --- opensc.spec | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/opensc.spec b/opensc.spec index 5925488..a8590f6 100644 --- a/opensc.spec +++ b/opensc.spec @@ -10,9 +10,11 @@ Patch0: %{name}-nolibs.patch Patch1: %{name}-segv.patch Patch2: %{name}-lt.patch Patch3: %{name}-ssl0.9.7.patch +Patch4: %{name}-cryptoflex.patch URL: http://www.opensc.org/ BuildRequires: autoconf >= 2.52 BuildRequires: automake +BuildRequires: libassuan-devel BuildRequires: libtool >= 1:1.4.2-9 BUildRequires: openldap-devel BuildRequires: openssl-devel @@ -21,6 +23,8 @@ BuildRequires: pcsc-lite-devel BuildRequires: readline-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define mozplugindir /usr/lib/mozilla/plugins + %description libopensc is a library for accessing SmartCard devices using PC/SC Lite middleware package. It is also the core library of the OpenSC @@ -77,19 +81,37 @@ OpenSC module for PAM. %description -n pam_opensc -l pl Modu³ PAM OpenSC. +%package -n mozilla-plugin-opensc +Summary: OpenSC Signer plugin for Mozilla +Summary(pl): Wtyczka OpenSC Signer dla Mozilli +# libassuan is GPL +License: GPL +Group: X11/Applications +Requires: %{name} = %{version} +Requires: pinentry-gtk + +%description -n mozilla-plugin-opensc +OpenSC Signer plugin for Mozilla. + +%description -n mozilla-plugin-opensc -l pl +Wtyczka OpenSC Signer dla Mozilli. + %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} -%configure +%configure \ + --with-pin-entry=/usr/bin/pinentry-gtk \ + --with-plugin-dir="%{mozplugindir}" %{__make} @@ -149,3 +171,7 @@ rm -rf $RPM_BUILD_ROOT %files -n pam_opensc %defattr(644,root,root,755) %attr(755,root,root) /lib/security/pam_opensc.so + +%files -n mozilla-plugin-opensc +%defattr(644,root,root,755) +%attr(755,root,root) %{mozplugindir}/opensc-signer.so -- 2.43.0