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