]>
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 | ||
3c614ca4 | 10 | %define glib2_ver 1:2.56.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 |
3c614ca4 | 19 | Version: 40.0 |
eb03eaac | 20 | Release: 1 |
3488434f | 21 | Epoch: 2 |
b354c9f4 | 22 | License: GPL v2+ |
42b347d0 | 23 | Group: X11/Applications |
3c614ca4 JB |
24 | Source0: https://download.gnome.org/sources/gdm/40/%{name}-%{version}.tar.xz |
25 | # Source0-md5: 85e6a306f1d0c88c276938a0519d8332 | |
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 |
3c614ca4 | 44 | BuildRequires: glib2-devel >= %{glib2_ver} |
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 |
3c614ca4 | 74 | Requires(post,postun): glib2 >= %{glib2_ver} |
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 |
3c614ca4 | 87 | Requires: glib2 >= %{glib2_ver} |
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) | |
3c614ca4 JB |
106 | Obsoletes: gdm-Xnest < 2:2.28 |
107 | Obsoletes: gdm-systemd < 2:3.2.1.1-10 | |
108 | Obsoletes: gdm-upstart < 2:3.20 | |
109 | Obsoletes: gdm-user-switch-applet < 2:3.0.0-2 | |
110 | Obsoletes: gnome-applet-fast-user-switch < 2.21 | |
98b48f20 | 111 | Conflicts: gdkxft |
557def69 | 112 | Conflicts: systemd < 186 |
ac5ef200 | 113 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066398c3 | 114 | |
84e15ca6 TP |
115 | %description |
116 | Gdm (the GNOME Display Manager) is a highly configurable | |
117 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
118 | into your system with the X Window System running and supports running | |
119 | several different X sessions on your local machine at the same time. | |
b9713681 | 120 | |
25351dc6 | 121 | %description -l es.UTF-8 |
116b805d | 122 | Administrador de Entrada del GNOME. |
123 | ||
25351dc6 | 124 | %description -l ja.UTF-8 |
de273fad ŁK |
125 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager |
126 | の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの | |
25351dc6 | 127 | システムにいろいろなセッションを選択してログインすることができます。 |
24b65b9a | 128 | |
25351dc6 | 129 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
24b65b9a | 130 | |
25351dc6 JR |
131 | %description -l pl.UTF-8 |
132 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
133 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
134 | różnych sesji X na lokalnej maszynie. | |
f6d3e03e | 135 | |
25351dc6 | 136 | %description -l pt_BR.UTF-8 |
116b805d | 137 | Gerenciador de Entrada do GNOME. |
138 | ||
25351dc6 JR |
139 | %description -l ru.UTF-8 |
140 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
141 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
142 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
24b65b9a | 143 | |
25351dc6 JR |
144 | %description -l uk.UTF-8 |
145 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
146 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
147 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
24b65b9a | 148 | |
82848b6f JB |
149 | %package init |
150 | Summary: Init script for GDM | |
151 | Summary(pl.UTF-8): Skrypt init dla GDM-a | |
152 | Group: X11/Applications | |
153 | Requires(post,preun): /sbin/chkconfig | |
154 | Requires(post,preun,postun): systemd-units >= 38 | |
155 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
156 | Requires: open | |
157 | Requires: rc-scripts >= 0.4.3.0 | |
158 | Requires: systemd-units >= 38 | |
159 | ||
160 | %description init | |
161 | Init script for GDM. | |
162 | ||
163 | %description init -l pl.UTF-8 | |
164 | Skrypt init dla GDM-a. | |
165 | ||
9813a180 ŁK |
166 | %package libs |
167 | Summary: GDM libraries | |
168 | Summary(pl.UTF-8): Biblioteki GDM | |
169 | Group: Libraries | |
170 | ||
171 | %description libs | |
172 | GDM libraries. | |
173 | ||
174 | %description libs -l pl.UTF-8 | |
175 | Biblioteki GDM. | |
176 | ||
1deeed32 ŁK |
177 | %package devel |
178 | Summary: Header files for GDM | |
179 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja | |
180 | Group: X11/Development/Libraries | |
fa7436ec | 181 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
1deeed32 ŁK |
182 | |
183 | %description devel | |
184 | This package contains the files necessary to develop applications | |
185 | using GDM's libraries. | |
186 | ||
187 | %description devel -l pl.UTF-8 | |
188 | Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających | |
189 | bibliotek programu GDM. | |
190 | ||
191 | %package static | |
192 | Summary: Static libraries for GDM | |
193 | Summary(pl.UTF-8): Biblioteki statyczne dla GDM | |
194 | Group: X11/Development/Libraries | |
fa7436ec | 195 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
1deeed32 ŁK |
196 | |
197 | %description static | |
198 | This package contains static libraries for GDM. | |
199 | ||
200 | %description static -l pl.UTF-8 | |
201 | Pakiet zawiera statyczne biblioteki GDM. | |
202 | ||
b9713681 | 203 | %prep |
f2a1103b | 204 | %setup -q |
116b805d | 205 | %patch0 -p1 |
3488434f | 206 | %patch1 -p1 |
70caaf1f | 207 | %patch2 -p1 |
82848b6f | 208 | %patch3 -p1 |
3488434f | 209 | |
b9713681 | 210 | %build |
82848b6f JB |
211 | %meson build \ |
212 | %{!?with_static_libs:--default-library=shared} \ | |
213 | -Dgdm-xsession=true \ | |
214 | -Dgroup=xdm \ | |
215 | -Dinitial-vt=9 \ | |
216 | -Dipv6=true \ | |
217 | -Dpam-mod-dir=/%{_lib}/security \ | |
218 | -Dpam-prefix=/etc \ | |
219 | -Dtcp-wrappers=true \ | |
220 | -Dudev-dir=/lib/udev/rules.d \ | |
221 | -Duser=xdm | |
222 | ||
223 | %ninja_build -C build | |
b9713681 | 224 | |
225 | %install | |
226 | rm -rf $RPM_BUILD_ROOT | |
3938ef44 | 227 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ |
82848b6f | 228 | $RPM_BUILD_ROOT{/home/services/xdm,/var/lib/gdm/.local,/var/log/gdm,/var/run/gdm/greeter} \ |
c62afa2e | 229 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_datadir}/xsessions,%{systemdunitdir}} \ |
9f2ad13f | 230 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
f6d3e03e | 231 | |
82848b6f | 232 | %ninja_install -C build |
066398c3 | 233 | |
0e7e2757 | 234 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password |
1619b9aa | 235 | cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/gdm-fingerprint |
76ae213a | 236 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin |
2e4b2dc4 | 237 | cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/gdm-launch-environment |
76ae213a | 238 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm |
76ae213a | 239 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
aa83a117 | 240 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
c3a3f740 | 241 | |
ced8d2ed JB |
242 | # replace file with mask (to allow choosing via prefdm.service) |
243 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service | |
244 | ||
066398c3 JR |
245 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
246 | ||
c62afa2e | 247 | %find_lang %{name} --with-gnome |
b9713681 | 248 | |
f85eb744 | 249 | # allow executing ~/.Xclients and ~/.xsession |
76ae213a ER |
250 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop |
251 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
c00e1fa1 | 252 | |
dc63666f JB |
253 | %clean |
254 | rm -rf $RPM_BUILD_ROOT | |
255 | ||
7d69ec85 | 256 | %posttrans |
903f486b | 257 | umask 022 |
7d69ec85 MB |
258 | /usr/bin/dconf update |
259 | ||
f7e4906b | 260 | %pre |
b32b0eb5 | 261 | %groupadd -g 55 -r -f xdm |
0fb756ff | 262 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
f7e4906b | 263 | |
e7d75b7d | 264 | %post |
831056d7 | 265 | %update_icon_cache hicolor |
e7d75b7d | 266 | |
98b48f20 | 267 | %postun |
831056d7 | 268 | %update_icon_cache hicolor |
f7e4906b | 269 | if [ "$1" = "0" ]; then |
5387309f | 270 | %userremove xdm |
271 | %groupremove xdm | |
f7e4906b | 272 | fi |
98b48f20 | 273 | |
ec8ebb38 | 274 | %triggerpostun -- %{name} < 2:3.2.1.1-10 |
dc82d2d7 | 275 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then |
82848b6f | 276 | mv -f /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf |
dc82d2d7 | 277 | fi |
278 | ||
98b48f20 | 279 | %post init |
7943107a | 280 | /sbin/chkconfig --add gdm |
76ae213a ER |
281 | # -n skips restarting as it would otherise terminate all sessions opened from gdm! |
282 | %service -n gdm restart | |
d637e133 JR |
283 | %systemd_reload |
284 | ||
285 | %postun init | |
286 | %systemd_reload | |
93384147 | 287 | |
98b48f20 | 288 | %preun init |
dc63666f | 289 | if [ "$1" = "0" ]; then |
0fb756ff | 290 | %service gdm stop |
dc63666f | 291 | /sbin/chkconfig --del gdm |
7943107a | 292 | fi |
f6d3e03e | 293 | |
7a8d4610 JR |
294 | %post libs |
295 | /sbin/ldconfig | |
296 | %glib_compile_schemas | |
297 | ||
298 | %postun libs | |
299 | /sbin/ldconfig | |
300 | if [ "$1" = "0" ]; then | |
301 | %glib_compile_schemas | |
302 | fi | |
4dab4991 | 303 | |
12f50676 | 304 | %files -f %{name}.lang |
066398c3 | 305 | %defattr(644,root,root,755) |
c62afa2e | 306 | %doc AUTHORS MAINTAINERS NEWS README.md |
de273fad | 307 | %attr(755,root,root) %{_sbindir}/gdm |
de273fad | 308 | %attr(755,root,root) %{_bindir}/gdm-screenshot |
b5fd02c4 | 309 | %attr(755,root,root) %{_bindir}/gdmflexiserver |
f2a1103b | 310 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser |
3c614ca4 | 311 | %attr(755,root,root) %{_libexecdir}/gdm-runtime-config |
f2a1103b PZ |
312 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker |
313 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
4ecd7d9c JB |
314 | %attr(755,root,root) %{_libexecdir}/gdm-wayland-session |
315 | %attr(755,root,root) %{_libexecdir}/gdm-x-session | |
ced8d2ed | 316 | %attr(755,root,root) /%{_lib}/security/pam_gdm.so |
c62afa2e | 317 | /lib/udev/rules.d/61-gdm.rules |
98b48f20 | 318 | %dir %{_sysconfdir}/gdm |
f2a1103b PZ |
319 | %dir %{_sysconfdir}/gdm/Init |
320 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
116b805d | 321 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession |
116b805d | 322 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession |
518f8c4c | 323 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession |
f2a1103b | 324 | %dir %{_sysconfdir}/gdm/PostLogin |
518f8c4c | 325 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample |
336213b1 | 326 | %attr(640,root,xdm) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf |
b7923f97 JB |
327 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/gdm.conf |
328 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm-* | |
711a64ba | 329 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm |
c920af86 | 330 | %{_datadir}/dconf/profile/gdm |
82848b6f JB |
331 | %dir %{systemduserunitdir}/gnome-session@gnome-login.target.d |
332 | %{systemduserunitdir}/gnome-session@gnome-login.target.d/session.conf | |
de4bad9d | 333 | %attr(1770,root,xdm) %dir /var/lib/gdm |
8eb31fdc | 334 | %attr(755,xdm,xdm) /var/lib/gdm/.local |
de273fad ŁK |
335 | %attr(750,xdm,xdm) %dir /var/log/gdm |
336 | %attr(711,root,xdm) %dir /var/run/gdm | |
337 | %attr(755,xdm,xdm) %dir /var/run/gdm/greeter | |
98b48f20 | 338 | %attr(750,xdm,xdm) /home/services/xdm |
9f2ad13f | 339 | %{systemdtmpfilesdir}/%{name}.conf |
c62afa2e | 340 | %{_pixmapsdir}/gdm-pld-logo.png |
12f50676 | 341 | %{_datadir}/gdm |
ced8d2ed | 342 | %{_datadir}/gnome-session/sessions/gnome-login.session |
f85eb744 | 343 | %{_datadir}/xsessions/custom.desktop |
344 | %{_datadir}/xsessions/default.desktop | |
1deeed32 | 345 | |
82848b6f JB |
346 | %files init |
347 | %defattr(644,root,root,755) | |
348 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
349 | %{systemdunitdir}/gdm.service | |
350 | ||
9813a180 ŁK |
351 | %files libs |
352 | %defattr(644,root,root,755) | |
68bb2c39 AF |
353 | %attr(755,root,root) %{_libdir}/libgdm.so.1.0.0 |
354 | %attr(755,root,root) %ghost %{_libdir}/libgdm.so.1 | |
68bb2c39 | 355 | %{_libdir}/girepository-1.0/Gdm-1.0.typelib |
7a8d4610 | 356 | %{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml |
9813a180 | 357 | |
1deeed32 ŁK |
358 | %files devel |
359 | %defattr(644,root,root,755) | |
b7923f97 | 360 | %attr(755,root,root) %{_libdir}/libgdm.so |
7531806a | 361 | %dir %{_includedir}/gdm |
68bb2c39 AF |
362 | %{_includedir}/gdm/gdm-client-glue.h |
363 | %{_includedir}/gdm/gdm-client.h | |
ced8d2ed | 364 | %{_includedir}/gdm/gdm-pam-extensions.h |
68bb2c39 AF |
365 | %{_includedir}/gdm/gdm-sessions.h |
366 | %{_includedir}/gdm/gdm-user-switching.h | |
68bb2c39 | 367 | %{_pkgconfigdir}/gdm.pc |
ced8d2ed | 368 | %{_pkgconfigdir}/gdm-pam-extensions.pc |
68bb2c39 | 369 | %{_datadir}/gir-1.0/Gdm-1.0.gir |
1deeed32 ŁK |
370 | |
371 | %files static | |
372 | %defattr(644,root,root,755) | |
68bb2c39 | 373 | %{_libdir}/libgdm.a |