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