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