desktop-file-utils/desktop-file-utils.spec
Vincent Untz c35fe4bbbb Accepting request 32916 from home:vuntz:branches:X11:common:Factory
Copy from home:vuntz:branches:X11:common:Factory/desktop-file-utils via accept of submit request 32916 revision 4.
Request was accepted with message:
Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/32916
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/desktop-file-utils?expand=0&rev=8
2010-02-19 12:03:00 +00:00

86 lines
2.6 KiB
RPMSpec

#
# spec file for package desktop-file-utils (Version 0.15)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: desktop-file-utils
BuildRequires: glib2-devel pkg-config
License: GPLv2+
Group: Development/Tools/Other
Version: 0.15
Release: 85
Source0: %{name}-%{version}.tar.bz2
Source1: SuSEconfig.desktop-file-utils
Patch0: desktop-file-utils-suse-keys.patch
Patch1: desktop-file-utils-LXDE-key.patch
PreReq: /bin/rm /bin/rmdir
Requires: aaa_base
Url: http://www.freedesktop.org/wiki/Software/desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Utilities for Manipulating Desktop Files
%description
This packages contains a couple of command line utilities for
working with desktop files.
More information about desktop files can be found at:
http://freedesktop.org/wiki/Specifications/desktop-entry-spec
%prep
%setup
%patch0
%patch1 -p1
%build
%configure \
--with-lispdir=%{_datadir}/emacs/site-lisp
make %{?jobs:-j%jobs}
%install
%makeinstall
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
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
%{_bindir}/*
# Own directories to not require emacs installed.
%dir %{_datadir}/emacs
%dir %{_datadir}/emacs/site-lisp
%{_datadir}/emacs/site-lisp/*.el*
%ghost %{_datadir}/applications/mimeinfo.cache
/sbin/conf.d/SuSEconfig.*
%changelog