X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopensc.git;a=blobdiff_plain;f=opensc.spec;h=a8590f668546c810d57d84e30304a4d15e37eff8;hp=ec2579b000a7f767002a17bea69707c4f2a9b0af;hb=d6f32863f6a85db03f8748210e2e6891f8e7fc7c;hpb=74b896713cc840c87c53334587036870ea7fb8f7 diff --git a/opensc.spec b/opensc.spec index ec2579b..a8590f6 100644 --- a/opensc.spec +++ b/opensc.spec @@ -6,9 +6,15 @@ Release: 1 License: LGPL Group: Applications Source0: http://www.opensc.org/files/%{name}-%{version}.tar.gz +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 @@ -17,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 @@ -73,15 +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} @@ -93,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/lib mv -f $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/lib +# libscam.a is broken (contains libscrandom.a) and not needed (static module) +rm -f $RPM_BUILD_ROOT%{_libdir}/libscam.{a,la} + %clean rm -rf $RPM_BUILD_ROOT @@ -138,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