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