Accepting request 62144 from X11:common:Factory
Accepted submit request 62144 from user vuntz OBS-URL: https://build.opensuse.org/request/show/62144 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/desktop-file-utils?expand=0&rev=31
This commit is contained in:
commit
4826b44c92
@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Copyright (c) 2005 SuSE
|
|
||||||
# Author: Stanislav Brabec <sbrabec@suse.cz>
|
|
||||||
|
|
||||||
# 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
|
|
||||||
#
|
|
@ -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
|
Tue Jan 18 08:41:03 CET 2011 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ Summary: Utilities for Manipulating Desktop Files
|
|||||||
Url: http://www.freedesktop.org/wiki/Software/desktop-file-utils
|
Url: http://www.freedesktop.org/wiki/Software/desktop-file-utils
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: SuSEconfig.desktop-file-utils
|
|
||||||
Source2: macros.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.
|
# 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
|
Patch0: desktop-file-utils-suse-keys.patch
|
||||||
@ -59,9 +58,6 @@ http://freedesktop.org/wiki/Specifications/desktop-entry-spec
|
|||||||
# manually do it.
|
# manually do it.
|
||||||
test ! -f %{buildroot}%{_datadir}/emacs/site-lisp/desktop-entry-mode.el
|
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
|
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 rpm macros
|
||||||
install -D -m644 %{S:2} %{buildroot}%{_sysconfdir}/rpm/macros.desktop-file-utils
|
install -D -m644 %{S:2} %{buildroot}%{_sysconfdir}/rpm/macros.desktop-file-utils
|
||||||
# Create ghosts based on default $XDG_DATA_DIRS:
|
# Create ghosts based on default $XDG_DATA_DIRS:
|
||||||
@ -74,15 +70,6 @@ rm -rf %{buildroot}
|
|||||||
%post
|
%post
|
||||||
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true
|
%{_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
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||||
@ -98,6 +85,5 @@ fi
|
|||||||
%dir %{_datadir}/emacs/site-lisp
|
%dir %{_datadir}/emacs/site-lisp
|
||||||
%{_datadir}/emacs/site-lisp/*.el*
|
%{_datadir}/emacs/site-lisp/*.el*
|
||||||
%{_sysconfdir}/rpm/macros.desktop-file-utils
|
%{_sysconfdir}/rpm/macros.desktop-file-utils
|
||||||
/sbin/conf.d/SuSEconfig.*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user