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