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