2 %bcond_with gtk3 # build GTK+3, disables GTK+2
3 %bcond_without gtk2 # build with GTK+2
9 Summary: Default session manager for LXDE
14 Group: X11/Applications
15 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
16 # Source0-md5: 823c50e6d0e4ce15a23a42e8f8bf4221
17 Patch0: no-keyring.patch
18 URL: http://wiki.lxde.org/en/LXSession
19 BuildRequires: dbus-devel
20 BuildRequires: dbus-glib-devel
21 BuildRequires: gettext-tools
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: libunique-devel
28 BuildRequires: pkgconfig
29 BuildRequires: polkit-devel
31 BuildRequires: xorg-lib-libX11-devel
32 Provides: lxpolkit = 0.1.0-2
33 Provides: lxsession-edit = 0.2.0-3
35 Obsoletes: lxsession-edit
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 LXSession is the default session manager of LXDE.
41 LXSession automatically starts a set of applications and sets up a
42 working desktop environment. Moreover, the session manager is able to
43 remember the applications in use when a user logs out and to restart
44 them the next time the user logs in.
52 %{?with_gtk3:--enable-gtk3}
56 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
60 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ur_PK,tt_RU}
65 rm -rf $RPM_BUILD_ROOT
67 %files -f %{name}.lang
68 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/lxclipboard
71 %attr(755,root,root) %{_bindir}/lxlock
72 %attr(755,root,root) %{_bindir}/lxpolkit
73 %attr(755,root,root) %{_bindir}/lxsession
74 %attr(755,root,root) %{_bindir}/lxsession-db
75 %attr(755,root,root) %{_bindir}/lxsession-default
76 %attr(755,root,root) %{_bindir}/lxsession-default-apps
77 %attr(755,root,root) %{_bindir}/lxsession-default-terminal
78 %attr(755,root,root) %{_bindir}/lxsession-edit
79 %attr(755,root,root) %{_bindir}/lxsession-logout
80 %attr(755,root,root) %{_bindir}/lxsession-xdg-autostart
81 %attr(755,root,root) %{_bindir}/lxsettings-daemon
82 %dir %{_libdir}/lxsession
83 %attr(755,root,root) %{_libdir}/lxsession/lxsession-xsettings
84 /etc/xdg/autostart/lxpolkit.desktop
86 %{_desktopdir}/lxsession*.desktop
87 %{_mandir}/man1/lxclipboard.1*
88 %{_mandir}/man1/lxlock.1*
89 %{_mandir}/man1/lxpolkit.1*
90 %{_mandir}/man1/lxsession.1*
91 %{_mandir}/man1/lxsession-db.1*
92 %{_mandir}/man1/lxsession-default.1*
93 %{_mandir}/man1/lxsession-default-apps.1*
94 %{_mandir}/man1/lxsession-default-terminal.1*
95 %{_mandir}/man1/lxsession-edit.1*
96 %{_mandir}/man1/lxsession-logout.1*
97 %{_mandir}/man1/lxsession-xdg-autostart.1*
98 %{_mandir}/man1/lxsettings-daemon.1*