2007-01-08 00:34:31 +01:00
#
2011-02-19 12:38:32 +01:00
# spec file for package desktop-file-utils
2007-01-08 00:34:31 +01:00
#
2019-05-15 08:53:11 +02:00
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
2007-01-08 00:34:31 +01:00
#
2009-06-18 17:09:08 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-05-15 08:53:11 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-08 00:34:31 +01:00
#
Name : desktop-file-utils
2016-10-28 18:16:39 +02:00
Version : 0.23
2011-12-20 16:31:46 +01:00
Release : 0
2010-09-10 15:03:30 +02:00
Summary : Utilities for Manipulating Desktop Files
2018-03-05 09:51:58 +01:00
License : GPL-2.0-or-later
2007-01-08 00:34:31 +01:00
Group : Development/Tools/Other
2019-05-15 08:53:11 +02:00
URL : http://www.freedesktop.org/wiki/Software/desktop-file-utils
2011-12-20 16:31:46 +01:00
Source0 : http://www.freedesktop.org/software/desktop-file-utils/releases/%{name} -%{version} .tar.xz
2012-10-02 09:27:58 +02:00
Source1 : suse-update-mime-defaults
2010-10-10 15:21:16 +02:00
Source2 : macros.desktop-file-utils
2010-09-10 15:03:30 +02:00
# 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.
2010-02-19 13:03:00 +01:00
Patch0 : desktop-file-utils-suse-keys.patch
2019-07-01 10:46:35 +02:00
# PATCH-FIX-UPSTREAM desktop-file-utils-add-Pantheon.patch fdo#105785 bnc#1094774 qzhao@suse.com -- Backporting upstream patch to Add Pantheon to desktop env list.
Patch1 : desktop-file-utils-add-Pantheon.patch
2010-09-10 15:03:30 +02:00
BuildRequires : glib2-devel
2019-07-23 18:14:37 +02:00
BuildRequires : pkg-config
2011-12-20 16:31:46 +01:00
BuildRequires : xz
2019-05-15 08:53:11 +02:00
#!BuildIgnore: dbus-1-x11
2010-02-19 13:03:00 +01:00
Requires : aaa_base
2018-03-05 09:51:58 +01:00
Requires : awk
Requires : coreutils
2007-01-08 00:34:31 +01:00
%description
2009-08-29 01:05:50 +02:00
This packages contains a couple of command line utilities for
working with desktop files.
2007-01-08 00:34:31 +01:00
2009-08-29 01:05:50 +02:00
More information about desktop files can be found at:
http://freedesktop.org/wiki/Specifications/desktop-entry-spec
2007-01-08 00:34:31 +01:00
%prep
2010-09-10 15:03:30 +02:00
%setup -q
2015-03-12 22:15:17 +01:00
%patch0
2019-07-01 10:46:35 +02:00
%patch1 -p1
2007-01-08 00:34:31 +01:00
%build
2009-08-29 01:05:50 +02:00
%configure \
--with-lispdir=%{_datadir} /emacs/site-lisp
2018-03-05 09:51:58 +01:00
make %{?_smp_mflags} V=1
2007-01-08 00:34:31 +01:00
%install
2015-03-12 22:15:17 +01:00
make DESTDIR=%{buildroot} install %{?_smp_mflags}
2010-09-10 13:15:25 +02:00
# we don't want to buildrequire emacs, but recent automake make it
# impossible to install a lisp file without emacs installed. So we
# 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
2012-10-02 09:27:58 +02:00
# Install suse-update-mime-defaults
install -m0755 %{SOURCE1} %{buildroot} %{_bindir} /suse-update-mime-defaults
2010-10-10 15:21:16 +02:00
# Install rpm macros
2019-05-15 08:53:11 +02:00
install -D -m644 %{SOURCE2} %{buildroot} %{_rpmmacrodir} /macros.desktop-file-utils
2007-01-08 00:34:31 +01:00
# Create ghosts based on default $XDG_DATA_DIRS:
2010-09-10 15:03:30 +02:00
mkdir -p %{buildroot} %{_datadir} /applications
touch %{buildroot} %{_datadir} /applications/mimeinfo.cache
2007-01-08 00:34:31 +01:00
2017-06-30 14:15:06 +02:00
%filetriggerin -- %{_datadir} /applications
%{_bindir} /update-desktop-database --quiet %{_datadir} /applications || true
%{_bindir} /suse-update-mime-defaults || true
%filetriggerpostun -- %{_datadir} /applications
2011-10-19 16:39:25 +02:00
%{_bindir} /update-desktop-database --quiet %{_datadir} /applications || true
2012-10-02 09:27:58 +02:00
%{_bindir} /suse-update-mime-defaults || true
2010-10-10 15:21:16 +02:00
2007-01-08 00:34:31 +01:00
%files
%defattr (-, root, root)
2019-05-15 08:53:11 +02:00
%license COPYING
%doc AUTHORS ChangeLog NEWS README
2011-12-20 16:31:46 +01:00
%{_bindir} /desktop-file-edit
2010-09-10 15:03:30 +02:00
%{_bindir} /desktop-file-install
%{_bindir} /desktop-file-validate
2012-10-02 09:27:58 +02:00
%{_bindir} /suse-update-mime-defaults
2010-09-10 15:03:30 +02:00
%{_bindir} /update-desktop-database
%ghost %{_datadir} /applications/mimeinfo.cache
2011-12-20 16:31:46 +01:00
%{_mandir} /man1/desktop-file-edit.1*
2010-09-10 15:03:30 +02:00
%{_mandir} /man1/desktop-file-install.1*
%{_mandir} /man1/desktop-file-validate.1*
%{_mandir} /man1/update-desktop-database.1*
2009-08-29 01:05:50 +02:00
# Own directories to not require emacs installed.
%dir %{_datadir} /emacs
%dir %{_datadir} /emacs/site-lisp
2007-01-16 17:14:07 +01:00
%{_datadir} /emacs/site-lisp/*.el*
2019-05-15 08:53:11 +02:00
%{_rpmmacrodir} /macros.desktop-file-utils
2008-03-10 17:45:17 +01:00
2007-02-25 23:22:18 +01:00
%changelog