]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
- updated to 2.30.0; merged changes from DEVEL
[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.30.0
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.30/%{name}-%{version}.tar.bz2
28 # Source0-md5:  0da84637abbcbf1666529d6192a81e6b
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 Patch3:         %{name}-defaults.patch
39 URL:            http://www.gnome.org/projects/gdm/
40 BuildRequires:  ConsoleKit-devel >= 0.4.1
41 BuildRequires:  GConf2-devel >= 2.24.0
42 BuildRequires:  UPower-devel
43 BuildRequires:  attr-devel
44 BuildRequires:  audit-libs-devel
45 BuildRequires:  autoconf >= 2.60
46 BuildRequires:  automake >= 1:1.9
47 BuildRequires:  check >= 0.9.4
48 BuildRequires:  dbus-glib-devel >= 0.74
49 BuildRequires:  docbook-dtd412-xml
50 BuildRequires:  gettext-devel
51 BuildRequires:  glib2-devel >= 1:2.22.0
52 BuildRequires:  gnome-doc-utils
53 BuildRequires:  gnome-panel-devel >= 2.24.0
54 BuildRequires:  gtk+2-devel >= 2:2.14.0
55 BuildRequires:  intltool >= 0.40.0
56 BuildRequires:  iso-codes
57 BuildRequires:  libcanberra-gtk-devel >= 0.4
58 %{?with_selinux:BuildRequires:  libselinux-devel}
59 BuildRequires:  libtool
60 BuildRequires:  libxklavier-devel >= 4.0-2
61 BuildRequires:  pam-devel
62 BuildRequires:  perl-modules
63 BuildRequires:  pkgconfig
64 BuildRequires:  polkit-gnome-devel >= 0.92
65 BuildRequires:  rpmbuild(find_lang) >= 1.23
66 BuildRequires:  rpmbuild(macros) >= 1.311
67 BuildRequires:  scrollkeeper
68 BuildRequires:  xorg-lib-libXdmcp-devel
69 BuildRequires:  xorg-lib-libXi-devel
70 BuildRequires:  xorg-lib-libXinerama-devel
71 BuildRequires:  xorg-lib-libdmx-devel
72 Requires(post,postun):  /usr/bin/scrollkeeper-update
73 Requires(post,postun):  gtk+2
74 Requires(post,postun):  hicolor-icon-theme
75 Requires(post,preun):   GConf2
76 Requires(postun):       /usr/sbin/groupdel
77 Requires(postun):       /usr/sbin/userdel
78 Requires(pre):  /bin/id
79 Requires(pre):  /usr/sbin/groupadd
80 Requires(pre):  /usr/sbin/useradd
81 Requires:       /usr/bin/X
82 Requires:       gnome-session >= 2.30.0
83 Requires:       gnome-settings-daemon >= 2.24.0
84 Requires:       pam >= 0.99.7.1
85 Requires:       polkit-gnome >= 0.93
86 Requires:       which
87 Requires:       xorg-app-sessreg
88 Requires:       xorg-app-xmodmap
89 Suggests:       zenity
90 Provides:       XDM
91 Provides:       group(xdm)
92 Provides:       user(xdm)
93 Obsoletes:      gdm-Xnest
94 Conflicts:      gdkxft
95 # sr@Latn vs. sr@latin
96 Conflicts:      glibc-misc < 6:2.7
97 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98
99 %description
100 Gdm (the GNOME Display Manager) is a highly configurable
101 reimplementation of xdm, the X Display Manager. Gdm allows you to log
102 into your system with the X Window System running and supports running
103 several different X sessions on your local machine at the same time.
104
105 %description -l es.UTF-8
106 Administrador de Entrada del GNOME.
107
108 %description -l ja.UTF-8
109 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
110 Manager の再実装版です。 Gdm を使うと、 X Window System
111 が動いているあなたの
112 システムにいろいろなセッションを選択してログインすることができます。
113
114 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
115
116 %description -l pl.UTF-8
117 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
118 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
119 różnych sesji X na lokalnej maszynie.
120
121 %description -l pt_BR.UTF-8
122 Gerenciador de Entrada do GNOME.
123
124 %description -l ru.UTF-8
125 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
126 Manager). GDM позволяет вам входить в систему, на которой запущено X
127 Window и поддерживает работу нескольуих разных X сеансов одновременно.
128
129 %description -l uk.UTF-8
130 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
131 Manager). GDM дозволяє вам входити в систему, на якій запущено X
132 Window та підтримує роботу кількох різних X сеансів одночасно.
133
134 %package init
135 Summary:        Init script for GDM
136 Summary(pl.UTF-8):      Skrypt init dla GDM-a
137 Group:          X11/Applications
138 Requires(post,preun):   /sbin/chkconfig
139 Requires:       %{name} = %{epoch}:%{version}-%{release}
140 Requires:       open
141
142 %description init
143 Init script for GDM.
144
145 %description init -l pl.UTF-8
146 Skrypt init dla GDM-a.
147
148 %package user-switch-applet
149 Summary:        GNOME applet for fast user switching
150 Summary(pl.UTF-8):      Aplet GNOME do szybkiego przełączania użytkowników
151 Group:          X11/Applications
152 Requires:       %{name} = %{epoch}:%{version}-%{release}
153 Provides:       gnome-applet-fast-user-switch = %{epoch}:%{version}-%{release}
154 Obsoletes:      gnome-applet-fast-user-switch
155
156 %description user-switch-applet
157 The GDM User Switch Applet is an applet for the GNOME panel which
158 provides a mechanism for switching between users.
159
160 %description user-switch-applet -l pl.UTF-8
161 GDM User Switch Applet to aplet panelu GNOME udostępniający mechanizm
162 do przełączania między użytkownikami.
163
164 %prep
165 %setup -q
166 %patch0 -p1
167 %patch1 -p1
168 %patch2 -p1
169 %patch3 -p1
170 rm -f data/gdm.schemas.in
171 sed -i 's/^en@shaw//' po/LINGUAS
172 rm po/en@shaw.po
173
174 %build
175 %{__libtoolize}
176 %{__glib_gettextize}
177 %{__intltoolize}
178 %{__aclocal}
179 %{__autoheader}
180 %{__autoconf}
181 %{__automake}
182 %configure \
183         --disable-console-helper \
184         --disable-scrollkeeper \
185         --disable-silent-rules \
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(1755,root,xdm) /var/cache/gdm
295 %attr(1770,root,xdm) %dir /var/lib/gdm
296 %attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory
297 %attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml
298 %attr(644,root,xdm) /var/lib/gdm/.gconf.path
299 %attr(750,xdm,xdm) /var/log/gdm
300 %attr(1777,root,xdm) /var/run/gdm
301 %attr(750,xdm,xdm) /home/services/xdm
302 %{_pixmapsdir}/*
303 %{_datadir}/gdm
304 %{_datadir}/polkit-1/actions/gdm.policy
305 %{_datadir}/xsessions/custom.desktop
306 %{_datadir}/xsessions/default.desktop
307 %{_iconsdir}/hicolor/*/apps/*.png
308
309 %files init
310 %defattr(644,root,root,755)
311 %attr(754,root,root) /etc/rc.d/init.d/gdm
312
313 %files user-switch-applet
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
316 %{_libdir}/bonobo/servers/GNOME_FastUserSwitchApplet.server
317 %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
This page took 0.097121 seconds and 4 git commands to generate.