]>
Commit | Line | Data |
---|---|---|
c5b54d7b ZU |
1 | Summary: A lightweight display manager |
2 | Summary(hu.UTF-8): Egy könnyűsúlyú bejelentkezéskezelő | |
3 | Name: lightdm | |
0e15dcbc ER |
4 | Version: 1.7.12 |
5 | Release: 1 | |
eff0aaee ER |
6 | # library/bindings are LGPLv2 or LGPLv3, the rest GPLv3+ |
7 | License: (LGPLv2 or LGPLv3) and GPLv3+ | |
c5b54d7b | 8 | Group: X11/Applications |
0e15dcbc ER |
9 | Source0: https://launchpad.net/lightdm/1.7/%{version}/+download/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 73d6a917ed667a45c194df6c4f270b80 | |
6330239a | 11 | Source1: %{name}.pamd |
4f2b8153 ER |
12 | Patch0: config.patch |
13 | Patch1: upstart-path.patch | |
65a202a6 | 14 | URL: http://www.freedesktop.org/wiki/Software/LightDM |
a0bff196 | 15 | BuildRequires: QtCore-devel |
768f7b75 | 16 | BuildRequires: QtDBus-devel |
a0bff196 | 17 | BuildRequires: QtGui-devel |
18 | BuildRequires: QtNetwork-devel | |
19 | BuildRequires: autoconf | |
c5b54d7b | 20 | BuildRequires: dbus-glib-devel |
a0bff196 | 21 | BuildRequires: docbook-dtd412-xml |
c5b54d7b | 22 | BuildRequires: gettext-devel |
0e15dcbc | 23 | BuildRequires: glib2-devel >= 1:2.30 |
a0bff196 | 24 | BuildRequires: gnome-common |
c5b54d7b | 25 | BuildRequires: gnome-doc-utils |
96fe17ec | 26 | BuildRequires: gtk+2-devel >= 2:2.24 |
a0bff196 | 27 | BuildRequires: gtk-doc |
c5b54d7b ZU |
28 | BuildRequires: gtk-webkit-devel |
29 | BuildRequires: intltool | |
e8d8d6ad | 30 | BuildRequires: itstool |
a0bff196 | 31 | BuildRequires: libtool |
768f7b75 ZU |
32 | BuildRequires: libxklavier-devel |
33 | BuildRequires: pam-devel | |
c5b54d7b ZU |
34 | BuildRequires: perl-XML-Parser |
35 | BuildRequires: perl-base | |
a0bff196 | 36 | BuildRequires: pkgconfig |
96fe17ec | 37 | BuildRequires: rpmbuild(macros) >= 1.583 |
e8d8d6ad | 38 | BuildRequires: tar >= 1:1.22 |
6330239a | 39 | BuildRequires: vala |
e8d8d6ad ER |
40 | BuildRequires: xz |
41 | BuildRequires: yelp-tools | |
26ddca36 | 42 | Requires: /usr/bin/X |
e8d8d6ad | 43 | Requires: dbus-x11 |
d1bb4d34 | 44 | Requires: lightdm-greeter |
e476a337 | 45 | Provides: XDM |
d1bb4d34 JP |
46 | Provides: group(xdm) |
47 | Provides: user(xdm) | |
c5b54d7b ZU |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | An X display manager that: | |
52 | - Has a lightweight codebase | |
53 | - Is standards compliant (PAM, ConsoleKit, etc) | |
54 | - Has a well defined interface between the server and user interface | |
55 | - Fully themeable (easiest with the webkit interface) | |
56 | - Cross-desktop (greeters can be written in any toolkit) | |
57 | ||
58 | %description -l hu.UTF-8 | |
59 | Egy X bejelentkezéskezelő, amely: | |
60 | - pehelysúlyú kóddal rendelkezik | |
61 | - követi a standardokat (PAM, ConsoleKit, stb.) | |
62 | - jól-definiált felület a szerver és a felhasználói felület között | |
63 | - teljesen témázható (a legkönnyebb a webkit felülettel) | |
64 | - desktop-független (üdvözlők bármilyen eszközkészlettel írhatók) | |
65 | ||
8b528774 ER |
66 | %package libs-gobject |
67 | Summary: LightDM GObject client library | |
9bc4da5d | 68 | Group: Libraries |
8b528774 | 69 | Obsoletes: lightdm-libs < 1.7.0-0.6 |
9bc4da5d | 70 | |
8b528774 ER |
71 | %description libs-gobject |
72 | This package contains a GObject based library for LightDM clients to | |
73 | use to interface with LightDM. | |
9bc4da5d | 74 | |
8b528774 ER |
75 | %package libs-gobject-devel |
76 | Summary: Development files for %{name}-gobject | |
c5b54d7b | 77 | Group: Development/Libraries |
8b528774 ER |
78 | Group: Libraries |
79 | Requires: %{name}-libs-gobject = %{version}-%{release} | |
80 | ||
81 | %description libs-gobject-devel | |
82 | This package contains development files for a GObject based library | |
83 | for LightDM clients to use to interface with LightDM. | |
84 | ||
85 | %package libs-qt | |
86 | Summary: LightDM Qt client library | |
87 | Group: Libraries | |
88 | Conflicts: lightdm-libs < 1.7.0-0.6 | |
c5b54d7b | 89 | |
8b528774 ER |
90 | %description libs-qt |
91 | This package contains a Qt based library for LightDM clients to use to | |
92 | interface with LightDM. | |
c5b54d7b | 93 | |
8b528774 ER |
94 | %package libs-qt-devel |
95 | Summary: Development files for %{name}-qt | |
c5b54d7b | 96 | Group: Development/Libraries |
8b528774 | 97 | Requires: %{name}-libs-qt = %{version}-%{release} |
c5b54d7b | 98 | |
8b528774 ER |
99 | %description libs-qt-devel |
100 | This package contains development files for a Qt based library for | |
101 | LightDM clients to use to interface with LightDM. | |
c5b54d7b | 102 | |
c5b54d7b ZU |
103 | %package apidocs |
104 | Summary: lightdm API documentation | |
105 | Group: Documentation | |
106 | ||
107 | %description apidocs | |
108 | lightdm API documentation. | |
109 | ||
008e6bad ZU |
110 | %package upstart |
111 | Summary: Upstart job for lightdm | |
112 | Summary(hu.UTF-8): Upstart támogatás lightdm-hez | |
113 | Group: Daemons | |
b2e116cd ER |
114 | Requires: %{name} = %{epoch}:%{version}-%{release} |
115 | Requires: upstart >= 0.6 | |
008e6bad ZU |
116 | |
117 | %description upstart | |
118 | Upstart job for lightdm. | |
119 | ||
120 | %description upstart -l hu.UTF-8 | |
121 | Upstart támogatás lightdm-hez. | |
122 | ||
c5b54d7b ZU |
123 | %prep |
124 | %setup -q | |
4f2b8153 ER |
125 | %patch0 -p1 |
126 | %patch1 -p1 | |
c5b54d7b ZU |
127 | |
128 | %build | |
768f7b75 | 129 | %{__libtoolize} |
a84ee4bd | 130 | %{__gtkdocize} |
768f7b75 ZU |
131 | %{__aclocal} |
132 | %{__autoconf} | |
133 | %{__autoheader} | |
134 | %{__automake} | |
135 | %configure \ | |
d1bb4d34 | 136 | --disable-silent-rules \ |
8b528774 | 137 | --disable-static \ |
96fe17ec | 138 | --disable-tests \ |
d1bb4d34 | 139 | --enable-liblightdm-qt \ |
48783655 | 140 | --with-html-dir=%{_gtkdocdir} \ |
6330239a | 141 | --enable-gtk-doc \ |
862615aa | 142 | --with-greeter-session=lightdm-gtk-greeter \ |
d1bb4d34 | 143 | --with-greeter-user=xdm |
c5b54d7b ZU |
144 | %{__make} |
145 | ||
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
c5b54d7b ZU |
148 | %{__make} install \ |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
0139fe42 | 151 | install -d $RPM_BUILD_ROOT/etc/{pam.d,security,init,dbus-1/system.d} \ |
d1bb4d34 | 152 | $RPM_BUILD_ROOT/home/services/xdm \ |
96fe17ec | 153 | $RPM_BUILD_ROOT%{_datadir}/xgreeters \ |
8028cf24 | 154 | $RPM_BUILD_ROOT%{_datadir}/lightdm/remote-sessions \ |
d27af43d | 155 | $RPM_BUILD_ROOT/var/{log,cache}/lightdm |
96fe17ec | 156 | |
0139fe42 | 157 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/lightdm |
6330239a | 158 | touch $RPM_BUILD_ROOT/etc/security/blacklist.lightdm |
0139fe42 | 159 | cp -p data/init/%{name}.conf $RPM_BUILD_ROOT/etc/init |
d1bb4d34 | 160 | |
e8d8d6ad ER |
161 | # We don't ship AppAmor |
162 | rm -rv $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d | |
163 | ||
d1bb4d34 JP |
164 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{lb,wae} |
165 | ||
a84ee4bd | 166 | %find_lang %{name} --with-gnome |
6330239a | 167 | |
c5b54d7b ZU |
168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
d1bb4d34 JP |
171 | %pre |
172 | %groupadd -g 55 -r -f xdm | |
173 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm | |
174 | ||
8b528774 ER |
175 | %post libs-gobject -p /sbin/ldconfig |
176 | %postun libs-gobject -p /sbin/ldconfig | |
177 | ||
178 | %post libs-qt -p /sbin/ldconfig | |
179 | %postun libs-qt -p /sbin/ldconfig | |
6330239a | 180 | |
008e6bad ZU |
181 | %post upstart |
182 | %upstart_post lightdm | |
183 | ||
184 | %postun upstart | |
185 | %upstart_postun lightdm | |
186 | ||
d1bb4d34 | 187 | if [ "$1" = "0" ]; then |
0139fe42 ER |
188 | %userremove xdm |
189 | %groupremove xdm | |
d1bb4d34 JP |
190 | fi |
191 | ||
192 | %files -f %{name}.lang | |
c5b54d7b | 193 | %defattr(644,root,root,755) |
eff0aaee | 194 | %doc NEWS |
933e01e3 ER |
195 | %dir %{_sysconfdir}/%{name} |
196 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf | |
197 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/keys.conf | |
198 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/users.conf | |
199 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm | |
15907466 BZ |
200 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-autologin |
201 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/lightdm-greeter | |
933e01e3 ER |
202 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.lightdm |
203 | /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf | |
204 | %attr(755,root,root) %{_bindir}/dm-tool | |
d1bb4d34 | 205 | %attr(755,root,root) %{_sbindir}/lightdm |
933e01e3 ER |
206 | %dir %{_libdir}/%{name} |
207 | %attr(755,root,root) %{_libdir}/%{name}/gdmflexiserver | |
96fe17ec ER |
208 | %attr(755,root,root) %{_libdir}/%{name}/lightdm-guest-session-wrapper |
209 | %attr(755,root,root) %{_libdir}/%{name}/lightdm-set-defaults | |
d1bb4d34 | 210 | %{_libdir}/girepository-1.0/LightDM-1.typelib |
d1bb4d34 | 211 | %dir %{_datadir}/xgreeters |
8028cf24 ER |
212 | %dir %{_datadir}/%{name} |
213 | %dir %{_datadir}/%{name}/remote-sessions | |
933e01e3 | 214 | %{_mandir}/man1/lightdm* |
d27af43d ER |
215 | %dir %attr(710,root,root) /var/cache/lightdm |
216 | %dir %attr(710,root,root) /var/log/lightdm | |
217 | %dir %attr(750,xdm,xdm) /home/services/xdm | |
d1bb4d34 | 218 | |
8b528774 | 219 | %files libs-gobject |
9bc4da5d ER |
220 | %defattr(644,root,root,755) |
221 | %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so.*.*.* | |
222 | %attr(755,root,root) %ghost %{_libdir}/liblightdm-gobject-1.so.0 | |
9bc4da5d | 223 | |
8b528774 | 224 | %files libs-qt |
c5b54d7b | 225 | %defattr(644,root,root,755) |
8b528774 ER |
226 | %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so.*.*.* |
227 | %attr(755,root,root) %ghost %{_libdir}/liblightdm-qt-3.so.0 | |
c5b54d7b | 228 | |
8b528774 | 229 | %files libs-gobject-devel |
c5b54d7b | 230 | %defattr(644,root,root,755) |
eccfdb7d | 231 | %{_datadir}/gir-1.0/LightDM-1.gir |
d1bb4d34 | 232 | %{_includedir}/lightdm-gobject-1 |
d1bb4d34 | 233 | %{_pkgconfigdir}/liblightdm-gobject-1.pc |
eccfdb7d ER |
234 | %{_libdir}/liblightdm-gobject-1.la |
235 | %attr(755,root,root) %{_libdir}/liblightdm-gobject-1.so | |
236 | # -vala | |
d1bb4d34 | 237 | %{_datadir}/vala/vapi/liblightdm-gobject-1.vapi |
8b528774 ER |
238 | |
239 | %files libs-qt-devel | |
240 | %defattr(644,root,root,755) | |
eccfdb7d ER |
241 | %{_libdir}/liblightdm-qt-3.la |
242 | %attr(755,root,root) %{_libdir}/liblightdm-qt-3.so | |
243 | %{_includedir}/lightdm-qt-3 | |
244 | %{_pkgconfigdir}/liblightdm-qt-3.pc | |
c5b54d7b ZU |
245 | |
246 | %files apidocs | |
247 | %defattr(644,root,root,755) | |
48783655 | 248 | %{_gtkdocdir}/lightdm-gobject-1 |
008e6bad ZU |
249 | |
250 | %files upstart | |
251 | %defattr(644,root,root,755) | |
0139fe42 | 252 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf |