Hello community,

here is the log from the commit of package opera for openSUSE:Factory:NonFree 
checked in at 2012-11-18 09:13:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory:NonFree/opera (Old)
 and      /work/SRC/openSUSE:Factory:NonFree/.opera.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opera", Maintainer is "orpha...@suse.de"

Changes:
--------
--- /work/SRC/openSUSE:Factory:NonFree/opera/opera.changes      2012-11-08 
21:51:21.000000000 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.opera.new/opera.changes 2012-11-18 
09:13:46.000000000 +0100
@@ -1,0 +2,5 @@
+Fri Nov 16 09:07:12 UTC 2012 - dli...@suse.com
+
+- Add the icon cache update to the spec file (bnc#783934) 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opera.spec ++++++
--- /var/tmp/diff_new_pack.tuYp0q/_old  2012-11-18 09:13:48.000000000 +0100
+++ /var/tmp/diff_new_pack.tuYp0q/_new  2012-11-18 09:13:48.000000000 +0100
@@ -36,6 +36,8 @@
 BuildRequires:  fdupes
 BuildRequires:  update-desktop-files
 BuildRequires:  xz
+Requires(post):   coreutils shared-mime-info desktop-file-utils 
hicolor-icon-theme
+Requires(postun): shared-mime-info desktop-file-utils hicolor-icon-theme
 Recommends:     %{name}-gtk = %{version}
 Recommends:     %{name}-kde4 = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -94,6 +96,37 @@
 %suse_update_desktop_file opera-browser
 %fdupes %{buildroot}%{_datadir}
 
+%post
+# update mime and desktop database
+%if 0%{?suse_version} > 1130
+%mime_database_post
+%desktop_database_post
+%icon_theme_cache_post
+%else
+if [ -f usr/bin/update-mime-database ] ; then
+  usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
+fi
+if [ -f usr/bin/update-desktop-database ] ; then
+  usr/bin/update-desktop-database > /dev/null || :
+fi
+%endif
+exit 0
+
+%postun
+%if 0%{?suse_version} > 1130
+%icon_theme_cache_postun
+%desktop_database_postun
+%mime_database_postun
+%else
+if [ -f usr/bin/update-mime-database ] ; then
+  usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
+fi
+if [ -f usr/bin/update-desktop-database ] ; then
+  usr/bin/update-desktop-database > /dev/null || :
+fi
+%endif
+exit 0
+
 %files
 %defattr(-,root,root)
 %doc %{_mandir}/man1/opera*



-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to