diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-12-21 06:37:49 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-12-21 06:37:49 -0800 |
commit | 4adfc50450862ef02af167ea85872af9bec2a7d7 (patch) | |
tree | 5e3a5713e7ad2f78acc5ce6c95bce6558895c509 /packaging | |
parent | d94051fafe990b8e8b99c8a3ec1e5c769ac4ad3a (diff) | |
download | xdg-user-dirs-4adfc50450862ef02af167ea85872af9bec2a7d7.tar.gz xdg-user-dirs-4adfc50450862ef02af167ea85872af9bec2a7d7.tar.bz2 xdg-user-dirs-4adfc50450862ef02af167ea85872af9bec2a7d7.zip |
add packaging
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/xdg-user-dirs.sh | 13 | ||||
-rw-r--r-- | packaging/xdg-user-dirs.spec | 44 |
2 files changed, 57 insertions, 0 deletions
diff --git a/packaging/xdg-user-dirs.sh b/packaging/xdg-user-dirs.sh new file mode 100644 index 0000000..92dfe5a --- /dev/null +++ b/packaging/xdg-user-dirs.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# Copyright (C) 2007 Red Hat, Inc. All rights reserved. This +# copyrighted material is made available to anyone wishing to use, modify, +# copy, or redistribute it subject to the terms and conditions of the +# GNU General Public License version 2. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +if [ -x /usr/bin/xdg-user-dirs-update ]; then + /usr/bin/xdg-user-dirs-update +fi diff --git a/packaging/xdg-user-dirs.spec b/packaging/xdg-user-dirs.spec new file mode 100644 index 0000000..691c3ff --- /dev/null +++ b/packaging/xdg-user-dirs.spec @@ -0,0 +1,44 @@ +# + +Name: xdg-user-dirs +Version: 0.14 +Release: 0 +License: GPL-2.0 +Summary: Utilities to handle user data directories +Url: http://freedesktop.org/wiki/Software/xdg-user-dirs +Group: System/Other +Source0: %{name}-%{version}.tar.bz2 +Source1: xdg-user-dirs.sh + +%description +xdg-user-dirs is a tool to help manage "well known" user directories +like the desktop folder and the music folder. It also +handles localization (i.e. translation) of the filenames. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +%make_install +%find_lang %{name} +mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d +cp %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/xdg-user-dirs.sh + +%lang_package + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING README ChangeLog +%license COPYING +%config(noreplace) %{_sysconfdir}/xdg/user-dirs.conf +%config(noreplace) %{_sysconfdir}/xdg/user-dirs.defaults +%dir %{_sysconfdir}/X11/xinit +%dir %{_sysconfdir}/X11/xinit/xinitrc.d +%{_sysconfdir}/X11/xinit/xinitrc.d/xdg-user-dirs.sh +%{_bindir}/xdg-user-dir +%{_bindir}/xdg-user-dirs-update + |