Merging upstream version 0.5.0.
[debian/lxdm.git] / lxdm.spec.in
1 # on SuSE based distros that's allow compilation
2 # without root rights, on other distros that's just
3 # a comment, you should keep it.
4 # norootforbuild
5
6 Name: lxdm
7 Version: @PACKAGE_VERSION@
8 Release: 1
9 Summary: Light weight X11 display manager
10 License: GPL
11 Group: User Interface/X
12 URL: http://lxde.sourceforge.net/
13 Source0: lxdm-%{version}.tar.xz
14
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
16
17 BuildRequires: gtk3-devel pam-devel intltool
18 Provides: service(graphical-login) = lxdm
19
20 %description
21 Light weight X11 display manager
22
23 %prep
24 %setup -q
25
26 %build
27 export CFLAGS="$RPM_OPT_FLAGS"
28 export CXXFLAGS="$RPM_OPT_FLAGS"
29
30 %configure --enable-gtk3
31
32 %__make
33
34 %install
35 make DESTDIR=${RPM_BUILD_ROOT} install
36 cd ${RPM_BUILD_ROOT}/%{_sysconfdir}/lxdm
37 rm -rf LoginReady PostLogin PreLogin PostLogout PreReboot PreShutdown
38 cd -
39
40 %find_lang %{name}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46
47 %pre
48
49 %preun
50
51 %postun
52
53 %files -f %{name}.lang
54 %defattr (-,root,root,-)
55 %doc AUTHORS NEWS README COPYING INSTALL ChangeLog
56 %dir %{_datadir}/lxdm/
57 %{_datadir}/lxdm/*
58 %dir %{_sysconfdir}/lxdm/
59 %{_sbindir}/lxdm
60 %{_sbindir}/lxdm-binary
61 %{_bindir}/lxdm-config
62 %{_libexecdir}/lxdm-greeter-gtk
63 %{_libexecdir}/lxdm-greeter-gdk
64 %{_libexecdir}/lxdm-numlock
65 %{_libexecdir}/lxdm-session
66 %{_sysconfdir}/lxdm/Xsession
67 %config %{_sysconfdir}/lxdm/lxdm.conf
68 %{_sysconfdir}/pam.d/lxdm
69 %{_unitdir}/lxdm.service
70
71 %changelog
72