]>
Commit | Line | Data |
---|---|---|
dbdd08ff | 1 | # |
7b20fabd PZ |
2 | # BIG FAT WARNING! |
3 | # | |
4 | # Merged to HEAD with RM's permission. If you need GDM 2.20, | |
5 | # create a separate spec for your personal use (like gdm-220.spec) | |
6 | # | |
dc990d82 | 7 | # TODO: |
7ab79c4a MB |
8 | # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2 |
9 | # - check /etc/pam.d/gdm-autologin | |
dc990d82 | 10 | # |
4210ca61 AG |
11 | # Conditiional build: |
12 | %bcond_without selinux # without selinux | |
13 | # | |
6a92f230 | 14 | Summary: GNOME Display Manager |
2a014025 ER |
15 | Summary(es.UTF-8): Administrador de Entrada del GNOME |
16 | Summary(ja.UTF-8): GNOME ディスプレイマネージャ | |
17 | Summary(pl.UTF-8): gdm - zarządca ekranów GNOME | |
18 | Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME | |
19 | Summary(ru.UTF-8): Дисплейный менеджер GNOME | |
20 | Summary(uk.UTF-8): Дисплейний менеджер GNOME | |
6a92f230 | 21 | Name: gdm |
7b20fabd | 22 | Version: 2.28.0 |
ba37d638 | 23 | Release: 8 |
ab8e93b2 | 24 | Epoch: 2 |
bf715a6f | 25 | License: GPL/LGPL |
a189375e | 26 | Group: X11/Applications |
7b20fabd PZ |
27 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.28/%{name}-%{version}.tar.bz2 |
28 | # Source0-md5: 7724929a6b75ba269fd519d4a4995bbb | |
1e57584d | 29 | Source1: %{name}.pamd |
30 | Source2: %{name}.init | |
b243135f | 31 | Source3: %{name}-pld-logo.png |
7b20fabd | 32 | #Source4: %{name}-autologin.pamd |
1e57584d | 33 | Patch0: %{name}-xdmcp.patch |
7b20fabd | 34 | Patch1: %{name}-polkit.patch |
7e11b9ef | 35 | Patch2: %{name}-xsession.patch |
977657ef | 36 | Patch4: %{name}-defaults.patch |
ba37d638 MB |
37 | # http://bugzilla.gnome.org/show_bug.cgi?id=597050 |
38 | Patch5: %{name}-dont-hardcode-path.patch | |
f3b794c1 | 39 | URL: http://www.gnome.org/projects/gdm/ |
ce8509c7 | 40 | BuildRequires: ConsoleKit-devel >= 0.4.1 |
7b20fabd | 41 | BuildRequires: GConf2-devel >= 2.24.0 |
45cf0bda | 42 | BuildRequires: attr-devel |
7b20fabd PZ |
43 | BuildRequires: audit-libs-devel |
44 | BuildRequires: autoconf >= 2.60 | |
45 | BuildRequires: automake >= 1:1.9 | |
46 | BuildRequires: check >= 0.9.4 | |
47 | BuildRequires: dbus-glib-devel >= 0.74 | |
ba37d638 | 48 | BuildRequires: docbook-dtd412-xml |
557c7bf4 | 49 | BuildRequires: gettext-devel |
7b20fabd | 50 | BuildRequires: glib2-devel >= 1:2.16.0 |
35c8a1b7 | 51 | BuildRequires: gnome-doc-utils |
7b20fabd PZ |
52 | BuildRequires: gnome-panel-devel >= 2.24.0 |
53 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
54 | BuildRequires: intltool >= 0.40.0 | |
ba37d638 | 55 | BuildRequires: iso-codes |
6055503f | 56 | BuildRequires: libcanberra-gtk-devel >= 0.4 |
a65aaafb | 57 | BuildRequires: libglade2-devel >= 1:2.6.2 |
4210ca61 | 58 | %{?with_selinux:BuildRequires: libselinux-devel} |
3b2c2ccf | 59 | BuildRequires: libtool |
7b20fabd | 60 | BuildRequires: libxklavier-devel >= 4.0-2 |
dc990d82 | 61 | BuildRequires: pam-devel |
4c60841b | 62 | BuildRequires: perl-modules |
7b20fabd | 63 | BuildRequires: pkgconfig |
0b34c046 | 64 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
f3b794c1 | 65 | BuildRequires: rpmbuild(macros) >= 1.311 |
7ab79c4a | 66 | BuildRequires: scrollkeeper |
c7d57a18 | 67 | BuildRequires: xorg-lib-libXdmcp-devel |
68 | BuildRequires: xorg-lib-libXi-devel | |
69 | BuildRequires: xorg-lib-libXinerama-devel | |
c21d8af4 | 70 | BuildRequires: xorg-lib-libdmx-devel |
ba37d638 | 71 | Requires(post,preun): GConf2 |
f0c225c3 | 72 | Requires(post,postun): gtk+2 |
a54cc062 | 73 | Requires(post,postun): hicolor-icon-theme |
c21d8af4 ER |
74 | Requires(post,postun): /usr/bin/scrollkeeper-update |
75 | Requires(postun): /usr/sbin/groupdel | |
76 | Requires(postun): /usr/sbin/userdel | |
d812e0fb JB |
77 | Requires(pre): /bin/id |
78 | Requires(pre): /usr/sbin/groupadd | |
79 | Requires(pre): /usr/sbin/useradd | |
7b20fabd PZ |
80 | Requires: /usr/bin/Xorg |
81 | Requires: gnome-session >= 2.24.0 | |
82 | Requires: gnome-settings-daemon >= 2.24.0 | |
092e06e5 | 83 | Requires: pam >= 0.99.7.1 |
7b20fabd | 84 | Requires: polkit-gnome >= 0.92 |
84f5c4bf | 85 | Requires: which |
98110903 | 86 | Requires: xorg-app-sessreg |
7b20fabd | 87 | Requires: xorg-app-xmodmap |
7341e692 | 88 | Provides: XDM |
50e794ab | 89 | Provides: group(xdm) |
90 | Provides: user(xdm) | |
7b20fabd | 91 | Obsoletes: gdm-Xnest |
dc990d82 | 92 | Conflicts: gdkxft |
fb77ead8 | 93 | # sr@Latn vs. sr@latin |
94 | Conflicts: glibc-misc < 6:2.7 | |
1e57584d | 95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6a92f230 | 96 | |
63a3aacd TP |
97 | %description |
98 | Gdm (the GNOME Display Manager) is a highly configurable | |
99 | reimplementation of xdm, the X Display Manager. Gdm allows you to log | |
100 | into your system with the X Window System running and supports running | |
101 | several different X sessions on your local machine at the same time. | |
264bf23f | 102 | |
3024dcd3 | 103 | %description -l es.UTF-8 |
557c7bf4 | 104 | Administrador de Entrada del GNOME. |
105 | ||
3024dcd3 JR |
106 | %description -l ja.UTF-8 |
107 | Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display | |
108 | Manager の再実装版です。 Gdm を使うと、 X Window System | |
109 | が動いているあなたの | |
110 | システムにいろいろなセッションを選択してログインすることができます。 | |
daf0d1df | 111 | |
3024dcd3 | 112 | このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 |
daf0d1df | 113 | |
3024dcd3 JR |
114 | %description -l pl.UTF-8 |
115 | Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala | |
116 | logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku | |
117 | różnych sesji X na lokalnej maszynie. | |
e2ef7640 | 118 | |
3024dcd3 | 119 | %description -l pt_BR.UTF-8 |
557c7bf4 | 120 | Gerenciador de Entrada do GNOME. |
121 | ||
3024dcd3 JR |
122 | %description -l ru.UTF-8 |
123 | GDM (GNOME Display Manager) - это реимплементация xdm (X Display | |
124 | Manager). GDM позволяет вам входить в систему, на которой запущено X | |
125 | Window и поддерживает работу нескольуих разных X сеансов одновременно. | |
daf0d1df | 126 | |
3024dcd3 JR |
127 | %description -l uk.UTF-8 |
128 | GDM (GNOME Display Manager) - це реімплементація xdm (X Display | |
129 | Manager). GDM дозволяє вам входити в систему, на якій запущено X | |
130 | Window та підтримує роботу кількох різних X сеансів одночасно. | |
daf0d1df | 131 | |
dc990d82 | 132 | %package init |
133 | Summary: Init script for GDM | |
2a014025 | 134 | Summary(pl.UTF-8): Skrypt init dla GDM-a |
dc990d82 | 135 | Group: X11/Applications |
c21d8af4 | 136 | Requires(post,preun): /sbin/chkconfig |
c5f3b061 | 137 | Requires: %{name} = %{epoch}:%{version}-%{release} |
fa45eb38 | 138 | Requires: open |
dc990d82 | 139 | |
140 | %description init | |
141 | Init script for GDM. | |
142 | ||
3024dcd3 | 143 | %description init -l pl.UTF-8 |
dc990d82 | 144 | Skrypt init dla GDM-a. |
145 | ||
ba37d638 MB |
146 | %package user-switch-applet |
147 | Summary: GNOME applet for fast user switching | |
148 | Summary(pl.UTF-8): Aplet GNOME do szybkiego przełączania użytkowników | |
149 | Group: X11/Applications | |
150 | Requires: gdm >= 2:2.22.0 | |
151 | Provides: gnome-applet-fast-user-switch = %{epoch}:%{version}-%{release} | |
152 | Obsoletes: gnome-applet-fast-user-switch | |
153 | ||
154 | %description user-switch-applet | |
155 | The GDM User Switch Applet is an applet for the GNOME panel which | |
156 | provides a mechanism for switching between users. | |
157 | ||
158 | %description user-switch-applet -l pl.UTF-8 | |
159 | GDM User Switch Applet to aplet panelu GNOME udostępniający mechanizm | |
160 | do przełączania między użytkownikami. | |
161 | ||
264bf23f | 162 | %prep |
7b20fabd | 163 | %setup -q |
557c7bf4 | 164 | %patch0 -p1 |
ab8e93b2 | 165 | %patch1 -p1 |
7e11b9ef | 166 | %patch2 -p1 |
59f24121 | 167 | %patch4 -p1 |
ba37d638 | 168 | %patch5 -p1 |
7b20fabd | 169 | rm -f data/gdm.schemas.in |
ab8e93b2 | 170 | |
264bf23f | 171 | %build |
4a861350 | 172 | %{__libtoolize} |
69c86ad4 | 173 | %{__glib_gettextize} |
174 | %{__intltoolize} | |
dc990d82 | 175 | %{__aclocal} |
7b20fabd | 176 | %{__autoheader} |
8a570202 | 177 | %{__autoconf} |
178 | %{__automake} | |
557c7bf4 | 179 | %configure \ |
c7d57a18 | 180 | --disable-console-helper \ |
181 | --disable-scrollkeeper \ | |
eff20e81 | 182 | --with-console-kit \ |
c7d57a18 | 183 | --enable-authentication-scheme=pam \ |
dc990d82 | 184 | --with-pam-prefix=/etc \ |
557c7bf4 | 185 | --with-tcp-wrappers=yes \ |
c7d57a18 | 186 | --with%{!?with_selinux:out}-selinux \ |
187 | --with-xdmcp=yes \ | |
7b20fabd PZ |
188 | --with-xinerama=yes \ |
189 | --with-user=xdm \ | |
190 | --with-group=xdm | |
1e57584d | 191 | |
39948e93 | 192 | %{__make} |
264bf23f | 193 | |
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
dc990d82 | 196 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ |
f2682e26 | 197 | $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ |
e2ef7640 | 198 | |
557c7bf4 | 199 | %{__make} install \ |
200 | DESTDIR=$RPM_BUILD_ROOT \ | |
dbf1d434 | 201 | PAM_PREFIX=/etc |
6a92f230 | 202 | |
ab564b73 | 203 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm |
7b20fabd | 204 | #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin |
557c7bf4 | 205 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm |
dc990d82 | 206 | |
b243135f | 207 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
dc990d82 | 208 | |
6a92f230 JR |
209 | touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm |
210 | ||
f3b794c1 | 211 | %find_lang %{name} --with-gnome --with-omf --all-name |
264bf23f | 212 | |
bff5ddba | 213 | # Remove useless files |
214 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} | |
215 | ||
c5f3b061 | 216 | # moved to gnome-session |
217 | rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop | |
218 | ||
f51bc435 JB |
219 | %clean |
220 | rm -rf $RPM_BUILD_ROOT | |
221 | ||
b55b9ca7 | 222 | %pre |
d961ec46 | 223 | %groupadd -g 55 -r -f xdm |
dbdd08ff | 224 | %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm |
b55b9ca7 | 225 | |
23405411 | 226 | %post |
7b20fabd | 227 | %gconf_schema_install gdm-simple-greeter.schemas |
69c86ad4 | 228 | %scrollkeeper_update_post |
a54cc062 | 229 | %update_icon_cache hicolor |
23405411 | 230 | |
7b20fabd PZ |
231 | %preun |
232 | %gconf_schema_uninstall gdm-simple-greeter.schemas | |
233 | ||
dc990d82 | 234 | %postun |
69c86ad4 | 235 | %scrollkeeper_update_postun |
a54cc062 | 236 | %update_icon_cache hicolor |
cd9e97f7 | 237 | |
b55b9ca7 | 238 | if [ "$1" = "0" ]; then |
50e794ab | 239 | %userremove xdm |
240 | %groupremove xdm | |
b55b9ca7 | 241 | fi |
dc990d82 | 242 | |
c7d57a18 | 243 | %triggerpostun -- %{name} < 1:2.13.0.8-1 |
244 | if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then | |
245 | mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf | |
246 | fi | |
247 | ||
dc990d82 | 248 | %post init |
a88fede8 | 249 | /sbin/chkconfig --add gdm |
18676cb6 | 250 | if [ -f /var/lock/subsys/gdm ]; then |
dbdd08ff | 251 | echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 |
252 | echo "WARNING: it will terminate all sessions opened from gdm!" >&2 | |
18676cb6 | 253 | else |
dbdd08ff | 254 | echo "Run \"/sbin/service gdm start\" to start gdm." >&2 |
18676cb6 | 255 | fi |
8a1f07f6 | 256 | |
dc990d82 | 257 | %preun init |
f51bc435 | 258 | if [ "$1" = "0" ]; then |
dbdd08ff | 259 | %service gdm stop |
f51bc435 | 260 | /sbin/chkconfig --del gdm |
a88fede8 | 261 | fi |
e2ef7640 | 262 | |
b6c954a8 | 263 | %files -f %{name}.lang |
6a92f230 | 264 | %defattr(644,root,root,755) |
2252f92d | 265 | %doc AUTHORS ChangeLog NEWS README TODO |
7b20fabd PZ |
266 | %attr(755,root,root) %{_libexecdir}/gdm-crash-logger |
267 | %attr(755,root,root) %{_libexecdir}/gdm-factory-slave | |
268 | %attr(755,root,root) %{_libexecdir}/gdm-host-chooser | |
269 | %attr(755,root,root) %{_libexecdir}/gdm-product-slave | |
270 | %attr(755,root,root) %{_libexecdir}/gdm-session-worker | |
271 | %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser | |
272 | %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter | |
273 | %attr(755,root,root) %{_libexecdir}/gdm-simple-slave | |
7b20fabd | 274 | %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave |
557c7bf4 | 275 | %attr(755,root,root) %{_sbindir}/* |
7b20fabd | 276 | %attr(755,root,root) %{_bindir}/* |
dc990d82 | 277 | %dir %{_sysconfdir}/gdm |
7b20fabd PZ |
278 | %dir %{_sysconfdir}/gdm/Init |
279 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default | |
557c7bf4 | 280 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession |
557c7bf4 | 281 | %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession |
caf999b7 | 282 | %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession |
7b20fabd | 283 | %dir %{_sysconfdir}/gdm/PostLogin |
caf999b7 | 284 | %config %{_sysconfdir}/gdm/PostLogin/Default.sample |
7b20fabd PZ |
285 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf |
286 | %{_sysconfdir}/gdm/gdm.schemas | |
287 | %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas | |
288 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* | |
044dbf2f ER |
289 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* |
290 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm | |
ba37d638 MB |
291 | %attr(1770,root,xdm) %{_localstatedir}/gdm |
292 | %attr(1755,root,xdm) %{_localstatedir}/cache/gdm | |
293 | %attr(1770,root,xdm) %dir %{_localstatedir}/lib/gdm | |
294 | %attr(1750,root,xdm) %dir %{_localstatedir}/lib/gdm/.gconf.mandatory | |
295 | %attr(1640,root,xdm) %{_localstatedir}/lib/gdm/.gconf.mandatory/*.xml | |
296 | %attr(644,root,xdm) %{_localstatedir}/lib/gdm/.gconf.path | |
7b20fabd | 297 | %attr(750,xdm,xdm) %{_localstatedir}/log/gdm |
ba37d638 | 298 | %attr(1777,root,xdm) %{_localstatedir}/run/gdm |
dc990d82 | 299 | %attr(750,xdm,xdm) /home/services/xdm |
084cd121 | 300 | %{_pixmapsdir}/* |
b6c954a8 | 301 | %{_datadir}/gdm |
7b20fabd | 302 | %{_datadir}/polkit-1/actions/gdm.policy |
44a341f3 | 303 | %{_iconsdir}/hicolor/*/apps/*.png |
dc990d82 | 304 | |
305 | %files init | |
306 | %defattr(644,root,root,755) | |
307 | %attr(754,root,root) /etc/rc.d/init.d/gdm | |
ba37d638 MB |
308 | |
309 | %files user-switch-applet | |
310 | %defattr(644,root,root,755) | |
311 | %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet | |
312 | %{_libdir}/bonobo/servers/GNOME_FastUserSwitchApplet.server | |
313 | %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml |