File lxsession-edit.spec of Package lxsession-edit

#
# spec file for package lxsession-edit
#
# Copyright (c) 2011 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:           lxsession-edit
Version:        0.2.0
Release:        1
License:        GPL-3.0
Source0:        %{name}-%version.tar.bz2
Source1:        lxsession-edit.png
Patch0:         %{name}-0.1.1-icon.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gtk2-devel pkgconfig
BuildRequires:  python python-xml update-desktop-files
BuildRequires:  docbook-xsl-stylesheets intltool
BuildRequires:  docbook-utils fdupes libxslt
Group:          System/GUI/LXDE
Summary:        A tool manage lxsession-lite
Url:            http://lxde.org

%description
LXSession is the default X11 session manager of LXDE.
(LXDE: Lightweight X11 Desktop Environment)
http://lxde.sourceforge.net/

lxsession-edit is a tool used to manage desktop session autostarts, 
especially for lxsession lite.

%prep
%setup -q
%patch0 -p1

%build
%configure
%__make %{?jobs:-j%{jobs}} V=1

%install
%makeinstall
%__install -d %buildroot/%_datadir/pixmaps
%__cp %SOURCE1 %buildroot/%_datadir/pixmaps/
%find_lang %{name}
%suse_update_desktop_file lxsession-edit
%fdupes -s %buildroot

%clean
rm -rf "$RPM_BUILD_ROOT"

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS
%{_bindir}/lxsession-edit
%{_datadir}/applications/lxsession-edit.desktop
%dir %{_datadir}/lxsession-edit
%{_datadir}/lxsession-edit/lxsession-edit.ui
%{_datadir}/pixmaps/lxsession-edit.png

%changelog