144 lines
4.7 KiB
RPMSpec
144 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package desktop-file-utils (Version 0.12)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: desktop-file-utils
|
|
BuildRequires: emacs-nox glib2-devel pkg-config popt-devel update-desktop-files
|
|
License: GNU General Public License (GPL)
|
|
Group: Development/Tools/Other
|
|
Autoreqprov: on
|
|
Version: 0.12
|
|
Release: 11
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: SuSEconfig.desktop-file-utils
|
|
Patch: desktop-file-utils-0.11-encoding.patch
|
|
PreReq: /bin/rm /bin/rmdir
|
|
Requires: /etc/profile.d/xdg-enviroment.sh
|
|
URL: http://www.freedesktop.org/wiki/Software_2fdesktop_2dfile_2dutils
|
|
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
|
|
%patch -p1
|
|
|
|
%build
|
|
%configure\
|
|
--with-lispdir=/usr/share/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
|
|
mkdir -p $RPM_BUILD_ROOT/etc/opt/kde3/share/applications
|
|
touch $RPM_BUILD_ROOT/etc/opt/kde3/share/applications/mimeinfo.cache
|
|
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/applications
|
|
touch $RPM_BUILD_ROOT/opt/kde3/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}/*
|
|
%{_datadir}/emacs/site-lisp/*.el*
|
|
%ghost %{_datadir}/applications/mimeinfo.cache
|
|
/sbin/conf.d/SuSEconfig.*
|
|
# Own directories to not require KDE installed.
|
|
%dir /etc/opt/kde3
|
|
%dir /etc/opt/kde3/share
|
|
%dir /etc/opt/kde3/share/applications
|
|
%ghost /etc/opt/kde3/share/applications/mimeinfo.cache
|
|
# Own directories to not require KDE installed.
|
|
%dir /opt/kde3
|
|
%dir /opt/kde3/share
|
|
%dir /opt/kde3/share/applications
|
|
%ghost /opt/kde3/share/applications/mimeinfo.cache
|
|
|
|
%changelog
|
|
* Fri Apr 27 2007 - sbrabec@suse.cz
|
|
- Fixed invalid error for missing "Encoding" (Freedesktop#10093).
|
|
* Thu Apr 19 2007 - sbrabec@suse.cz
|
|
- Correctly initialize XDG_DATA_DIRS in SuSEconfig (#240603).
|
|
* Fri Feb 23 2007 - sbrabec@suse.cz
|
|
- Updated to version 0.12:
|
|
* improves category validation code to not catch false positives
|
|
* make category validation code non-fatal
|
|
* fix mem leaks and double frees
|
|
* Mon Jan 15 2007 - sbrabec@suse.cz
|
|
- Spec file cleanup.
|
|
- Fixed path in SuSEconfig.desktop-file-utils.
|
|
* Mon Jan 08 2007 - ro@suse.de
|
|
- GNOME moved to /usr
|
|
* Fri Oct 20 2006 - sbrabec@suse.cz
|
|
- Updated to version 0.11:
|
|
* Validate desktop file categories.
|
|
* Use GKeyFile instead of the old egg code in
|
|
update-desktop-database.
|
|
* Use GOption instead of popt.
|
|
* Fix grammar problem in one of the strings.
|
|
* NULL terminate search patch in update-desktop-database.
|
|
* Fix language to encoding mapping to match spec.
|
|
* Sat Feb 25 2006 - aj@suse.de
|
|
- Reduce BuildRequires.
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Thu Mar 17 2005 - sbrabec@suse.cz
|
|
- Explicitly require /etc/profile.d/xdg-enviroment.sh.
|
|
* Wed Mar 16 2005 - sbrabec@suse.cz
|
|
- Ensure, that $XDG_DATA_DIRS is defined in
|
|
SuSEconfig.desktop-file-utils (#71978).
|
|
* Sun Feb 27 2005 - ro@suse.de
|
|
- try to fix postun script
|
|
* Fri Feb 25 2005 - sbrabec@suse.cz
|
|
- Added SuSEconfig.desktop-file-utils (#66605).
|
|
* Thu Jan 06 2005 - sbrabec@suse.cz
|
|
- Updated to version 0.10.
|
|
* Tue Aug 24 2004 - sbrabec@suse.cz
|
|
- Updated to version 0.7.
|
|
* Sun Jan 11 2004 - adrian@suse.de
|
|
- build as user
|
|
* Thu Aug 07 2003 - sbrabec@suse.cz
|
|
- Updated to actual CVS snapshot.
|
|
- Prefix changed to /opt/gnome (now depends on gnome-vfs).
|
|
* Tue Jul 29 2003 - ro@suse.de
|
|
- added gnome-filesystem to neededforbuild
|
|
* Mon Jun 02 2003 - sbrabec@suse.cz
|
|
- Initial SuSE package.
|