]>
Commit | Line | Data |
---|---|---|
0fb756ff | 1 | # |
98b48f20 | 2 | # TODO: |
157d4449 | 3 | # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2 |
1619b9aa | 4 | # - check all /etc/pam.d/gdm-* to be pldized: |
2e4b2dc4 | 5 | # gdm-autologin[4] gdm-fingerprint[10] gdm-password[1] gdm-smartcard gdm-launch-environment[11] |
98b48f20 | 6 | # |
82848b6f JB |
7 | # Conditional build: |
8 | %bcond_without static_libs # static library | |
9 | ||
c62afa2e | 10 | %define glib2_version 1:2.44.0 |
066398c3 | 11 | Summary: GNOME Display Manager |
82455104 ER |
12 | Summary(es.UTF-8): Administrador de Entrada del GNOME |
13 | Summary(ja.UTF-8): GNOME ディスプレイマネージャ | |
14 | Summary(pl.UTF-8): gdm - zarządca ekranów GNOME | |
15 | Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME | |
16 | Summary(ru.UTF-8): Дисплейный менеджер GNOME | |
17 | Summary(uk.UTF-8): Дисплейний менеджер GNOME | |
066398c3 | 18 | Name: gdm |
82848b6f | 19 | Version: 3.38.0 |
eb03eaac | 20 | Release: 1 |
3488434f | 21 | Epoch: 2 |
b354c9f4 | 22 | License: GPL v2+ |
42b347d0 | 23 | Group: X11/Applications |
82848b6f JB |
24 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/3.38/%{name}-%{version}.tar.xz |
25 | # Source0-md5: 948dec80099d9d3a2adacc5788964043 | |
ac5ef200 | 26 | Source1: %{name}.pamd |
27 | Source2: %{name}.init | |
495829ba | 28 | Source3: %{name}-pld-logo.png |
de273fad | 29 | Source4: %{name}-autologin.pamd |
f85eb744 | 30 | Source5: %{name}-custom.desktop |
31 | Source6: %{name}-default.desktop | |
c3a3f740 | 32 | Source9: %{name}.tmpfiles |
1619b9aa | 33 | Source10: %{name}-fingerprint.pamd |
b5fd02c4 | 34 | Source11: %{name}-launch-environment.pamd |
ac5ef200 | 35 | Patch0: %{name}-xdmcp.patch |
68bb2c39 AF |
36 | Patch1: %{name}-xsession.patch |
37 | Patch2: %{name}-defaults.patch | |
82848b6f | 38 | Patch3: %{name}-both-libraries.patch |
c62afa2e | 39 | URL: https://wiki.gnome.org/Projects/GDM |
ced8d2ed | 40 | BuildRequires: accountsservice-devel >= 0.6.35 |
f2a1103b | 41 | BuildRequires: audit-libs-devel |
557def69 | 42 | BuildRequires: check-devel >= 0.9.4 |
c62afa2e | 43 | BuildRequires: gettext-tools >= 0.19.8 |
557def69 | 44 | BuildRequires: glib2-devel >= %{glib2_version} |
b5fd02c4 | 45 | BuildRequires: gobject-introspection-devel >= 0.9.12 |
de273fad | 46 | BuildRequires: gtk+3-devel >= 3.0.0 |
4f41bf78 | 47 | BuildRequires: iso-codes |
eb03eaac | 48 | BuildRequires: keyutils-devel >= 1.6 |
de273fad | 49 | BuildRequires: libcanberra-gtk3-devel >= 0.4 |
68bb2c39 | 50 | BuildRequires: libselinux-devel |
ced8d2ed | 51 | BuildRequires: libstdc++-devel |
de273fad | 52 | BuildRequires: libwrap-devel |
ced8d2ed | 53 | BuildRequires: libxcb-devel |
82848b6f JB |
54 | BuildRequires: meson >= 0.50 |
55 | BuildRequires: ninja >= 1.5 | |
98b48f20 | 56 | BuildRequires: pam-devel |
f2a1103b | 57 | BuildRequires: pkgconfig |
68bb2c39 | 58 | BuildRequires: plymouth-devel |
0df7c395 | 59 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
82848b6f | 60 | BuildRequires: rpmbuild(macros) >= 1.736 |
ced8d2ed | 61 | BuildRequires: systemd-devel >= 1:209 |
b6aa2fd7 | 62 | BuildRequires: tar >= 1:1.22 |
de273fad ŁK |
63 | BuildRequires: xorg-lib-libX11-devel |
64 | BuildRequires: xorg-lib-libXau-devel | |
dc82d2d7 | 65 | BuildRequires: xorg-lib-libXdmcp-devel |
b5fd02c4 | 66 | BuildRequires: xorg-lib-libXext-devel |
de273fad | 67 | BuildRequires: xorg-lib-libXft-devel |
dc82d2d7 | 68 | BuildRequires: xorg-lib-libXi-devel |
69 | BuildRequires: xorg-lib-libXinerama-devel | |
b354c9f4 JB |
70 | # for "XServer disables tcp access by default" detection |
71 | BuildRequires: xorg-xserver-server-devel | |
b6aa2fd7 | 72 | BuildRequires: xz |
b5fd02c4 | 73 | BuildRequires: yelp-tools |
557def69 | 74 | Requires(post,postun): glib2 >= %{glib2_version} |
459deb1e | 75 | Requires(post,postun): gtk-update-icon-cache |
83594792 ER |
76 | Requires(postun): /usr/sbin/groupdel |
77 | Requires(postun): /usr/sbin/userdel | |
26288641 JB |
78 | Requires(pre): /bin/id |
79 | Requires(pre): /usr/sbin/groupadd | |
80 | Requires(pre): /usr/sbin/useradd | |
903f486b | 81 | Requires(posttrans): dconf |
fa7436ec | 82 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
6954d666 | 83 | Requires: /usr/bin/X |
ced8d2ed | 84 | Requires: accountsservice >= 0.6.35 |
4429cfb0 | 85 | Requires: dbus-x11 |
0e7e2757 | 86 | Requires: gdm-wm >= 3.2.1 |
557def69 | 87 | Requires: glib2 >= %{glib2_version} |
ced8d2ed JB |
88 | Requires: gnome-session >= 3.26.0 |
89 | Requires: gnome-settings-daemon >= 3.26.0 | |
de273fad | 90 | Requires: hicolor-icon-theme |
c62afa2e JB |
91 | Requires: iso-codes |
92 | Requires: libcanberra-gtk3 >= 0.4 | |
bba08ce8 | 93 | Requires: pam >= 0.99.7.1 |
b614b4a4 | 94 | Requires: polkit-gnome >= 0.93 |
6beee835 | 95 | Requires: which |
f3737f40 | 96 | Requires: xinitrc-ng >= 1.0 |
2004c339 | 97 | Requires: xorg-app-sessreg |
f2a1103b | 98 | Requires: xorg-app-xmodmap |
2294f17e | 99 | Suggests: ConsoleKit-x11 >= 0.4.1 |
0e7e2757 | 100 | Suggests: pam-pam_gnome_keyring |
557def69 | 101 | Suggests: xorg-xserver-Xephyr |
f85eb744 | 102 | Suggests: zenity |
048e8543 | 103 | Provides: XDM |
5387309f | 104 | Provides: group(xdm) |
105 | Provides: user(xdm) | |
f2a1103b | 106 | Obsoletes: gdm-Xnest |
eeedb6a8 | 107 | Obsoletes: gdm-systemd |
935bde0d MB |
108 | Obsoletes: gdm-user-switch-applet |
109 | Obsoletes: gnome-applet-fast-user-switch | |
98b48f20 | 110 | Conflicts: gdkxft |
557def69 | 111 | Conflicts: systemd < 186 |
ac5ef200 | 112 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066398c3 | 113 | |
84e15ca6 TP |
114 | %description |
115 | Gdm (the GNOME Display Manager) is a highly configurable | |
116 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
117 | into your system with the X Window System running and supports running | |
118 | several different X sessions on your local machine at the same time. | |
b9713681 | 119 | |
25351dc6 | 120 | %description -l es.UTF-8 |
116b805d | 121 | Administrador de Entrada del GNOME. |
122 | ||
25351dc6 | 123 | %description -l ja.UTF-8 |
de273fad ŁK |
124 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager |
125 | の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの | |
25351dc6 | 126 | システムにいろいろなセッションを選択してログインすることができます。 |
24b65b9a | 127 | |
25351dc6 | 128 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
24b65b9a | 129 | |
25351dc6 JR |
130 | %description -l pl.UTF-8 |
131 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
132 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
133 | różnych sesji X na lokalnej maszynie. | |
f6d3e03e | 134 | |
25351dc6 | 135 | %description -l pt_BR.UTF-8 |
116b805d | 136 | Gerenciador de Entrada do GNOME. |
137 | ||
25351dc6 JR |
138 | %description -l ru.UTF-8 |
139 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
140 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
141 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
24b65b9a | 142 | |
25351dc6 JR |
143 | %description -l uk.UTF-8 |
144 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
145 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
146 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
24b65b9a | 147 | |
82848b6f JB |
148 | %package init |
149 | Summary: Init script for GDM | |
150 | Summary(pl.UTF-8): Skrypt init dla GDM-a | |
151 | Group: X11/Applications | |
152 | Requires(post,preun): /sbin/chkconfig | |
153 | Requires(post,preun,postun): systemd-units >= 38 | |
154 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
155 | Requires: open | |
156 | Requires: rc-scripts >= 0.4.3.0 | |
157 | Requires: systemd-units >= 38 | |
158 | ||
159 | %description init | |
160 | Init script for GDM. | |
161 | ||
162 | %description init -l pl.UTF-8 | |
163 | Skrypt init dla GDM-a. | |
164 | ||
9813a180 ŁK |
165 | %package libs |
166 | Summary: GDM libraries | |
167 | Summary(pl.UTF-8): Biblioteki GDM | |
168 | Group: Libraries | |
169 | ||
170 | %description libs | |
171 | GDM libraries. | |
172 | ||
173 | %description libs -l pl.UTF-8 | |
174 | Biblioteki GDM. | |
175 | ||
1deeed32 ŁK |
176 | %package devel |
177 | Summary: Header files for GDM | |
178 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja | |
179 | Group: X11/Development/Libraries | |
fa7436ec | 180 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
1deeed32 ŁK |
181 | |
182 | %description devel | |
183 | This package contains the files necessary to develop applications | |
184 | using GDM's libraries. | |
185 | ||
186 | %description devel -l pl.UTF-8 | |
187 | Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających | |
188 | bibliotek programu GDM. | |
189 | ||
190 | %package static | |
191 | Summary: Static libraries for GDM | |
192 | Summary(pl.UTF-8): Biblioteki statyczne dla GDM | |
193 | Group: X11/Development/Libraries | |
fa7436ec | 194 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
1deeed32 ŁK |
195 | |
196 | %description static | |
197 | This package contains static libraries for GDM. | |
198 | ||
199 | %description static -l pl.UTF-8 | |
200 | Pakiet zawiera statyczne biblioteki GDM. | |
201 | ||
b9713681 | 202 | %prep |
f2a1103b | 203 | %setup -q |
116b805d | 204 | %patch0 -p1 |
3488434f | 205 | %patch1 -p1 |
70caaf1f | 206 | %patch2 -p1 |
82848b6f | 207 | %patch3 -p1 |
3488434f | 208 | |
b9713681 | 209 | %build |
82848b6f JB |
210 | %meson build \ |
211 | %{!?with_static_libs:--default-library=shared} \ | |
212 | -Dgdm-xsession=true \ | |
213 | -Dgroup=xdm \ | |
214 | -Dinitial-vt=9 \ | |
215 | -Dipv6=true \ | |
216 | -Dpam-mod-dir=/%{_lib}/security \ | |
217 | -Dpam-prefix=/etc \ | |
218 | -Dtcp-wrappers=true \ | |
219 | -Dudev-dir=/lib/udev/rules.d \ | |
220 | -Duser=xdm | |
221 | ||
222 | %ninja_build -C build | |
b9713681 | 223 | |
224 | %install | |
225 | rm -rf $RPM_BUILD_ROOT | |
3938ef44 | 226 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ |
82848b6f | 227 | $RPM_BUILD_ROOT{/home/services/xdm,/var/lib/gdm/.local,/var/log/gdm,/var/run/gdm/greeter} \ |
c62afa2e | 228 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_datadir}/xsessions,%{systemdunitdir}} \ |
9f2ad13f | 229 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
f6d3e03e | 230 | |
82848b6f | 231 | %ninja_install -C build |
066398c3 | 232 | |
0e7e2757 | 233 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password |
1619b9aa | 234 | cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/gdm-fingerprint |
76ae213a | 235 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin |
2e4b2dc4 | 236 | cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/gdm-launch-environment |
76ae213a | 237 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm |
76ae213a | 238 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
aa83a117 | 239 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
c3a3f740 | 240 | |
ced8d2ed JB |
241 | # replace file with mask (to allow choosing via prefdm.service) |
242 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service | |
243 | ||
066398c3 JR |
244 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
245 | ||
c62afa2e | 246 | %find_lang %{name} --with-gnome |
b9713681 | 247 | |
f85eb744 | 248 | # allow executing ~/.Xclients and ~/.xsession |
76ae213a ER |
249 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop |
250 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
c00e1fa1 | 251 | |
dc63666f JB |
252 | %clean |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
7d69ec85 | 255 | %posttrans |
903f486b | 256 | umask 022 |
7d69ec85 MB |
257 | /usr/bin/dconf update |
258 | ||
f7e4906b | 259 | %pre |
b32b0eb5 | 260 | %groupadd -g 55 -r -f xdm |
0fb756ff | 261 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
f7e4906b | 262 | |
e7d75b7d | 263 | %post |
831056d7 | 264 | %update_icon_cache hicolor |
e7d75b7d | 265 | |
98b48f20 | 266 | %postun |
831056d7 | 267 | %update_icon_cache hicolor |
f7e4906b | 268 | if [ "$1" = "0" ]; then |
5387309f | 269 | %userremove xdm |
270 | %groupremove xdm | |
f7e4906b | 271 | fi |
98b48f20 | 272 | |
ec8ebb38 | 273 | %triggerpostun -- %{name} < 2:3.2.1.1-10 |
dc82d2d7 | 274 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then |
82848b6f | 275 | mv -f /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf |
dc82d2d7 | 276 | fi |
277 | ||
98b48f20 | 278 | %post init |
7943107a | 279 | /sbin/chkconfig --add gdm |
76ae213a ER |
280 | # -n skips restarting as it would otherise terminate all sessions opened from gdm! |
281 | %service -n gdm restart | |
d637e133 JR |
282 | %systemd_reload |
283 | ||
284 | %postun init | |
285 | %systemd_reload | |
93384147 | 286 | |
98b48f20 | 287 | %preun init |
dc63666f | 288 | if [ "$1" = "0" ]; then |
0fb756ff | 289 | %service gdm stop |
dc63666f | 290 | /sbin/chkconfig --del gdm |
7943107a | 291 | fi |
f6d3e03e | 292 | |
7a8d4610 JR |
293 | %post libs |
294 | /sbin/ldconfig | |
295 | %glib_compile_schemas | |
296 | ||
297 | %postun libs | |
298 | /sbin/ldconfig | |
299 | if [ "$1" = "0" ]; then | |
300 | %glib_compile_schemas | |
301 | fi | |
4dab4991 | 302 | |
12f50676 | 303 | %files -f %{name}.lang |
066398c3 | 304 | %defattr(644,root,root,755) |
c62afa2e | 305 | %doc AUTHORS MAINTAINERS NEWS README.md |
de273fad | 306 | %attr(755,root,root) %{_sbindir}/gdm |
de273fad | 307 | %attr(755,root,root) %{_bindir}/gdm-screenshot |
b5fd02c4 | 308 | %attr(755,root,root) %{_bindir}/gdmflexiserver |
c62afa2e | 309 | %attr(755,root,root) %{_libexecdir}/gdm-disable-wayland |
f2a1103b | 310 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser |
f2a1103b PZ |
311 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker |
312 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
4ecd7d9c JB |
313 | %attr(755,root,root) %{_libexecdir}/gdm-wayland-session |
314 | %attr(755,root,root) %{_libexecdir}/gdm-x-session | |
ced8d2ed | 315 | %attr(755,root,root) /%{_lib}/security/pam_gdm.so |
c62afa2e | 316 | /lib/udev/rules.d/61-gdm.rules |
98b48f20 | 317 | %dir %{_sysconfdir}/gdm |
f2a1103b PZ |
318 | %dir %{_sysconfdir}/gdm/Init |
319 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
116b805d | 320 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession |
116b805d | 321 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession |
518f8c4c | 322 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession |
f2a1103b | 323 | %dir %{_sysconfdir}/gdm/PostLogin |
518f8c4c | 324 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample |
336213b1 | 325 | %attr(640,root,xdm) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf |
b7923f97 JB |
326 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/gdm.conf |
327 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm-* | |
711a64ba | 328 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm |
c920af86 | 329 | %{_datadir}/dconf/profile/gdm |
82848b6f JB |
330 | %dir %{systemduserunitdir}/gnome-session@gnome-login.target.d |
331 | %{systemduserunitdir}/gnome-session@gnome-login.target.d/session.conf | |
de4bad9d | 332 | %attr(1770,root,xdm) %dir /var/lib/gdm |
8eb31fdc | 333 | %attr(755,xdm,xdm) /var/lib/gdm/.local |
de273fad ŁK |
334 | %attr(750,xdm,xdm) %dir /var/log/gdm |
335 | %attr(711,root,xdm) %dir /var/run/gdm | |
336 | %attr(755,xdm,xdm) %dir /var/run/gdm/greeter | |
98b48f20 | 337 | %attr(750,xdm,xdm) /home/services/xdm |
9f2ad13f | 338 | %{systemdtmpfilesdir}/%{name}.conf |
c62afa2e | 339 | %{_pixmapsdir}/gdm-pld-logo.png |
12f50676 | 340 | %{_datadir}/gdm |
ced8d2ed | 341 | %{_datadir}/gnome-session/sessions/gnome-login.session |
f85eb744 | 342 | %{_datadir}/xsessions/custom.desktop |
343 | %{_datadir}/xsessions/default.desktop | |
1deeed32 | 344 | |
82848b6f JB |
345 | %files init |
346 | %defattr(644,root,root,755) | |
347 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
348 | %{systemdunitdir}/gdm.service | |
349 | ||
9813a180 ŁK |
350 | %files libs |
351 | %defattr(644,root,root,755) | |
68bb2c39 AF |
352 | %attr(755,root,root) %{_libdir}/libgdm.so.1.0.0 |
353 | %attr(755,root,root) %ghost %{_libdir}/libgdm.so.1 | |
68bb2c39 | 354 | %{_libdir}/girepository-1.0/Gdm-1.0.typelib |
7a8d4610 | 355 | %{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml |
9813a180 | 356 | |
1deeed32 ŁK |
357 | %files devel |
358 | %defattr(644,root,root,755) | |
b7923f97 | 359 | %attr(755,root,root) %{_libdir}/libgdm.so |
7531806a | 360 | %dir %{_includedir}/gdm |
68bb2c39 AF |
361 | %{_includedir}/gdm/gdm-client-glue.h |
362 | %{_includedir}/gdm/gdm-client.h | |
ced8d2ed | 363 | %{_includedir}/gdm/gdm-pam-extensions.h |
68bb2c39 AF |
364 | %{_includedir}/gdm/gdm-sessions.h |
365 | %{_includedir}/gdm/gdm-user-switching.h | |
68bb2c39 | 366 | %{_pkgconfigdir}/gdm.pc |
ced8d2ed | 367 | %{_pkgconfigdir}/gdm-pam-extensions.pc |
68bb2c39 | 368 | %{_datadir}/gir-1.0/Gdm-1.0.gir |
1deeed32 ŁK |
369 | |
370 | %files static | |
371 | %defattr(644,root,root,755) | |
68bb2c39 | 372 | %{_libdir}/libgdm.a |