]>
Commit | Line | Data |
---|---|---|
0fb756ff | 1 | # |
98b48f20 | 2 | # TODO: |
157d4449 MB |
3 | # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2 |
4 | # - check /etc/pam.d/gdm-autologin | |
98b48f20 | 5 | # |
69927793 AG |
6 | # Conditiional build: |
7 | %bcond_without selinux # without selinux | |
e6e34130 | 8 | |
066398c3 | 9 | Summary: GNOME Display Manager |
82455104 ER |
10 | Summary(es.UTF-8): Administrador de Entrada del GNOME |
11 | Summary(ja.UTF-8): GNOME ディスプレイマネージャ | |
12 | Summary(pl.UTF-8): gdm - zarządca ekranów GNOME | |
13 | Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME | |
14 | Summary(ru.UTF-8): Дисплейный менеджер GNOME | |
15 | Summary(uk.UTF-8): Дисплейний менеджер GNOME | |
066398c3 | 16 | Name: gdm |
b6aa2fd7 | 17 | Version: 3.0.4 |
4429cfb0 | 18 | Release: 4 |
3488434f | 19 | Epoch: 2 |
f6c86ba4 | 20 | License: GPL/LGPL |
42b347d0 | 21 | Group: X11/Applications |
b6aa2fd7 MB |
22 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/3.0/%{name}-%{version}.tar.xz |
23 | # Source0-md5: fd90c847b3988c685cb62f775787672b | |
ac5ef200 | 24 | Source1: %{name}.pamd |
25 | Source2: %{name}.init | |
495829ba | 26 | Source3: %{name}-pld-logo.png |
de273fad | 27 | Source4: %{name}-autologin.pamd |
f85eb744 | 28 | Source5: %{name}-custom.desktop |
29 | Source6: %{name}-default.desktop | |
76ae213a | 30 | Source7: gdm.upstart |
ac5ef200 | 31 | Patch0: %{name}-xdmcp.patch |
f2a1103b | 32 | Patch1: %{name}-polkit.patch |
70caaf1f | 33 | Patch2: %{name}-xsession.patch |
b614b4a4 | 34 | Patch3: %{name}-defaults.patch |
aca127f2 | 35 | URL: http://www.gnome.org/projects/gdm/ |
de273fad | 36 | BuildRequires: GConf2-devel >= 2.32.0 |
2676ea50 | 37 | BuildRequires: accountsservice-devel >= 0.6.12 |
95b777c2 | 38 | BuildRequires: attr-devel |
f2a1103b PZ |
39 | BuildRequires: audit-libs-devel |
40 | BuildRequires: autoconf >= 2.60 | |
de273fad ŁK |
41 | BuildRequires: automake >= 1:1.11 |
42 | BuildRequires: check >= 0.9.4 | |
f2a1103b | 43 | BuildRequires: dbus-glib-devel >= 0.74 |
4f41bf78 | 44 | BuildRequires: docbook-dtd412-xml |
de273fad | 45 | BuildRequires: fontconfig-devel >= 2.5.0 |
116b805d | 46 | BuildRequires: gettext-devel |
de273fad | 47 | BuildRequires: glib2-devel >= 1:2.28.0 |
dfa453a4 | 48 | BuildRequires: gnome-doc-utils |
de273fad ŁK |
49 | BuildRequires: gnome-panel-devel >= 2.0.0 |
50 | BuildRequires: gtk+3-devel >= 3.0.0 | |
f2a1103b | 51 | BuildRequires: intltool >= 0.40.0 |
4f41bf78 | 52 | BuildRequires: iso-codes |
de273fad | 53 | BuildRequires: libcanberra-gtk3-devel >= 0.4 |
69927793 | 54 | %{?with_selinux:BuildRequires: libselinux-devel} |
683a9219 | 55 | BuildRequires: libtool |
de273fad | 56 | BuildRequires: libwrap-devel |
f2a1103b | 57 | BuildRequires: libxklavier-devel >= 4.0-2 |
98b48f20 | 58 | BuildRequires: pam-devel |
de273fad | 59 | BuildRequires: pango-devel >= 1.3.0 |
e038830e | 60 | BuildRequires: perl-modules |
f2a1103b | 61 | BuildRequires: pkgconfig |
0df7c395 | 62 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
76ae213a | 63 | BuildRequires: rpmbuild(macros) >= 1.450 |
de273fad | 64 | BuildRequires: scrollkeeper >= 0.1.4 |
b6aa2fd7 | 65 | BuildRequires: tar >= 1:1.22 |
de273fad ŁK |
66 | BuildRequires: upower-devel >= 0.9.0 |
67 | BuildRequires: xorg-lib-libX11-devel | |
68 | BuildRequires: xorg-lib-libXau-devel | |
dc82d2d7 | 69 | BuildRequires: xorg-lib-libXdmcp-devel |
de273fad | 70 | BuildRequires: xorg-lib-libXft-devel |
dc82d2d7 | 71 | BuildRequires: xorg-lib-libXi-devel |
72 | BuildRequires: xorg-lib-libXinerama-devel | |
de273fad | 73 | BuildRequires: xorg-lib-libXrandr-devel |
b6aa2fd7 | 74 | BuildRequires: xz |
f85eb744 | 75 | Requires(post,postun): /usr/bin/scrollkeeper-update |
459deb1e | 76 | Requires(post,postun): gtk-update-icon-cache |
b614b4a4 | 77 | Requires(post,preun): GConf2 |
83594792 ER |
78 | Requires(postun): /usr/sbin/groupdel |
79 | Requires(postun): /usr/sbin/userdel | |
26288641 JB |
80 | Requires(pre): /bin/id |
81 | Requires(pre): /usr/sbin/groupadd | |
82 | Requires(pre): /usr/sbin/useradd | |
6954d666 | 83 | Requires: /usr/bin/X |
6ced006b | 84 | Requires: ConsoleKit-x11 >= 0.4.1 |
2676ea50 | 85 | Requires: accountsservice >= 0.6.12 |
4429cfb0 | 86 | Requires: dbus-x11 |
de273fad ŁK |
87 | Requires: gnome-session >= 2.91.91.1 |
88 | Requires: gnome-settings-daemon >= 2.91.91 | |
89 | Requires: hicolor-icon-theme | |
bba08ce8 | 90 | Requires: pam >= 0.99.7.1 |
b614b4a4 | 91 | Requires: polkit-gnome >= 0.93 |
6beee835 | 92 | Requires: which |
2004c339 | 93 | Requires: xorg-app-sessreg |
f2a1103b | 94 | Requires: xorg-app-xmodmap |
f85eb744 | 95 | Suggests: zenity |
048e8543 | 96 | Provides: XDM |
5387309f | 97 | Provides: group(xdm) |
98 | Provides: user(xdm) | |
f2a1103b | 99 | Obsoletes: gdm-Xnest |
935bde0d MB |
100 | Obsoletes: gdm-user-switch-applet |
101 | Obsoletes: gnome-applet-fast-user-switch | |
98b48f20 | 102 | Conflicts: gdkxft |
75fd7992 | 103 | # sr@Latn vs. sr@latin |
104 | Conflicts: glibc-misc < 6:2.7 | |
ac5ef200 | 105 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066398c3 | 106 | |
84e15ca6 TP |
107 | %description |
108 | Gdm (the GNOME Display Manager) is a highly configurable | |
109 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
110 | into your system with the X Window System running and supports running | |
111 | several different X sessions on your local machine at the same time. | |
b9713681 | 112 | |
25351dc6 | 113 | %description -l es.UTF-8 |
116b805d | 114 | Administrador de Entrada del GNOME. |
115 | ||
25351dc6 | 116 | %description -l ja.UTF-8 |
de273fad ŁK |
117 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager |
118 | の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの | |
25351dc6 | 119 | システムにいろいろなセッションを選択してログインすることができます。 |
24b65b9a | 120 | |
25351dc6 | 121 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
24b65b9a | 122 | |
25351dc6 JR |
123 | %description -l pl.UTF-8 |
124 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
125 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
126 | różnych sesji X na lokalnej maszynie. | |
f6d3e03e | 127 | |
25351dc6 | 128 | %description -l pt_BR.UTF-8 |
116b805d | 129 | Gerenciador de Entrada do GNOME. |
130 | ||
25351dc6 JR |
131 | %description -l ru.UTF-8 |
132 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
133 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
134 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
24b65b9a | 135 | |
25351dc6 JR |
136 | %description -l uk.UTF-8 |
137 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
138 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
139 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
24b65b9a | 140 | |
98b48f20 | 141 | %package init |
142 | Summary: Init script for GDM | |
82455104 | 143 | Summary(pl.UTF-8): Skrypt init dla GDM-a |
98b48f20 | 144 | Group: X11/Applications |
83594792 | 145 | Requires(post,preun): /sbin/chkconfig |
c00e1fa1 | 146 | Requires: %{name} = %{epoch}:%{version}-%{release} |
dd72a121 | 147 | Requires: open |
e6e34130 | 148 | Requires: rc-scripts >= 0.4.3.0 |
98b48f20 | 149 | |
150 | %description init | |
151 | Init script for GDM. | |
152 | ||
25351dc6 | 153 | %description init -l pl.UTF-8 |
98b48f20 | 154 | Skrypt init dla GDM-a. |
155 | ||
b9713681 | 156 | %prep |
f2a1103b | 157 | %setup -q |
116b805d | 158 | %patch0 -p1 |
3488434f | 159 | %patch1 -p1 |
70caaf1f | 160 | %patch2 -p1 |
b614b4a4 | 161 | %patch3 -p1 |
3488434f | 162 | |
b9713681 | 163 | %build |
de273fad | 164 | touch data/gdm.schemas.in.in |
c0747f8c | 165 | %{__libtoolize} |
04029a9e | 166 | %{__glib_gettextize} |
167 | %{__intltoolize} | |
98b48f20 | 168 | %{__aclocal} |
f2a1103b | 169 | %{__autoheader} |
46b6432e | 170 | %{__autoconf} |
171 | %{__automake} | |
116b805d | 172 | %configure \ |
dc82d2d7 | 173 | --disable-console-helper \ |
174 | --disable-scrollkeeper \ | |
b614b4a4 | 175 | --disable-silent-rules \ |
69c827a2 | 176 | --with-console-kit \ |
dc82d2d7 | 177 | --enable-authentication-scheme=pam \ |
98b48f20 | 178 | --with-pam-prefix=/etc \ |
116b805d | 179 | --with-tcp-wrappers=yes \ |
dc82d2d7 | 180 | --with%{!?with_selinux:out}-selinux \ |
181 | --with-xdmcp=yes \ | |
f2a1103b PZ |
182 | --with-xinerama=yes \ |
183 | --with-user=xdm \ | |
184 | --with-group=xdm | |
ac5ef200 | 185 | |
7f6bd484 | 186 | %{__make} |
b9713681 | 187 | |
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
76ae213a | 190 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,init} \ |
48915507 | 191 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ |
f85eb744 | 192 | $RPM_BUILD_ROOT%{_datadir}/xsessions |
f6d3e03e | 193 | |
116b805d | 194 | %{__make} install \ |
195 | DESTDIR=$RPM_BUILD_ROOT \ | |
b757933d | 196 | PAM_PREFIX=/etc |
066398c3 | 197 | |
76ae213a ER |
198 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm |
199 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin | |
200 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm | |
201 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf | |
202 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
066398c3 JR |
203 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
204 | ||
aca127f2 | 205 | %find_lang %{name} --with-gnome --with-omf --all-name |
b9713681 | 206 | |
f85eb744 | 207 | # allow executing ~/.Xclients and ~/.xsession |
76ae213a ER |
208 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop |
209 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop | |
c00e1fa1 | 210 | |
dc63666f JB |
211 | %clean |
212 | rm -rf $RPM_BUILD_ROOT | |
213 | ||
f7e4906b | 214 | %pre |
b32b0eb5 | 215 | %groupadd -g 55 -r -f xdm |
0fb756ff | 216 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
f7e4906b | 217 | |
e7d75b7d | 218 | %post |
f2a1103b | 219 | %gconf_schema_install gdm-simple-greeter.schemas |
04029a9e | 220 | %scrollkeeper_update_post |
831056d7 | 221 | %update_icon_cache hicolor |
e7d75b7d | 222 | |
f2a1103b PZ |
223 | %preun |
224 | %gconf_schema_uninstall gdm-simple-greeter.schemas | |
225 | ||
98b48f20 | 226 | %postun |
04029a9e | 227 | %scrollkeeper_update_postun |
831056d7 | 228 | %update_icon_cache hicolor |
3b98aff6 | 229 | |
f7e4906b | 230 | if [ "$1" = "0" ]; then |
5387309f | 231 | %userremove xdm |
232 | %groupremove xdm | |
f7e4906b | 233 | fi |
98b48f20 | 234 | |
dc82d2d7 | 235 | %triggerpostun -- %{name} < 1:2.13.0.8-1 |
236 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
76ae213a | 237 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf |
dc82d2d7 | 238 | fi |
239 | ||
98b48f20 | 240 | %post init |
7943107a | 241 | /sbin/chkconfig --add gdm |
76ae213a ER |
242 | # -n skips restarting as it would otherise terminate all sessions opened from gdm! |
243 | %service -n gdm restart | |
93384147 | 244 | |
98b48f20 | 245 | %preun init |
dc63666f | 246 | if [ "$1" = "0" ]; then |
0fb756ff | 247 | %service gdm stop |
dc63666f | 248 | /sbin/chkconfig --del gdm |
7943107a | 249 | fi |
f6d3e03e | 250 | |
12f50676 | 251 | %files -f %{name}.lang |
066398c3 | 252 | %defattr(644,root,root,755) |
a35babae | 253 | %doc AUTHORS ChangeLog NEWS README TODO |
de273fad ŁK |
254 | %attr(755,root,root) %{_sbindir}/gdm |
255 | %attr(755,root,root) %{_sbindir}/gdm-binary | |
256 | %attr(755,root,root) %{_bindir}/gdm-screenshot | |
257 | %attr(755,root,root) %{_bindir}/gdmflexiserver | |
f2a1103b PZ |
258 | %attr(755,root,root) %{_libexecdir}/gdm-crash-logger |
259 | %attr(755,root,root) %{_libexecdir}/gdm-factory-slave | |
260 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser | |
261 | %attr(755,root,root) %{_libexecdir}/gdm-product-slave | |
262 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker | |
263 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
264 | %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter | |
265 | %attr(755,root,root) %{_libexecdir}/gdm-simple-slave | |
f2a1103b | 266 | %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave |
98b48f20 | 267 | %dir %{_sysconfdir}/gdm |
f2a1103b PZ |
268 | %dir %{_sysconfdir}/gdm/Init |
269 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
116b805d | 270 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession |
116b805d | 271 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession |
518f8c4c | 272 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession |
f2a1103b | 273 | %dir %{_sysconfdir}/gdm/PostLogin |
518f8c4c | 274 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample |
f2a1103b | 275 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf |
f2a1103b | 276 | %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas |
f85eb744 | 277 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/* |
711a64ba ER |
278 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* |
279 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
de273fad ŁK |
280 | %{_sysconfdir}/dconf/db/gdm |
281 | %{_sysconfdir}/dconf/profile/gdm | |
282 | %attr(1755,root,xdm) %dir /var/cache/gdm | |
283 | %attr(1770,root,xdm) %dir /var/gdm | |
de4bad9d | 284 | %attr(1770,root,xdm) %dir /var/lib/gdm |
de273fad ŁK |
285 | %dir /var/lib/gdm/.config |
286 | %attr(755,xdm,xdm) %dir /var/lib/gdm/.config/dconf | |
de4bad9d JB |
287 | %attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory |
288 | %attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml | |
289 | %attr(644,root,xdm) /var/lib/gdm/.gconf.path | |
8eb31fdc | 290 | %attr(755,xdm,xdm) /var/lib/gdm/.local |
de273fad ŁK |
291 | %attr(750,xdm,xdm) %dir /var/log/gdm |
292 | %attr(711,root,xdm) %dir /var/run/gdm | |
293 | %attr(755,xdm,xdm) %dir /var/run/gdm/greeter | |
98b48f20 | 294 | %attr(750,xdm,xdm) /home/services/xdm |
006e3362 | 295 | %{_pixmapsdir}/* |
12f50676 | 296 | %{_datadir}/gdm |
f2a1103b | 297 | %{_datadir}/polkit-1/actions/gdm.policy |
de273fad | 298 | %{_datadir}/gnome-session/sessions/gdm.session |
f85eb744 | 299 | %{_datadir}/xsessions/custom.desktop |
300 | %{_datadir}/xsessions/default.desktop | |
c61959bc | 301 | %{_iconsdir}/hicolor/*/apps/*.png |
98b48f20 | 302 | |
303 | %files init | |
304 | %defattr(644,root,root,755) | |
305 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
76ae213a | 306 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf |