]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
- 2.32.0
[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:        1
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+2
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
138 %description init
139 Init script for GDM.
140
141 %description init -l pl.UTF-8
142 Skrypt init dla GDM-a.
143
144 %package user-switch-applet
145 Summary:        GNOME applet for fast user switching
146 Summary(pl.UTF-8):      Aplet GNOME do szybkiego przełączania użytkowników
147 Group:          X11/Applications
148 Requires:       %{name} = %{epoch}:%{version}-%{release}
149 Provides:       gnome-applet-fast-user-switch = %{epoch}:%{version}-%{release}
150 Obsoletes:      gnome-applet-fast-user-switch
151
152 %description user-switch-applet
153 The GDM User Switch Applet is an applet for the GNOME panel which
154 provides a mechanism for switching between users.
155
156 %description user-switch-applet -l pl.UTF-8
157 GDM User Switch Applet to aplet panelu GNOME udostępniający mechanizm
158 do przełączania między użytkownikami.
159
160 %prep
161 %setup -q
162 %patch0 -p1
163 %patch1 -p1
164 %patch2 -p1
165 %patch3 -p1
166 sed -i 's/^en@shaw//' po/LINGUAS
167 rm po/en@shaw.po
168
169 %build
170 %{__libtoolize}
171 %{__glib_gettextize}
172 %{__intltoolize}
173 %{__aclocal}
174 %{__autoheader}
175 %{__autoconf}
176 %{__automake}
177 %configure \
178         --disable-console-helper \
179         --disable-scrollkeeper \
180         --disable-silent-rules \
181         --with-console-kit \
182         --enable-authentication-scheme=pam \
183         --with-pam-prefix=/etc \
184         --with-tcp-wrappers=yes \
185         --with%{!?with_selinux:out}-selinux \
186         --with-xdmcp=yes \
187         --with-xinerama=yes \
188         --with-user=xdm \
189         --with-group=xdm
190
191 %{__make}
192
193 %install
194 rm -rf $RPM_BUILD_ROOT
195 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
196         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
197         $RPM_BUILD_ROOT%{_datadir}/xsessions
198
199 %{__make} install \
200         DESTDIR=$RPM_BUILD_ROOT \
201         PAM_PREFIX=/etc
202
203 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
204 #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
205 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
206
207 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
208
209 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
210
211 %find_lang %{name} --with-gnome --with-omf --all-name
212
213 # allow executing ~/.Xclients and ~/.xsession
214 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/custom.desktop
215 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/default.desktop
216
217 %clean
218 rm -rf $RPM_BUILD_ROOT
219
220 %pre
221 %groupadd -g 55 -r -f xdm
222 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
223
224 %post
225 %gconf_schema_install gdm-simple-greeter.schemas
226 %scrollkeeper_update_post
227 %update_icon_cache hicolor
228
229 %preun
230 %gconf_schema_uninstall gdm-simple-greeter.schemas
231
232 %postun
233 %scrollkeeper_update_postun
234 %update_icon_cache hicolor
235
236 if [ "$1" = "0" ]; then
237         %userremove xdm
238         %groupremove xdm
239 fi
240
241 %triggerpostun -- %{name} < 1:2.13.0.8-1
242 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
243     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
244 fi
245
246 %post init
247 /sbin/chkconfig --add gdm
248 if [ -f /var/lock/subsys/gdm ]; then
249         echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
250         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
251 else
252         echo "Run \"/sbin/service gdm start\" to start gdm." >&2
253 fi
254
255 %preun init
256 if [ "$1" = "0" ]; then
257         %service gdm stop
258         /sbin/chkconfig --del gdm
259 fi
260
261 %files -f %{name}.lang
262 %defattr(644,root,root,755)
263 %doc AUTHORS ChangeLog NEWS README TODO
264 %attr(755,root,root) %{_libexecdir}/gdm-crash-logger
265 %attr(755,root,root) %{_libexecdir}/gdm-factory-slave
266 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
267 %attr(755,root,root) %{_libexecdir}/gdm-product-slave
268 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
269 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
270 %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
271 %attr(755,root,root) %{_libexecdir}/gdm-simple-slave
272 %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
273 %attr(755,root,root) %{_sbindir}/*
274 %attr(755,root,root) %{_bindir}/*
275 %dir %{_sysconfdir}/gdm
276 %dir %{_sysconfdir}/gdm/Init
277 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
278 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
279 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
280 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
281 %dir %{_sysconfdir}/gdm/PostLogin
282 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
283 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
284 %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
285 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
286 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
287 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
288 %attr(1755,root,xdm) /var/cache/gdm
289 %attr(1770,root,xdm) %dir /var/lib/gdm
290 %attr(1750,root,xdm) %dir /var/lib/gdm/.gconf.mandatory
291 %attr(1640,root,xdm) /var/lib/gdm/.gconf.mandatory/*.xml
292 %attr(644,root,xdm) /var/lib/gdm/.gconf.path
293 %attr(750,xdm,xdm) /var/log/gdm
294 %attr(1777,root,xdm) /var/run/gdm
295 %attr(750,xdm,xdm) /home/services/xdm
296 %{_pixmapsdir}/*
297 %{_datadir}/gdm
298 %{_datadir}/polkit-1/actions/gdm.policy
299 %{_datadir}/xsessions/custom.desktop
300 %{_datadir}/xsessions/default.desktop
301 %{_iconsdir}/hicolor/*/apps/*.png
302
303 %files init
304 %defattr(644,root,root,755)
305 %attr(754,root,root) /etc/rc.d/init.d/gdm
306
307 %files user-switch-applet
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
310 %{_libdir}/bonobo/servers/GNOME_FastUserSwitchApplet.server
311 %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
This page took 0.055791 seconds and 3 git commands to generate.