]> git.pld-linux.org Git - packages/lxsession.git/blob - lxsession.spec
7f498d36b7581c8a667248ed3e6efb46f6c1adac
[packages/lxsession.git] / lxsession.spec
1 #
2 # Conditional build:
3 %bcond_with             gtk3            # build GTK+3, disables GTK+2
4 %bcond_without          gtk2    # build with GTK+2
5
6 %if %{with gtk3}
7 %undefine       with_gtk2
8 %endif
9
10 Summary:        Default session manager for LXDE
11 Name:           lxsession
12 Version:        0.4.9.2
13 Release:        2
14 License:        GPL v2
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
29 BuildRequires:  vala
30 BuildRequires:  xorg-lib-libX11-devel
31 Obsoletes:      lxpolkit
32 Obsoletes:      lxsession-edit
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 LXSession is the default session manager of LXDE.
37
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.
42
43 %prep
44 %setup -q
45
46 %build
47 %configure \
48         %{?with_gtk3:--enable-gtk3}
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
57
58 %find_lang %{name}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files -f %{name}.lang
64 %defattr(644,root,root,755)
65 %doc AUTHORS README
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*
70 %{_datadir}/lxsession
71 %{_desktopdir}/lxsession*.desktop
72 %{_mandir}/man1/lxsession*
This page took 0.13183 seconds and 2 git commands to generate.