~ubuntu-branches/ubuntu/maverick/lxdm/maverick

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# on SuSE based distros that's allow compilation
# without root rights, on other distros that's just
# a comment, you should keep it.
# norootforbuild

Name:		lxdm
Version:	@PACKAGE_VERSION@
Release:	1
Summary:	Light weight X11 display manager
License:	GPL
Group:		User Interface/X
URL:		http://lxde.sourceforge.net/
Source0:	lxdm-%{version}.tar.gz

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}

BuildRequires:	gtk2-devel pam-devel intltool

%description
Light weight X11 display manager

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"

%configure

%__make

%install
make DESTDIR=${RPM_BUILD_ROOT} install
cd ${RPM_BUILD_ROOT}/%{_sysconfdir}/lxdm
rm -rf LoginReady PostLogin PreLogin PostLogout PreReboot PreShutdown
cd -

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post

%pre

%preun

%postun

%files -f %{name}.lang
%defattr (-,root,root,-)
%doc AUTHORS NEWS README COPYING INSTALL ChangeLog
%dir %{_datadir}/lxdm/
%{_datadir}/lxdm/*
%dir %{_sysconfdir}/lxdm/
%{_sbindir}/lxdm
%{_sbindir}/lxdm-binary
%{_libexecdir}/lxdm-greeter-gtk
%{_sysconfdir}/lxdm/Xsession
%config %{_sysconfdir}/lxdm/lxdm.conf
%{_sysconfdir}/pam.d/lxdm

%changelog