From c8cc989effe46468d0d344a1ea66989b904c11991c2d8174ff35bb26d3fc8895 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 2 Oct 2020 08:45:02 +0000 Subject: [PATCH] Accepting request 839117 from home:msmeissn:branches:security OBS-URL: https://build.opensuse.org/request/show/839117 OBS-URL: https://build.opensuse.org/package/show/security/eid-mw?expand=0&rev=4 --- eid-mw.spec | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/eid-mw.spec b/eid-mw.spec index 0732573..2e0c10a 100644 --- a/eid-mw.spec +++ b/eid-mw.spec @@ -139,9 +139,12 @@ mv %{buildroot}/usr/lib/mozilla/pkcs11-modules %{buildroot}%{_libdir}/mozilla/ | rm -f %{buildroot}%{_datadir}/applications/eid-viewer.desktop desktop-file-install --dir %{buildroot}%{_datadir}/applications --add-category="Office;Viewer;" --vendor fedict plugins_tools/eid-viewer/eid-viewer.desktop || true +%find_lang about-eid-mw +%find_lang dialogs-beid +%find_lang eid-viewer -%post -n eid-mw-libs -/sbin/ldconfig + +%post -n eid-mw-libs -p /sbin/ldconfig %post -n eid-mw-firefox if /usr/bin/pgrep 'firefox' &>/dev/null; then @@ -150,9 +153,6 @@ elif /usr/bin/pgrep 'iceweasel' &>/dev/null; then echo "INFO: You may have to restart Iceweasel for the Belgium eID add-on to work." >&2 fi -%post -n eid-viewer -[ -x /usr/bin/glib-compile-schemas ] && /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas - %postun -n eid-mw-libs /sbin/ldconfig ### Make pcscd reread configuration and rescan USB bus. @@ -160,7 +160,7 @@ if /sbin/service pcscd status &>/dev/null; then %{_sbindir}/pcscd -H &>/dev/null || : fi -%files +%files -f about-eid-mw.lang -f dialogs-beid.lang %defattr(-, root, root, 0755) %doc AUTHORS COPYING %exclude %{_libdir}/*.la @@ -173,10 +173,6 @@ fi /etc/xdg/autostart/beid-update-nssdb.desktop %{_bindir}/about-eid-mw %{_bindir}/beid-update-nssdb -/usr/share/locale/*/LC_MESSAGES/about-eid-mw.mo -/usr/share/locale/*/LC_MESSAGES/dialogs-beid.mo - - %files libs %defattr(-,root,root) @@ -218,10 +214,9 @@ fi %{_libdir}/pkgconfig/libbeidpkcs11.pc -%files -n eid-viewer +%files -n eid-viewer -f eid-viewer.lang %defattr(-,root,root,0755) %{_bindir}/eid-viewer -%{_datadir}/locale/*/LC_MESSAGES/eid-viewer.mo %{_datadir}/applications/fedict-eid-viewer.desktop %{_datadir}/eid-mw/ %{_datadir}/metainfo/