1 | Summary: A lightweight display manager |
---|
2 | Summary(ja): 軽量ディスプレイマネージャー |
---|
3 | Name: lightdm |
---|
4 | Version: 1.17.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPLv3,LGPLv2,LGPLv3 |
---|
7 | Group: User Interface/X |
---|
8 | URL: http://www.freedesktop.org/wiki/Software/LightDM/ |
---|
9 | |
---|
10 | Source0: https://launchpad.net/%{name}/1.17/%{version}/+download/%{name}-%{version}.tar.xz |
---|
11 | Source1: lightdm-pam |
---|
12 | Source2: lightdm-autologin-pam |
---|
13 | Source4: lightdm.rules |
---|
14 | |
---|
15 | Patch0: lightdm-1.11.2-no_dmrc_save.patch |
---|
16 | Patch1: lightdm-1.11.2-nodaemon_option.patch |
---|
17 | # for Vine Linux |
---|
18 | Patch1000: lightdm-1.17.2-vine.patch |
---|
19 | |
---|
20 | Requires(pre): shadow-utils |
---|
21 | Requires: accountsservice |
---|
22 | Requires: dbus-x11 |
---|
23 | Requires: pam |
---|
24 | Requires: xorg-x11-xinit |
---|
25 | Requires: %{name}-gobject = %{version}-%{release} |
---|
26 | Requires: lightdm-greeter |
---|
27 | |
---|
28 | BuildRequires: glib2-devel >= 2.30.0 |
---|
29 | BuildRequires: gobject-introspection-devel |
---|
30 | BuildRequires: libXdmcp-devel |
---|
31 | BuildRequires: libxcb-devel |
---|
32 | BuildRequires: libxklavier-devel |
---|
33 | BuildRequires: libX11-devel |
---|
34 | BuildRequires: pam-devel |
---|
35 | BuildRequires: libgcrypt-devel |
---|
36 | BuildRequires: qt4-devel |
---|
37 | BuildRequires: yelp-tools |
---|
38 | |
---|
39 | Vendor: Project Vine |
---|
40 | Distribution: Vine Linux |
---|
41 | Packager: Takemikaduchi |
---|
42 | |
---|
43 | |
---|
44 | %description |
---|
45 | An display manager that: |
---|
46 | * Has a lightweight codebase |
---|
47 | * Is standards compliant (PAM, ConsoleKit, etc) |
---|
48 | * Has a well defined interface between the server and user interface |
---|
49 | * Cross-desktop (greeters can be written in any toolkit) |
---|
50 | |
---|
51 | %package gobject |
---|
52 | Summary: LightDM GObject client library |
---|
53 | |
---|
54 | %description gobject |
---|
55 | This package contains a GObject based library for LightDM clients to |
---|
56 | use to interface with LightDM. |
---|
57 | |
---|
58 | |
---|
59 | %package gobject-devel |
---|
60 | Summary: Development files and headers for %{name}-gobject |
---|
61 | Group: Development/Libraries |
---|
62 | Requires: %{name}-gobject = %{version}-%{release} |
---|
63 | Requires: pkgconfig |
---|
64 | |
---|
65 | %description gobject-devel |
---|
66 | Development files and headers for %{name}-gobject. |
---|
67 | |
---|
68 | |
---|
69 | %package qt |
---|
70 | Summary: LightDM QT client library |
---|
71 | |
---|
72 | %description qt |
---|
73 | This package contains a QT based library for LightDM clients to use |
---|
74 | to interface with LightDM. |
---|
75 | |
---|
76 | |
---|
77 | %package qt-devel |
---|
78 | Summary: Development files and headers for %{name}-qt |
---|
79 | Group: Development/Libraries |
---|
80 | Requires: %{name}-qt = %{version}-%{release} |
---|
81 | Requires: pkgconfig |
---|
82 | |
---|
83 | %description qt-devel |
---|
84 | Development files and headers for %{name}-qt. |
---|
85 | |
---|
86 | |
---|
87 | %prep |
---|
88 | %setup -q |
---|
89 | %patch0 -p1 -b .dmrc |
---|
90 | %patch1 -p1 -b .nodaemon_option |
---|
91 | %patch1000 -p1 -b .vine |
---|
92 | |
---|
93 | %build |
---|
94 | autoreconf -if |
---|
95 | %configure \ |
---|
96 | --enable-liblightdm-gobject \ |
---|
97 | --enable-liblightdm-qt \ |
---|
98 | --disable-liblightdm-qt5 \ |
---|
99 | --enable-introspection \ |
---|
100 | --with-greeter-user=lightdm |
---|
101 | |
---|
102 | make %{?_smp_mflags} |
---|
103 | |
---|
104 | %install |
---|
105 | rm -rf $RPM_BUILD_ROOT |
---|
106 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
107 | |
---|
108 | install -m 0644 -p -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/lightdm |
---|
109 | install -m 0644 -p -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/lightdm-autologin |
---|
110 | install -m 0644 -p -D %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/polkit-1/rules.d/lightdm.rules |
---|
111 | |
---|
112 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/lightdm |
---|
113 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/lightdm |
---|
114 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lightdm |
---|
115 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/lightdm-data |
---|
116 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/lightdm |
---|
117 | |
---|
118 | # remove unused files |
---|
119 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init/lightdm.conf |
---|
120 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/lightdm-guest-session |
---|
121 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/abstractions/lightdm |
---|
122 | |
---|
123 | # remove unused files |
---|
124 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init/lightdm.conf |
---|
125 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/lightdm-guest-session |
---|
126 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/abstractions/lightdm |
---|
127 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/abstractions/lightdm_chromium-browser |
---|
128 | |
---|
129 | find $RPM_BUILD_ROOT -name '*.a' -delete |
---|
130 | find $RPM_BUILD_ROOT -name '*.la' -delete |
---|
131 | |
---|
132 | %find_lang %{name} --with-gnome |
---|
133 | |
---|
134 | %pre |
---|
135 | getent group lightdm >/dev/null || groupadd -r lightdm |
---|
136 | getent passwd lightdm >/dev/null || \ |
---|
137 | /usr/sbin/useradd -g lightdm -M -d /var/lightdm -s /sbin/nologin -r lightdm |
---|
138 | exit 0 |
---|
139 | |
---|
140 | |
---|
141 | %post gobject -p /sbin/ldconfig |
---|
142 | |
---|
143 | %postun gobject -p /sbin/ldconfig |
---|
144 | |
---|
145 | %post qt -p /sbin/ldconfig |
---|
146 | |
---|
147 | %postun qt -p /sbin/ldconfig |
---|
148 | |
---|
149 | |
---|
150 | %files -f %{name}.lang |
---|
151 | %defattr(-, root, root, -) |
---|
152 | %doc COPYING.GPL3 COPYING.LGPL2 COPYING.LGPL3 NEWS |
---|
153 | %dir %{_sysconfdir}/lightdm |
---|
154 | %config(noreplace) %{_sysconfdir}/lightdm/keys.conf |
---|
155 | %config(noreplace) %{_sysconfdir}/lightdm/lightdm.conf |
---|
156 | %config(noreplace) %{_sysconfdir}/lightdm/users.conf |
---|
157 | %config %{_sysconfdir}/pam.d/lightdm |
---|
158 | %config %{_sysconfdir}/pam.d/lightdm-autologin |
---|
159 | %config %{_sysconfdir}/pam.d/lightdm-greeter |
---|
160 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf |
---|
161 | %{_bindir}/dm-tool |
---|
162 | %{_sbindir}/lightdm |
---|
163 | %{_libexecdir}/lightdm-guest-session |
---|
164 | %{_datadir}/bash-completion/completions/dm-tool |
---|
165 | %{_datadir}/bash-completion/completions/lightdm |
---|
166 | %{_datadir}/polkit-1/rules.d/lightdm.rules |
---|
167 | %{_mandir}/man1/dm-tool.1.gz |
---|
168 | %{_mandir}/man1/lightdm.1.gz |
---|
169 | %dir %{_localstatedir}/log/lightdm |
---|
170 | %dir %{_localstatedir}/run/lightdm |
---|
171 | %dir %attr(1770,lightdm,lightdm) %{_localstatedir}/lightdm |
---|
172 | %dir %attr(-,lightdm,lightdm) %{_localstatedir}/cache/lightdm |
---|
173 | %dir %attr(-,lightdm,lightdm) %{_localstatedir}/lib/lightdm-data/ |
---|
174 | |
---|
175 | %files gobject |
---|
176 | %defattr(-, root, root, -) |
---|
177 | %{_libdir}/liblightdm-gobject-1.so.* |
---|
178 | %{_libdir}/girepository-1.0/LightDM-1.typelib |
---|
179 | |
---|
180 | %files gobject-devel |
---|
181 | %defattr(-, root, root, -) |
---|
182 | %{_includedir}/lightdm-gobject-1 |
---|
183 | %{_libdir}/liblightdm-gobject-1.so |
---|
184 | %{_libdir}/pkgconfig/liblightdm-gobject-1.pc |
---|
185 | %{_datadir}/gir-1.0/LightDM-1.gir |
---|
186 | %{_datadir}/gtk-doc/html/lightdm-gobject-1 |
---|
187 | |
---|
188 | %files qt |
---|
189 | %defattr(-, root, root, -) |
---|
190 | %{_libdir}/liblightdm-qt-3.so.* |
---|
191 | |
---|
192 | %files qt-devel |
---|
193 | %defattr(-, root, root, -) |
---|
194 | %{_includedir}/lightdm-qt-3 |
---|
195 | %{_libdir}/liblightdm-qt-3.so |
---|
196 | %{_libdir}/pkgconfig/liblightdm-qt-3.pc |
---|
197 | |
---|
198 | |
---|
199 | |
---|
200 | %changelog |
---|
201 | * Sat Nov 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.17.2-1 |
---|
202 | - update to 1.17.2 |
---|
203 | - update Patch1000 (lightdm-1.17.2-vine.patch) |
---|
204 | |
---|
205 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.3-1 |
---|
206 | - update to 1.12.3 |
---|
207 | |
---|
208 | * Tue Sep 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.9-1 |
---|
209 | - new upstream release |
---|
210 | |
---|
211 | * Wed Aug 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.5-1 |
---|
212 | - new upstream release |
---|
213 | - update Patch1000 (lightdm-1.11.5-vine.patch) |
---|
214 | |
---|
215 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.4-1 |
---|
216 | - new upstream release |
---|
217 | |
---|
218 | * Sun Jun 01 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11.2-1 |
---|
219 | - initial build |
---|
220 | |
---|