]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
9c5136cdc54167279663fa5b3a97ed8544635964
[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.24.0
18 Release:        2
19 Epoch:          1
20 License:        GPL/LGPL
21 Group:          X11/Applications
22 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdm/2.24/%{name}-%{version}.tar.bz2
23 # Source0-md5:  c38e3debe8a02ad385f1c7077d21de9e
24 Source1:        %{name}.pamd
25 Source2:        %{name}.init
26 Source3:        %{name}-pld-logo.png
27 #Source4:       %{name}-autologin.pamd
28 Patch0:         %{name}-xdmcp.patch
29 Patch2:         %{name}-xsession.patch
30 Patch4:         %{name}-defaults.patch
31 URL:            http://www.gnome.org/projects/gdm/
32 BuildRequires:  ConsoleKit-devel
33 BuildRequires:  attr-devel
34 BuildRequires:  autoconf >= 2.52
35 BuildRequires:  automake
36 BuildRequires:  dbus-glib-devel >= 0.73
37 BuildRequires:  gettext-devel
38 BuildRequires:  glib2-devel >= 1:2.15.0
39 BuildRequires:  gtk+2-devel >= 2:2.12.0
40 BuildRequires:  intltool >= 0.36.1
41 BuildRequires:  libart_lgpl-devel >= 2.3.19
42 BuildRequires:  libglade2-devel >= 1:2.6.2
43 BuildRequires:  libgnomeui-devel >= 2.20.0
44 BuildRequires:  libgsf-devel >= 1.14.6
45 BuildRequires:  librsvg-devel >= 1:2.18.1
46 %{?with_selinux:BuildRequires:  libselinux-devel}
47 BuildRequires:  libtool
48 BuildRequires:  libxml2-devel >= 1:2.6.29
49 BuildRequires:  pam-devel
50 BuildRequires:  perl-modules
51 BuildRequires:  rpmbuild(find_lang) >= 1.23
52 BuildRequires:  rpmbuild(macros) >= 1.311
53 BuildRequires:  scrollkeeper
54 BuildRequires:  sed >= 4.0
55 BuildRequires:  xorg-lib-libXdmcp-devel
56 BuildRequires:  xorg-lib-libXi-devel
57 BuildRequires:  xorg-lib-libXinerama-devel
58 BuildRequires:  xorg-lib-libdmx-devel
59 Requires(post,postun):  gtk+2
60 Requires(post,postun):  hicolor-icon-theme
61 Requires(post,postun):  /usr/bin/scrollkeeper-update
62 Requires(postun):       /usr/sbin/groupdel
63 Requires(postun):       /usr/sbin/userdel
64 Requires(pre):  /bin/id
65 Requires(pre):  /usr/sbin/groupadd
66 Requires(pre):  /usr/sbin/useradd
67 Requires:       gnome-session >= 2.23.90
68 Requires:       gnome-settings-daemon >= 2.23.90
69 Requires:       libgnomeui >= 2.20.0
70 Requires:       pam >= 0.99.7.1
71 Requires:       which
72 Requires:       xorg-app-xmodmap
73 Requires:       xorg-app-sessreg
74 Provides:       XDM
75 Provides:       group(xdm)
76 Provides:       user(xdm)
77 Conflicts:      gdkxft
78 # sr@Latn vs. sr@latin
79 Conflicts:      glibc-misc < 6:2.7
80 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82 %description
83 Gdm (the GNOME Display Manager) is a highly configurable
84 reimplementation of xdm, the X Display Manager. Gdm allows you to log
85 into your system with the X Window System running and supports running
86 several different X sessions on your local machine at the same time.
87
88 %description -l es.UTF-8
89 Administrador de Entrada del GNOME.
90
91 %description -l ja.UTF-8
92 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
93 Manager の再実装版です。 Gdm を使うと、 X Window System
94 が動いているあなたの
95 システムにいろいろなセッションを選択してログインすることができます。
96
97 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
98
99 %description -l pl.UTF-8
100 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
101 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
102 różnych sesji X na lokalnej maszynie.
103
104 %description -l pt_BR.UTF-8
105 Gerenciador de Entrada do GNOME.
106
107 %description -l ru.UTF-8
108 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
109 Manager). GDM позволяет вам входить в систему, на которой запущено X
110 Window и поддерживает работу нескольуих разных X сеансов одновременно.
111
112 %description -l uk.UTF-8
113 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
114 Manager). GDM дозволяє вам входити в систему, на якій запущено X
115 Window та підтримує роботу кількох різних X сеансів одночасно.
116
117 %package Xnest
118 Summary:        Xnest (ie embedded X) server for GDM
119 Summary(pl.UTF-8):      Serwer Xnest dla GDM
120 Group:          X11/Applications
121 Requires:       %{name} = %{epoch}:%{version}-%{release}
122 Requires:       xorg-xserver-Xnest
123
124 %description Xnest
125 This package add support for Xnest server in gdm.
126
127 %description Xnest -l pl.UTF-8
128 Ten pakiet dodaje do gdm wsparcie dla Xnest.
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 %prep
145 %setup -q 
146 %patch0 -p1
147 %patch2 -p1
148 %patch4 -p1
149
150 %build
151 %{__libtoolize}
152 %{__glib_gettextize}
153 %{__intltoolize}
154 %{__aclocal}
155 %{__autoheader}
156 %{__autoconf}
157 %{__automake}
158 %configure \
159         --disable-console-helper \
160         --disable-scrollkeeper \
161         --with-console-kit \
162         --enable-authentication-scheme=pam \
163         --with-pam-prefix=/etc \
164         --with-tcp-wrappers=yes \
165         --with%{!?with_selinux:out}-selinux \
166         --with-xdmcp=yes \
167         --with-xinerama=yes \
168         --with-user=xdm \
169         --with-group=xdm
170
171 %{__make}
172
173 %install
174 rm -rf $RPM_BUILD_ROOT
175 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
176         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
177
178 %{__make} install \
179         DESTDIR=$RPM_BUILD_ROOT \
180         PAM_PREFIX=/etc
181
182 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
183 #install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
184 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
185
186 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
187
188 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
189
190 %find_lang %{name} --with-gnome --with-omf --all-name
191
192 # Remove useless files
193 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
194
195 # moved to gnome-session
196 rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %pre
202 %groupadd -g 55 -r -f xdm
203 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm
204
205 %post
206 %gconf_schema_install gdm-simple-greeter.schemas
207 #%%gconf_schema_install gdm-user-switch-applet.schemas
208 %scrollkeeper_update_post
209 %update_icon_cache hicolor
210
211 %preun
212 %gconf_schema_uninstall gdm-simple-greeter.schemas
213 #%%gconf_schema_uninstall gdm-user-switch-applet.schemas
214
215 %postun
216 %scrollkeeper_update_postun
217 %update_icon_cache hicolor
218
219 if [ "$1" = "0" ]; then
220         %userremove xdm
221         %groupremove xdm
222 fi
223
224 %triggerpostun -- %{name} < 1:2.13.0.8-1
225 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
226     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
227 fi
228
229 %post init
230 /sbin/chkconfig --add gdm
231 if [ -f /var/lock/subsys/gdm ]; then
232         echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
233         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
234 else
235         echo "Run \"/sbin/service gdm start\" to start gdm." >&2
236 fi
237
238 %preun init
239 if [ "$1" = "0" ]; then
240         %service gdm stop
241         /sbin/chkconfig --del gdm
242 fi
243
244 %files -f %{name}.lang
245 %defattr(644,root,root,755)
246 %doc AUTHORS ChangeLog NEWS README TODO
247 %attr(755,root,root) %{_libexecdir}/gdm-crash-logger
248 %attr(755,root,root) %{_libexecdir}/gdm-factory-slave
249 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
250 %attr(755,root,root) %{_libexecdir}/gdm-product-slave
251 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
252 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
253 %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
254 %attr(755,root,root) %{_libexecdir}/gdm-simple-slave
255 %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
256 %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
257 %attr(755,root,root) %{_sbindir}/*
258 %attr(755,root,root) %{_bindir}/*
259 %dir %{_sysconfdir}/gdm
260 %dir %{_sysconfdir}/gdm/Init
261 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
262 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
263 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
264 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
265 %dir %{_sysconfdir}/gdm/PostLogin
266 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
267 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
268 %{_sysconfdir}/gdm/gdm.schemas
269 %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
270 #%{_sysconfdir}/gconf/schemas/gdm-user-switch-applet.schemas
271 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
272 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
273 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
274 %attr(750,xdm,xdm) %{_localstatedir}/gdm
275 %attr(750,xdm,xdm) %{_localstatedir}/log/gdm
276 %attr(750,xdm,xdm) /home/services/xdm
277 %{_pixmapsdir}/*
278 %{_datadir}/gdm
279 %{_iconsdir}/hicolor/*/apps/*.png
280 %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
281 %{_libdir}/bonobo/servers/*.server
282 %{_localstatedir}/lib/gdm
283
284 %files Xnest
285 %defattr(644,root,root,755)
286
287 %files init
288 %defattr(644,root,root,755)
289 %attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.071785 seconds and 2 git commands to generate.