]>
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 | # |
9f2ad13f | 7 | # Conditional build: |
a3a6b101 | 8 | %bcond_without systemd # by default use systemd for session tracking instead of ConsoleKit (fallback to ConsoleKit on runtime) |
e6e34130 | 9 | |
c920af86 | 10 | %define glib2_version 1:2.36.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 |
747bc4f5 | 19 | Version: 3.14.1 |
34fca128 | 20 | Release: 5 |
3488434f | 21 | Epoch: 2 |
f6c86ba4 | 22 | License: GPL/LGPL |
42b347d0 | 23 | Group: X11/Applications |
747bc4f5 MB |
24 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/3.14/%{name}-%{version}.tar.xz |
25 | # Source0-md5: 6ebb3c1a694c58651f3e1116ff3f542d | |
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 | |
38 | Patch3: shell-check.patch | |
aca127f2 | 39 | URL: http://www.gnome.org/projects/gdm/ |
2676ea50 | 40 | BuildRequires: accountsservice-devel >= 0.6.12 |
f2a1103b PZ |
41 | BuildRequires: audit-libs-devel |
42 | BuildRequires: autoconf >= 2.60 | |
de273fad | 43 | BuildRequires: automake >= 1:1.11 |
557def69 | 44 | BuildRequires: check-devel >= 0.9.4 |
5f83e34c | 45 | BuildRequires: gettext-tools >= 0.17 |
557def69 | 46 | BuildRequires: glib2-devel >= %{glib2_version} |
b5fd02c4 | 47 | BuildRequires: gobject-introspection-devel >= 0.9.12 |
de273fad | 48 | BuildRequires: gtk+3-devel >= 3.0.0 |
f2a1103b | 49 | BuildRequires: intltool >= 0.40.0 |
4f41bf78 | 50 | BuildRequires: iso-codes |
de273fad | 51 | BuildRequires: libcanberra-gtk3-devel >= 0.4 |
68bb2c39 | 52 | BuildRequires: libselinux-devel |
683a9219 | 53 | BuildRequires: libtool |
de273fad | 54 | BuildRequires: libwrap-devel |
98b48f20 | 55 | BuildRequires: pam-devel |
f2a1103b | 56 | BuildRequires: pkgconfig |
68bb2c39 | 57 | BuildRequires: plymouth-devel |
0df7c395 | 58 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
1f612039 | 59 | BuildRequires: rpmbuild(macros) >= 1.627 |
557def69 | 60 | %{?with_systemd:BuildRequires: systemd-devel >= 186} |
b6aa2fd7 | 61 | BuildRequires: tar >= 1:1.22 |
de273fad ŁK |
62 | BuildRequires: xorg-lib-libX11-devel |
63 | BuildRequires: xorg-lib-libXau-devel | |
dc82d2d7 | 64 | BuildRequires: xorg-lib-libXdmcp-devel |
b5fd02c4 | 65 | BuildRequires: xorg-lib-libXext-devel |
de273fad | 66 | BuildRequires: xorg-lib-libXft-devel |
dc82d2d7 | 67 | BuildRequires: xorg-lib-libXi-devel |
68 | BuildRequires: xorg-lib-libXinerama-devel | |
de273fad | 69 | BuildRequires: xorg-lib-libXrandr-devel |
557def69 | 70 | BuildRequires: xorg-xserver-Xephyr |
b6aa2fd7 | 71 | BuildRequires: xz |
b5fd02c4 | 72 | BuildRequires: yelp-tools |
557def69 | 73 | Requires(post,postun): glib2 >= %{glib2_version} |
459deb1e | 74 | Requires(post,postun): gtk-update-icon-cache |
83594792 ER |
75 | Requires(postun): /usr/sbin/groupdel |
76 | Requires(postun): /usr/sbin/userdel | |
26288641 JB |
77 | Requires(pre): /bin/id |
78 | Requires(pre): /usr/sbin/groupadd | |
79 | Requires(pre): /usr/sbin/useradd | |
903f486b | 80 | Requires(posttrans): dconf |
fa7436ec | 81 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
6954d666 | 82 | Requires: /usr/bin/X |
2676ea50 | 83 | Requires: accountsservice >= 0.6.12 |
4429cfb0 | 84 | Requires: dbus-x11 |
0e7e2757 | 85 | Requires: gdm-wm >= 3.2.1 |
557def69 | 86 | Requires: glib2 >= %{glib2_version} |
9f2ad13f ŁK |
87 | Requires: gnome-session >= 3.0.0 |
88 | Requires: gnome-settings-daemon >= 3.0.0 | |
de273fad | 89 | Requires: hicolor-icon-theme |
bba08ce8 | 90 | Requires: pam >= 0.99.7.1 |
b614b4a4 | 91 | Requires: polkit-gnome >= 0.93 |
6beee835 | 92 | Requires: which |
f3737f40 | 93 | Requires: xinitrc-ng >= 1.0 |
2004c339 | 94 | Requires: xorg-app-sessreg |
f2a1103b | 95 | Requires: xorg-app-xmodmap |
2294f17e | 96 | Suggests: ConsoleKit-x11 >= 0.4.1 |
0e7e2757 | 97 | Suggests: pam-pam_gnome_keyring |
557def69 | 98 | Suggests: xorg-xserver-Xephyr |
f85eb744 | 99 | Suggests: zenity |
048e8543 | 100 | Provides: XDM |
5387309f | 101 | Provides: group(xdm) |
102 | Provides: user(xdm) | |
f2a1103b | 103 | Obsoletes: gdm-Xnest |
eeedb6a8 | 104 | Obsoletes: gdm-systemd |
935bde0d MB |
105 | Obsoletes: gdm-user-switch-applet |
106 | Obsoletes: gnome-applet-fast-user-switch | |
98b48f20 | 107 | Conflicts: gdkxft |
75fd7992 | 108 | # sr@Latn vs. sr@latin |
109 | Conflicts: glibc-misc < 6:2.7 | |
557def69 | 110 | Conflicts: systemd < 186 |
ac5ef200 | 111 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066398c3 | 112 | |
84e15ca6 TP |
113 | %description |
114 | Gdm (the GNOME Display Manager) is a highly configurable | |
115 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
116 | into your system with the X Window System running and supports running | |
117 | several different X sessions on your local machine at the same time. | |
b9713681 | 118 | |
25351dc6 | 119 | %description -l es.UTF-8 |
116b805d | 120 | Administrador de Entrada del GNOME. |
121 | ||
25351dc6 | 122 | %description -l ja.UTF-8 |
de273fad ŁK |
123 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager |
124 | の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの | |
25351dc6 | 125 | システムにいろいろなセッションを選択してログインすることができます。 |
24b65b9a | 126 | |
25351dc6 | 127 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
24b65b9a | 128 | |
25351dc6 JR |
129 | %description -l pl.UTF-8 |
130 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
131 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
132 | różnych sesji X na lokalnej maszynie. | |
f6d3e03e | 133 | |
25351dc6 | 134 | %description -l pt_BR.UTF-8 |
116b805d | 135 | Gerenciador de Entrada do GNOME. |
136 | ||
25351dc6 JR |
137 | %description -l ru.UTF-8 |
138 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
139 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
140 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
24b65b9a | 141 | |
25351dc6 JR |
142 | %description -l uk.UTF-8 |
143 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
144 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
145 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
24b65b9a | 146 | |
9813a180 ŁK |
147 | %package libs |
148 | Summary: GDM libraries | |
149 | Summary(pl.UTF-8): Biblioteki GDM | |
150 | Group: Libraries | |
151 | ||
152 | %description libs | |
153 | GDM libraries. | |
154 | ||
155 | %description libs -l pl.UTF-8 | |
156 | Biblioteki GDM. | |
157 | ||
1deeed32 ŁK |
158 | %package devel |
159 | Summary: Header files for GDM | |
160 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja | |
161 | Group: X11/Development/Libraries | |
fa7436ec | 162 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
1deeed32 ŁK |
163 | |
164 | %description devel | |
165 | This package contains the files necessary to develop applications | |
166 | using GDM's libraries. | |
167 | ||
168 | %description devel -l pl.UTF-8 | |
169 | Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających | |
170 | bibliotek programu GDM. | |
171 | ||
172 | %package static | |
173 | Summary: Static libraries for GDM | |
174 | Summary(pl.UTF-8): Biblioteki statyczne dla GDM | |
175 | Group: X11/Development/Libraries | |
fa7436ec | 176 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
1deeed32 ŁK |
177 | |
178 | %description static | |
179 | This package contains static libraries for GDM. | |
180 | ||
181 | %description static -l pl.UTF-8 | |
182 | Pakiet zawiera statyczne biblioteki GDM. | |
183 | ||
98b48f20 | 184 | %package init |
185 | Summary: Init script for GDM | |
82455104 | 186 | Summary(pl.UTF-8): Skrypt init dla GDM-a |
98b48f20 | 187 | Group: X11/Applications |
83594792 | 188 | Requires(post,preun): /sbin/chkconfig |
d637e133 | 189 | Requires(post,preun,postun): systemd-units >= 38 |
c00e1fa1 | 190 | Requires: %{name} = %{epoch}:%{version}-%{release} |
dd72a121 | 191 | Requires: open |
e6e34130 | 192 | Requires: rc-scripts >= 0.4.3.0 |
d637e133 | 193 | Requires: systemd-units >= 38 |
98b48f20 | 194 | |
195 | %description init | |
196 | Init script for GDM. | |
197 | ||
25351dc6 | 198 | %description init -l pl.UTF-8 |
98b48f20 | 199 | Skrypt init dla GDM-a. |
200 | ||
b9713681 | 201 | %prep |
f2a1103b | 202 | %setup -q |
116b805d | 203 | %patch0 -p1 |
3488434f | 204 | %patch1 -p1 |
70caaf1f | 205 | %patch2 -p1 |
d19ef4b4 | 206 | #patch3 -p1 |
3488434f | 207 | |
b9713681 | 208 | %build |
de273fad | 209 | touch data/gdm.schemas.in.in |
c0747f8c | 210 | %{__libtoolize} |
04029a9e | 211 | %{__glib_gettextize} |
212 | %{__intltoolize} | |
98b48f20 | 213 | %{__aclocal} |
f2a1103b | 214 | %{__autoheader} |
46b6432e | 215 | %{__autoconf} |
216 | %{__automake} | |
116b805d | 217 | %configure \ |
557def69 | 218 | SYSTEMD_X_SERVER=/lib/systemd/systemd-multi-seat-x \ |
533928a2 | 219 | %{?debug:--enable-debug} \ |
dc82d2d7 | 220 | --disable-console-helper \ |
b614b4a4 | 221 | --disable-silent-rules \ |
9f2ad13f | 222 | %{__with_without systemd systemd} \ |
69c827a2 | 223 | --with-console-kit \ |
dc82d2d7 | 224 | --enable-authentication-scheme=pam \ |
98b48f20 | 225 | --with-pam-prefix=/etc \ |
116b805d | 226 | --with-tcp-wrappers=yes \ |
dc82d2d7 | 227 | --with-xdmcp=yes \ |
f2a1103b PZ |
228 | --with-xinerama=yes \ |
229 | --with-user=xdm \ | |
68bb2c39 AF |
230 | --with-group=xdm \ |
231 | --enable-ipv6 | |
ac5ef200 | 232 | |
68bb2c39 | 233 | %{__make} -j1 |
b9713681 | 234 | |
235 | %install | |
236 | rm -rf $RPM_BUILD_ROOT | |
34fca128 | 237 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ |
48915507 | 238 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ |
c3a3f740 | 239 | $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{systemdunitdir}} \ |
9f2ad13f | 240 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
f6d3e03e | 241 | |
116b805d | 242 | %{__make} install \ |
243 | DESTDIR=$RPM_BUILD_ROOT \ | |
9f2ad13f | 244 | PAM_PREFIX=%{_sysconfdir} |
066398c3 | 245 | |
0e7e2757 | 246 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm-password |
1619b9aa | 247 | cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/gdm-fingerprint |
76ae213a | 248 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin |
2e4b2dc4 | 249 | cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/gdm-launch-environment |
76ae213a | 250 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm |
76ae213a | 251 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
f3737f40 | 252 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service |
9f2ad13f | 253 | install %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
c3a3f740 | 254 | |
066398c3 JR |
255 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
256 | ||
aca127f2 | 257 | %find_lang %{name} --with-gnome --with-omf --all-name |
b9713681 | 258 | |
f85eb744 | 259 | # allow executing ~/.Xclients and ~/.xsession |
76ae213a ER |
260 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop |
261 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
c00e1fa1 | 262 | |
d19ef4b4 | 263 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
1deeed32 | 264 | |
dc63666f JB |
265 | %clean |
266 | rm -rf $RPM_BUILD_ROOT | |
267 | ||
7d69ec85 | 268 | %posttrans |
903f486b | 269 | umask 022 |
7d69ec85 MB |
270 | /usr/bin/dconf update |
271 | ||
f7e4906b | 272 | %pre |
b32b0eb5 | 273 | %groupadd -g 55 -r -f xdm |
0fb756ff | 274 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
f7e4906b | 275 | |
e7d75b7d | 276 | %post |
831056d7 | 277 | %update_icon_cache hicolor |
e7d75b7d | 278 | |
98b48f20 | 279 | %postun |
831056d7 | 280 | %update_icon_cache hicolor |
f7e4906b | 281 | if [ "$1" = "0" ]; then |
5387309f | 282 | %userremove xdm |
283 | %groupremove xdm | |
f7e4906b | 284 | fi |
98b48f20 | 285 | |
ec8ebb38 | 286 | %triggerpostun -- %{name} < 2:3.2.1.1-10 |
dc82d2d7 | 287 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then |
76ae213a | 288 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf |
dc82d2d7 | 289 | fi |
290 | ||
98b48f20 | 291 | %post init |
7943107a | 292 | /sbin/chkconfig --add gdm |
76ae213a ER |
293 | # -n skips restarting as it would otherise terminate all sessions opened from gdm! |
294 | %service -n gdm restart | |
d637e133 JR |
295 | %systemd_reload |
296 | ||
297 | %postun init | |
298 | %systemd_reload | |
93384147 | 299 | |
98b48f20 | 300 | %preun init |
dc63666f | 301 | if [ "$1" = "0" ]; then |
0fb756ff | 302 | %service gdm stop |
dc63666f | 303 | /sbin/chkconfig --del gdm |
7943107a | 304 | fi |
f6d3e03e | 305 | |
7a8d4610 JR |
306 | %post libs |
307 | /sbin/ldconfig | |
308 | %glib_compile_schemas | |
309 | ||
310 | %postun libs | |
311 | /sbin/ldconfig | |
312 | if [ "$1" = "0" ]; then | |
313 | %glib_compile_schemas | |
314 | fi | |
4dab4991 | 315 | |
12f50676 | 316 | %files -f %{name}.lang |
066398c3 | 317 | %defattr(644,root,root,755) |
a35babae | 318 | %doc AUTHORS ChangeLog NEWS README TODO |
de273fad | 319 | %attr(755,root,root) %{_sbindir}/gdm |
de273fad | 320 | %attr(755,root,root) %{_bindir}/gdm-screenshot |
b5fd02c4 | 321 | %attr(755,root,root) %{_bindir}/gdmflexiserver |
f2a1103b | 322 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser |
f2a1103b PZ |
323 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker |
324 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
98b48f20 | 325 | %dir %{_sysconfdir}/gdm |
f2a1103b PZ |
326 | %dir %{_sysconfdir}/gdm/Init |
327 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
116b805d | 328 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession |
116b805d | 329 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession |
518f8c4c | 330 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession |
f2a1103b | 331 | %dir %{_sysconfdir}/gdm/PostLogin |
518f8c4c | 332 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample |
f2a1103b | 333 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf |
f85eb744 | 334 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/* |
711a64ba ER |
335 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* |
336 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
c920af86 | 337 | %{_datadir}/dconf/profile/gdm |
de273fad | 338 | %attr(1755,root,xdm) %dir /var/cache/gdm |
de4bad9d | 339 | %attr(1770,root,xdm) %dir /var/lib/gdm |
8eb31fdc | 340 | %attr(755,xdm,xdm) /var/lib/gdm/.local |
de273fad ŁK |
341 | %attr(750,xdm,xdm) %dir /var/log/gdm |
342 | %attr(711,root,xdm) %dir /var/run/gdm | |
343 | %attr(755,xdm,xdm) %dir /var/run/gdm/greeter | |
98b48f20 | 344 | %attr(750,xdm,xdm) /home/services/xdm |
9f2ad13f | 345 | %{systemdtmpfilesdir}/%{name}.conf |
006e3362 | 346 | %{_pixmapsdir}/* |
12f50676 | 347 | %{_datadir}/gdm |
1deeed32 | 348 | %{_datadir}/gnome-session/sessions/gdm-shell.session |
f85eb744 | 349 | %{_datadir}/xsessions/custom.desktop |
350 | %{_datadir}/xsessions/default.desktop | |
c61959bc | 351 | %{_iconsdir}/hicolor/*/apps/*.png |
1deeed32 | 352 | |
9813a180 ŁK |
353 | %files libs |
354 | %defattr(644,root,root,755) | |
68bb2c39 AF |
355 | %attr(755,root,root) %{_libdir}/libgdm.so.1.0.0 |
356 | %attr(755,root,root) %ghost %{_libdir}/libgdm.so.1 | |
68bb2c39 | 357 | %{_libdir}/girepository-1.0/Gdm-1.0.typelib |
7a8d4610 | 358 | %{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml |
9813a180 | 359 | |
1deeed32 ŁK |
360 | %files devel |
361 | %defattr(644,root,root,755) | |
7531806a | 362 | %dir %{_includedir}/gdm |
68bb2c39 AF |
363 | %{_includedir}/gdm/gdm-client-glue.h |
364 | %{_includedir}/gdm/gdm-client.h | |
365 | %{_includedir}/gdm/gdm-sessions.h | |
366 | %{_includedir}/gdm/gdm-user-switching.h | |
68bb2c39 | 367 | %{_pkgconfigdir}/gdm.pc |
68bb2c39 | 368 | %{_libdir}/libgdm.so |
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 |
98b48f20 | 374 | |
375 | %files init | |
376 | %defattr(644,root,root,755) | |
377 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
3f8c98de | 378 | %{systemdunitdir}/gdm.service |