File xdg-user-dirs.spec of Package xdg-user-dirs
#
# spec file for package xdg-user-dirs (Version 0.10)
#
# Copyright (c) 2008 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: xdg-user-dirs
BuildRequires: make
License: GPL v2 only
Group: System/GUI/Other
Summary: Utilities to handle user data directories
Version: 0.10
Release: 1
Url: http://freedesktop.org/wiki/Software/xdg-user-dirs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %name-%{version}.tar.bz2
%description
xdg-user-dirs is a tool to help manage "well known" user directories
like the desktop folder and the music folder. It also
handleslocalization (i.e. translation) of the filenames.
Authors:
--------
Alexander Larsson - alexl@redhat.com
%prep
%setup -q -n %name-%{version}
%build
%configure
make %{?jobs:-j %jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d
echo "#!/bin/sh" >> $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/xdg-user-dirs.sh
echo "/usr/bin/xdg-user-dirs-update" >> $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/xdg-user-dirs.sh
chmod a+x $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/xdg-user-dirs.sh
%find_lang xdg-user-dirs
%clean
rm -rf $RPM_BUILD_ROOT
%files -f xdg-user-dirs.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO ChangeLog
%config(noreplace) /etc/xdg/user-dirs.conf
%config(noreplace) /etc/xdg/user-dirs.defaults
%dir /etc/X11/xinit
%dir /etc/X11/xinit/xinitrc.d
/etc/X11/xinit/xinitrc.d/xdg-user-dirs.sh
/usr/bin/xdg-user-dir
/usr/bin/xdg-user-dirs-update
%changelog
* Wed Feb 27 2008 stbinner@suse.de
- update to 0.10:
* New translations
* Update cut and paste code to handle oom and c++
* Mon Oct 22 2007 stbinner@suse.de
- update to 0.9: new translations, relocatable, fix possible crash
* Tue Jul 17 2007 stbinner@suse.de
- initial package of version 0.8