diff --git a/SuSEconfig.desktop-file-utils b/SuSEconfig.desktop-file-utils deleted file mode 100644 index a96456c..0000000 --- a/SuSEconfig.desktop-file-utils +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2005 SuSE -# Author: Stanislav Brabec - -# Ensure, that $XDG_DATA_DIRS is set properly. (#71978, #240603) -if test "$PROFILEREAD" != true ; then - . $r/etc/profile -fi - -/usr/bin/update-desktop-database - -# -# end -# diff --git a/desktop-file-utils.changes b/desktop-file-utils.changes index a404527..b4459b4 100644 --- a/desktop-file-utils.changes +++ b/desktop-file-utils.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Feb 19 12:27:01 CET 2011 - vuntz@opensuse.org + +- Drop SuSEconfig.desktop-file-utils: we don't use SuSEconfig + anymore to run update-desktop-database, since we now rely on each + individual package to do that with the %desktop_database_post and + %desktop_database_postun macros. +- Remove %postun scriptlet: nothing will touch + /usr/local/share/applications/ automatically anymore, so removing + the files there won't be needed anymore. + ------------------------------------------------------------------- Tue Jan 18 08:41:03 CET 2011 - vuntz@opensuse.org diff --git a/desktop-file-utils.spec b/desktop-file-utils.spec index 59a7a04..74131b2 100644 --- a/desktop-file-utils.spec +++ b/desktop-file-utils.spec @@ -1,5 +1,5 @@ # -# spec file for package desktop-file-utils (Version 0.18) +# spec file for package desktop-file-utils # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,13 +19,12 @@ Name: desktop-file-utils Version: 0.18 -Release: 1 +Release: 2 License: GPLv2+ Summary: Utilities for Manipulating Desktop Files Url: http://www.freedesktop.org/wiki/Software/desktop-file-utils Group: Development/Tools/Other Source0: %{name}-%{version}.tar.bz2 -Source1: SuSEconfig.desktop-file-utils Source2: macros.desktop-file-utils # PATCH-FEATURE-OPENSUSE desktop-file-utils-suse-keys.patch vuntz@opensuse.org -- Handle SUSE-specific keys in validator. This is not strictly necessary, since they are prefixed with X-, but we can verify that the value has the right type. Patch0: desktop-file-utils-suse-keys.patch @@ -59,9 +58,6 @@ http://freedesktop.org/wiki/Specifications/desktop-entry-spec # manually do it. test ! -f %{buildroot}%{_datadir}/emacs/site-lisp/desktop-entry-mode.el install -D -m644 misc/desktop-entry-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/desktop-entry-mode.el -# SuSEconfig script -mkdir -p %{buildroot}/sbin/conf.d -install %{S:1} %{buildroot}/sbin/conf.d # Install rpm macros install -D -m644 %{S:2} %{buildroot}%{_sysconfdir}/rpm/macros.desktop-file-utils # Create ghosts based on default $XDG_DATA_DIRS: @@ -74,15 +70,6 @@ rm -rf %{buildroot} %post %{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true -%postun -# It is not allowed by FHS to own this file in RPM package, but we can -# purge it. Removal on update can be ignored, SuSEconfig will create it -# again, if needed. -if [ -d /usr/local/share/applications ] ; then - rm -f /usr/local/share/applications/mimeinfo.cache - rmdir --ignore-fail-on-non-empty /usr/local/share/applications -fi - %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README @@ -98,6 +85,5 @@ fi %dir %{_datadir}/emacs/site-lisp %{_datadir}/emacs/site-lisp/*.el* %{_sysconfdir}/rpm/macros.desktop-file-utils -/sbin/conf.d/SuSEconfig.* %changelog