]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
- BR: polkit-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.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.30/%{name}-%{version}.tar.bz2
28 # Source0-md5:  ba35f9f750b50be572952195989df2c5
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-devel
65 #BuildRequires: polkit-gnome-devel >= 0.92
66 BuildRequires:  rpmbuild(find_lang) >= 1.23
67 BuildRequires:  rpmbuild(macros) >= 1.311
68 #BuildRequires: scrollkeeper
69 BuildRequires:  xorg-lib-libXdmcp-devel
70 BuildRequires:  xorg-lib-libXi-devel
71 BuildRequires:  xorg-lib-libXinerama-devel
72 #BuildRequires: xorg-lib-libdmx-devel
73 Requires(post,postun):  /usr/bin/scrollkeeper-update
74 Requires(post,postun):  gtk+2
75 Requires(post,postun):  hicolor-icon-theme
76 Requires(post,preun):   GConf2
77 Requires(postun):       /usr/sbin/groupdel
78 Requires(postun):       /usr/sbin/userdel
79 Requires(pre):  /bin/id
80 Requires(pre):  /usr/sbin/groupadd
81 Requires(pre):  /usr/sbin/useradd
82 Requires:       /usr/bin/X
83 Requires:       gnome-session >= 2.30.0
84 Requires:       gnome-settings-daemon >= 2.24.0
85 Requires:       pam >= 0.99.7.1
86 Requires:       polkit-gnome >= 0.93
87 Requires:       which
88 Requires:       xorg-app-sessreg
89 Requires:       xorg-app-xmodmap
90 Suggests:       zenity
91 Provides:       XDM
92 Provides:       group(xdm)
93 Provides:       user(xdm)
94 Obsoletes:      gdm-Xnest
95 Conflicts:      gdkxft
96 # sr@Latn vs. sr@latin
97 Conflicts:      glibc-misc < 6:2.7
98 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99
100 %description
101 Gdm (the GNOME Display Manager) is a highly configurable
102 reimplementation of xdm, the X Display Manager. Gdm allows you to log
103 into your system with the X Window System running and supports running
104 several different X sessions on your local machine at the same time.
105
106 %description -l es.UTF-8
107 Administrador de Entrada del GNOME.
108
109 %description -l ja.UTF-8
110 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
111 Manager の再実装版です。 Gdm を使うと、 X Window System
112 が動いているあなたの
113 システムにいろいろなセッションを選択してログインすることができます。
114
115 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
116
117 %description -l pl.UTF-8
118 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
119 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
120 różnych sesji X na lokalnej maszynie.
121
122 %description -l pt_BR.UTF-8
123 Gerenciador de Entrada do GNOME.
124
125 %description -l ru.UTF-8
126 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
127 Manager). GDM позволяет вам входить в систему, на которой запущено X
128 Window и поддерживает работу нескольуих разных X сеансов одновременно.
129
130 %description -l uk.UTF-8
131 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
132 Manager). GDM дозволяє вам входити в систему, на якій запущено X
133 Window та підтримує роботу кількох різних X сеансів одночасно.
134
135 %package init
136 Summary:        Init script for GDM
137 Summary(pl.UTF-8):      Skrypt init dla GDM-a
138 Group:          X11/Applications
139 Requires(post,preun):   /sbin/chkconfig
140 Requires:       %{name} = %{epoch}:%{version}-%{release}
141 Requires:       open
142
143 %description init
144 Init script for GDM.
145
146 %description init -l pl.UTF-8
147 Skrypt init dla GDM-a.
148
149 %package user-switch-applet
150 Summary:        GNOME applet for fast user switching
151 Summary(pl.UTF-8):      Aplet GNOME do szybkiego przełączania użytkowników
152 Group:          X11/Applications
153 Requires:       %{name} = %{epoch}:%{version}-%{release}
154 Provides:       gnome-applet-fast-user-switch = %{epoch}:%{version}-%{release}
155 Obsoletes:      gnome-applet-fast-user-switch
156
157 %description user-switch-applet
158 The GDM User Switch Applet is an applet for the GNOME panel which
159 provides a mechanism for switching between users.
160
161 %description user-switch-applet -l pl.UTF-8
162 GDM User Switch Applet to aplet panelu GNOME udostępniający mechanizm
163 do przełączania między użytkownikami.
164
165 %prep
166 %setup -q
167 %patch0 -p1
168 %patch1 -p1
169 %patch2 -p1
170 %patch3 -p1
171 rm -f data/gdm.schemas.in
172 sed -i 's/^en@shaw//' po/LINGUAS
173 rm po/en@shaw.po
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         --disable-silent-rules \
187         --with-console-kit \
188         --enable-authentication-scheme=pam \
189         --with-pam-prefix=/etc \
190         --with-tcp-wrappers=yes \
191         --with%{!?with_selinux:out}-selinux \
192         --with-xdmcp=yes \
193         --with-xinerama=yes \
194         --with-user=xdm \
195         --with-group=xdm
196
197 %{__make}
198
199 %install
200 rm -rf $RPM_BUILD_ROOT
201 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
202         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
203         $RPM_BUILD_ROOT%{_datadir}/xsessions
204
205 %{__make} install \
206         DESTDIR=$RPM_BUILD_ROOT \
207         PAM_PREFIX=/etc
208
209 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
210 #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
211 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
212
213 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
214
215 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
216
217 %find_lang %{name} --with-gnome --with-omf --all-name
218
219 # allow executing ~/.Xclients and ~/.xsession
220 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop
221 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop
222
223 %clean
224 rm -rf $RPM_BUILD_ROOT
225
226 %pre
227 %groupadd -g 55 -r -f xdm
228 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
229
230 %post
231 %gconf_schema_install gdm-simple-greeter.schemas
232 %scrollkeeper_update_post
233 %update_icon_cache hicolor
234
235 %preun
236 %gconf_schema_uninstall gdm-simple-greeter.schemas
237
238 %postun
239 %scrollkeeper_update_postun
240 %update_icon_cache hicolor
241
242 if [ "$1" = "0" ]; then
243         %userremove xdm
244         %groupremove xdm
245 fi
246
247 %triggerpostun -- %{name} < 1:2.13.0.8-1
248 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
249     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
250 fi
251
252 %post init
253 /sbin/chkconfig --add gdm
254 if [ -f /var/lock/subsys/gdm ]; then
255         echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
256         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
257 else
258         echo "Run \"/sbin/service gdm start\" to start gdm." >&2
259 fi
260
261 %preun init
262 if [ "$1" = "0" ]; then
263         %service gdm stop
264         /sbin/chkconfig --del gdm
265 fi
266
267 %files -f %{name}.lang
268 %defattr(644,root,root,755)
269 %doc AUTHORS ChangeLog NEWS README TODO
270 %attr(755,root,root) %{_libexecdir}/gdm-crash-logger
271 %attr(755,root,root) %{_libexecdir}/gdm-factory-slave
272 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
273 %attr(755,root,root) %{_libexecdir}/gdm-product-slave
274 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
275 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
276 %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
277 %attr(755,root,root) %{_libexecdir}/gdm-simple-slave
278 %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
279 %attr(755,root,root) %{_sbindir}/*
280 %attr(755,root,root) %{_bindir}/*
281 %dir %{_sysconfdir}/gdm
282 %dir %{_sysconfdir}/gdm/Init
283 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
284 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
285 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
286 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
287 %dir %{_sysconfdir}/gdm/PostLogin
288 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
289 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
290 %{_sysconfdir}/gdm/gdm.schemas
291 %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
292 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
293 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
294 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
295 %attr(1755,root,xdm) /var/cache/gdm
296 %attr(1770,root,xdm) %dir /var/lib/gdm
297 %attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory
298 %attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml
299 %attr(644,root,xdm) /var/lib/gdm/.gconf.path
300 %attr(750,xdm,xdm) /var/log/gdm
301 %attr(1777,root,xdm) /var/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.057289 seconds and 4 git commands to generate.