diff --git a/desktop-file-utils.changes b/desktop-file-utils.changes index 4a32597..78b5863 100644 --- a/desktop-file-utils.changes +++ b/desktop-file-utils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 31 16:41:20 CEST 2019 - sbrabec@suse.com + +- Remove BuildRequires: xz. Unpacking xz now works out of the box. +- Mute %filetriggerpostun on uninstall. + ------------------------------------------------------------------- Fri Jul 19 22:06:36 CEST 2019 - sbrabec@suse.com diff --git a/desktop-file-utils.spec b/desktop-file-utils.spec index 1702f8e..2893ed5 100644 --- a/desktop-file-utils.spec +++ b/desktop-file-utils.spec @@ -32,8 +32,10 @@ Patch0: desktop-file-utils-suse-keys.patch Patch1: desktop-file-utils-add-Pantheon.patch BuildRequires: glib2-devel BuildRequires: pkg-config -BuildRequires: xz #!BuildIgnore: dbus-1-x11 +# We need explicit requirement here, as these are required by +# %%filetriggerin that could be started early during the installation +# process. Requires: aaa_base Requires: awk Requires: coreutils @@ -75,8 +77,10 @@ touch %{buildroot}%{_datadir}/applications/mimeinfo.cache %{_bindir}/suse-update-mime-defaults || true %filetriggerpostun -- %{_datadir}/applications -%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true -%{_bindir}/suse-update-mime-defaults || true +if test -f %{_bindir}/update-desktop-database ; then + %{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true + %{_bindir}/suse-update-mime-defaults || true +fi %files %defattr(-, root, root)