3 %bcond_with gtk3 # build GTK+3, disables GTK+2
4 %bcond_without gtk2 # build with GTK+2
10 Summary: Default session manager for LXDE
15 Group: X11/Applications
16 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5: bc3eb71936dbdf813e9ac2f00ab948f0
18 URL: http://wiki.lxde.org/en/LXSession
19 BuildRequires: dbus-devel
20 BuildRequires: dbus-glib-devel
21 BuildRequires: gettext-devel
22 BuildRequires: glib2-devel
23 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
24 %{?with_gtk3:BuildRequires: gtk+3-devel}
25 BuildRequires: intltool
26 BuildRequires: libgee0.6-devel
27 BuildRequires: pkgconfig
28 BuildRequires: polkit-devel
30 BuildRequires: xorg-lib-libX11-devel
32 Obsoletes: lxsession-edit
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 LXSession is the default session manager of LXDE.
38 LXSession automatically starts a set of applications and sets up a
39 working desktop environment. Moreover, the session manager is able to
40 remember the applications in use when a user logs out and to restart
41 them the next time the user logs in.
48 %{?with_gtk3:--enable-gtk3}
52 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
61 rm -rf $RPM_BUILD_ROOT
63 %files -f %{name}.lang
64 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/lxclipboard
67 %attr(755,root,root) %{_bindir}/lxlock
68 %attr(755,root,root) %{_bindir}/lxpolkit
69 %attr(755,root,root) %{_bindir}/lxsession*
71 %{_desktopdir}/lxsession*.desktop
72 %{_mandir}/man1/lxsession*