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