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