diff --git a/opensc.spec b/opensc.spec index 26c5f3c..fccd726 100644 --- a/opensc.spec +++ b/opensc.spec @@ -125,21 +125,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.opensc.notify.de %post /sbin/ldconfig -# Remove our PKCS#11 module from NSS DB, if there is NSS installed, because -# it is already loaded by p11-kit-proxy. Using both of them can cause -# race conditions and hard-to-debug problems -# TODO Remove with F30 or so -if [ -x /usr/bin/modutil ]; then - isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{opensc_module} || echo NO` - if [ ! "$isThere" == "NO" ]; then - modutil -delete %{opensc_module} -dbdir %{nssdb} -force || : - - fi - isThere=`modutil -rawlist -dbdir sql:%{nssdb} | grep %{opensc_module} || echo NO` - if [ ! "$isThere" == "NO" ]; then - modutil -delete %{opensc_module} -dbdir sql:%{nssdb} -force || : - fi -fi %postun /sbin/ldconfig