2007-01-08 00:34:31 +01:00
|
|
|
#
|
2008-03-10 17:45:17 +01:00
|
|
|
# spec file for package desktop-file-utils (Version 0.15)
|
2007-01-08 00:34:31 +01:00
|
|
|
#
|
2009-06-18 17:09:08 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products 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.
|
|
|
|
|
2007-01-08 00:34:31 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-10 17:45:17 +01:00
|
|
|
|
2007-01-08 00:34:31 +01:00
|
|
|
Name: desktop-file-utils
|
2008-03-10 17:45:17 +01:00
|
|
|
BuildRequires: emacs-nox glib2-devel pkg-config
|
2007-07-13 18:41:13 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-08 00:34:31 +01:00
|
|
|
Group: Development/Tools/Other
|
2008-03-10 17:45:17 +01:00
|
|
|
Version: 0.15
|
2009-08-21 16:38:17 +02:00
|
|
|
Release: 83
|
2007-01-08 00:34:31 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: SuSEconfig.desktop-file-utils
|
2007-06-07 13:13:00 +02:00
|
|
|
Patch: desktop-file-utils-suse-keys.patch
|
2007-01-08 00:34:31 +01:00
|
|
|
PreReq: /bin/rm /bin/rmdir
|
2007-09-12 16:47:43 +02:00
|
|
|
Requires: aaa_base >= 10.1
|
2007-10-29 15:37:48 +01:00
|
|
|
Url: http://www.freedesktop.org/wiki/Software/desktop-file-utils
|
2007-01-08 00:34:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: Utilities for Manipulating Desktop Files
|
|
|
|
|
|
|
|
%description
|
|
|
|
Desktop-file-utils contains a couple of command line utilities for
|
|
|
|
working with desktop entries.
|
|
|
|
|
|
|
|
Right now the only documentation is "desktop-file-install --help".
|
|
|
|
desktop-file-validate takes a single argument, the file to validate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Havoc Pennington <hp@redhat.com>
|
|
|
|
Alex Larsson <alexl@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2007-06-07 13:13:00 +02:00
|
|
|
%patch
|
2007-01-08 00:34:31 +01:00
|
|
|
|
|
|
|
%build
|
2007-06-07 13:13:00 +02:00
|
|
|
%configure
|
2007-01-16 17:14:07 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
2007-01-08 00:34:31 +01:00
|
|
|
|
|
|
|
%install
|
2007-02-25 23:22:18 +01:00
|
|
|
%makeinstall
|
2007-01-08 00:34:31 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin/conf.d
|
|
|
|
install %{S:1} $RPM_BUILD_ROOT/sbin/conf.d
|
|
|
|
# Create ghosts based on default $XDG_DATA_DIRS:
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
|
|
|
touch $RPM_BUILD_ROOT/usr/share/applications/mimeinfo.cache
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%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
|
2007-06-07 13:13:00 +02:00
|
|
|
rm -f /usr/local/share/applications/mimeinfo.cache
|
|
|
|
rmdir --ignore-fail-on-non-empty /usr/local/share/applications
|
2007-01-08 00:34:31 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
2007-01-16 17:14:07 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/emacs/site-lisp/*.el*
|
|
|
|
%ghost %{_datadir}/applications/mimeinfo.cache
|
2007-01-08 00:34:31 +01:00
|
|
|
/sbin/conf.d/SuSEconfig.*
|
2008-03-10 17:45:17 +01:00
|
|
|
|
2007-02-25 23:22:18 +01:00
|
|
|
%changelog
|