Hello community, here is the log from the commit of package shared-mime-info for openSUSE:Factory checked in at 2017-07-12 19:32:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/shared-mime-info (Old) and /work/SRC/openSUSE:Factory/.shared-mime-info.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "shared-mime-info" Wed Jul 12 19:32:29 2017 rev:51 rq:508932 version:1.8 Changes: -------- --- /work/SRC/openSUSE:Factory/shared-mime-info/shared-mime-info.changes 2016-12-11 13:23:22.597233227 +0100 +++ /work/SRC/openSUSE:Factory/.shared-mime-info.new/shared-mime-info.changes 2017-07-12 19:32:33.153600375 +0200 @@ -1,0 +2,9 @@ +Tue Jun 27 11:09:32 UTC 2017 - dims...@opensuse.org + +- Replace %mime_database_post/postun with respective file triggers + in shared-mime-info: any file put into /usr/share/mime will + trigger the execution of the script. In order to not break the + macros short-term they are being redefined to %nil. +- Drop redundant %clean section. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ shared-mime-info.spec ++++++ --- /var/tmp/diff_new_pack.eCTEiL/_old 2017-07-12 19:32:33.905494289 +0200 +++ /var/tmp/diff_new_pack.eCTEiL/_new 2017-07-12 19:32:33.905494289 +0200 @@ -1,7 +1,7 @@ # # spec file for package shared-mime-info # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -73,12 +73,13 @@ %check make check -%clean -rm -rf $RPM_BUILD_ROOT +%filetriggerin -- %{_datadir}/mime +export PKGSYSTEM_ENABLE_FSYNC=0 +%{_bindir}/update-mime-database "%{_datadir}/mime" -%post +%filetriggerpostun -- %{_datadir}/mime export PKGSYSTEM_ENABLE_FSYNC=0 -%{_bindir}/update-mime-database %{_datadir}/mime || true +[ -x %{_bindir}/update-mime-database ] && %{_bindir}/update-mime-database "%{_datadir}/mime" %files %defattr (-, root, root) ++++++ macros.shared-mime-info ++++++ --- /var/tmp/diff_new_pack.eCTEiL/_old 2017-07-12 19:32:33.937489775 +0200 +++ /var/tmp/diff_new_pack.eCTEiL/_new 2017-07-12 19:32:33.937489775 +0200 @@ -15,27 +15,10 @@ # ### -# On install, update the mime database +# macros are place holders to not unnescessarily break packages; package converted to file triggers %mime_database_post() \ -export PKGSYSTEM_ENABLE_FSYNC=0 \ -if test -x %{_bindir}/update-mime-database; then \ -%if "x%1" != "x%%1" \ - %{_bindir}/update-mime-database "%1" || true \ -%else \ - %{_bindir}/update-mime-database "%{_datadir}/mime" || true \ -%endif \ -fi +%nil -# On uninstall, update the mime database. Note: we ignore upgrades (already -# handled in %post of the new package). +# macros are place holders to not unnescessarily break packages; package converted to file triggers %mime_database_postun() \ -export PKGSYSTEM_ENABLE_FSYNC=0 \ -if [ $1 -eq 0 ]; then \ - if test -x %{_bindir}/update-mime-database; then \ -%if "x%1" != "x%%1" \ - %{_bindir}/update-mime-database "%1" || true \ -%else \ - %{_bindir}/update-mime-database "%{_datadir}/mime" || true \ -%endif \ - fi \ -fi +%nil