2007-01-07 23:34:31 +00:00
#
2011-02-19 11:38:32 +00:00
# spec file for package desktop-file-utils
2007-01-07 23:34:31 +00:00
#
2011-01-14 00:24:54 +00:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-07 23:34:31 +00:00
#
2009-06-18 15:09:08 +00: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.
2007-01-07 23:34:31 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2008-03-10 16:45:17 +00:00
2007-01-07 23:34:31 +00:00
Name : desktop-file-utils
2011-01-13 10:18:47 +00:00
Version : 0.18
2011-02-20 23:50:48 +00:00
Release : 8
2010-02-19 12:03:00 +00:00
License : GPLv2+
2010-09-10 13:03:30 +00:00
Summary : Utilities for Manipulating Desktop Files
Url : http://www.freedesktop.org/wiki/Software/desktop-file-utils
2007-01-07 23:34:31 +00:00
Group : Development/Tools/Other
2010-02-19 12:03:00 +00:00
Source0 : %{name} -%{version} .tar.bz2
2010-10-10 13:21:16 +00:00
Source2 : macros.desktop-file-utils
2010-09-10 13:03:30 +00: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 12:03:00 +00:00
Patch0 : desktop-file-utils-suse-keys.patch
2010-09-10 13:03:30 +00:00
BuildRequires : glib2-devel
BuildRequires : pkg-config
PreReq : /bin/rm
PreReq : /bin/rmdir
2010-02-19 12:03:00 +00:00
Requires : aaa_base
2007-01-07 23:34:31 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
2009-08-28 23:05:50 +00:00
This packages contains a couple of command line utilities for
working with desktop files.
2007-01-07 23:34:31 +00:00
2009-08-28 23:05:50 +00:00
More information about desktop files can be found at:
http://freedesktop.org/wiki/Specifications/desktop-entry-spec
2007-01-07 23:34:31 +00:00
%prep
2010-09-10 13:03:30 +00:00
%setup -q
2010-02-19 12:03:00 +00:00
%patch0
2007-01-07 23:34:31 +00:00
%build
2009-08-28 23:05:50 +00:00
%configure \
--with-lispdir=%{_datadir} /emacs/site-lisp
2010-09-10 13:03:30 +00:00
%__make %{?_smp_mflags}
2007-01-07 23:34:31 +00:00
%install
2007-02-25 22:22:18 +00:00
%makeinstall
2010-09-10 11:15:25 +00: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
2010-10-10 13:21:16 +00:00
# Install rpm macros
install -D -m644 %{S:2} %{buildroot} %{_sysconfdir} /rpm/macros.desktop-file-utils
2007-01-07 23:34:31 +00:00
# Create ghosts based on default $XDG_DATA_DIRS:
2010-09-10 13:03:30 +00:00
mkdir -p %{buildroot} %{_datadir} /applications
touch %{buildroot} %{_datadir} /applications/mimeinfo.cache
2007-01-07 23:34:31 +00:00
%clean
2010-09-10 13:03:30 +00:00
rm -rf %{buildroot}
2007-01-07 23:34:31 +00:00
2010-10-10 13:21:16 +00:00
%post
%{_bindir} /update-desktop-database --quiet %{_datadir} /applications || true
2007-01-07 23:34:31 +00:00
%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
2010-09-10 13:03:30 +00:00
%{_bindir} /desktop-file-install
%{_bindir} /desktop-file-validate
%{_bindir} /update-desktop-database
%ghost %{_datadir} /applications/mimeinfo.cache
%{_mandir} /man1/desktop-file-install.1*
%{_mandir} /man1/desktop-file-validate.1*
%{_mandir} /man1/update-desktop-database.1*
2009-08-28 23:05:50 +00:00
# Own directories to not require emacs installed.
%dir %{_datadir} /emacs
%dir %{_datadir} /emacs/site-lisp
2007-01-16 16:14:07 +00:00
%{_datadir} /emacs/site-lisp/*.el*
2010-10-10 13:21:16 +00:00
%{_sysconfdir} /rpm/macros.desktop-file-utils
2008-03-10 16:45:17 +00:00
2007-02-25 22:22:18 +00:00
%changelog