]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
- rel 2
[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:        2
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
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 Requires(post,postun):  gtk+2
68 Requires(post,postun):  hicolor-icon-theme
69 Requires(post,postun):  /usr/bin/scrollkeeper-update
70 Requires(postun):       /usr/sbin/groupdel
71 Requires(postun):       /usr/sbin/userdel
72 Requires(pre):  /bin/id
73 Requires(pre):  /usr/sbin/groupadd
74 Requires(pre):  /usr/sbin/useradd
75 Requires:       /usr/bin/Xorg
76 Requires:       gnome-session >= 2.24.0
77 Requires:       gnome-settings-daemon >= 2.24.0
78 Requires:       libgnomeui >= 2.24.0
79 Requires:       pam >= 0.99.7.1
80 Requires:       polkit-gnome >= 0.92
81 Requires:       which
82 Requires:       xorg-app-sessreg
83 Requires:       xorg-app-xmodmap
84 Provides:       XDM
85 Provides:       group(xdm)
86 Provides:       user(xdm)
87 Obsoletes:      gdm-Xnest
88 Conflicts:      gdkxft
89 # sr@Latn vs. sr@latin
90 Conflicts:      glibc-misc < 6:2.7
91 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92
93 %description
94 Gdm (the GNOME Display Manager) is a highly configurable
95 reimplementation of xdm, the X Display Manager. Gdm allows you to log
96 into your system with the X Window System running and supports running
97 several different X sessions on your local machine at the same time.
98
99 %description -l es.UTF-8
100 Administrador de Entrada del GNOME.
101
102 %description -l ja.UTF-8
103 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display
104 Manager の再実装版です。 Gdm を使うと、 X Window System
105 が動いているあなたの
106 システムにいろいろなセッションを選択してログインすることができます。
107
108 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。
109
110 %description -l pl.UTF-8
111 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala
112 logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku
113 różnych sesji X na lokalnej maszynie.
114
115 %description -l pt_BR.UTF-8
116 Gerenciador de Entrada do GNOME.
117
118 %description -l ru.UTF-8
119 GDM (GNOME Display Manager) - это реимплементация xdm (X Display
120 Manager). GDM позволяет вам входить в систему, на которой запущено X
121 Window и поддерживает работу нескольуих разных X сеансов одновременно.
122
123 %description -l uk.UTF-8
124 GDM (GNOME Display Manager) - це реімплементація xdm (X Display
125 Manager). GDM дозволяє вам входити в систему, на якій запущено X
126 Window та підтримує роботу кількох різних X сеансів одночасно.
127
128 %package init
129 Summary:        Init script for GDM
130 Summary(pl.UTF-8):      Skrypt init dla GDM-a
131 Group:          X11/Applications
132 Requires(post,preun):   /sbin/chkconfig
133 Requires:       %{name} = %{epoch}:%{version}-%{release}
134 Requires:       open
135
136 %description init
137 Init script for GDM.
138
139 %description init -l pl.UTF-8
140 Skrypt init dla GDM-a.
141
142 %prep
143 %setup -q
144 %patch0 -p1
145 %patch1 -p1
146 %patch2 -p1
147 %patch4 -p1
148 rm -f data/gdm.schemas.in
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 %scrollkeeper_update_post
208 %update_icon_cache hicolor
209
210 %preun
211 %gconf_schema_uninstall gdm-simple-greeter.schemas
212
213 %postun
214 %scrollkeeper_update_postun
215 %update_icon_cache hicolor
216
217 if [ "$1" = "0" ]; then
218         %userremove xdm
219         %groupremove xdm
220 fi
221
222 %triggerpostun -- %{name} < 1:2.13.0.8-1
223 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
224     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
225 fi
226
227 %post init
228 /sbin/chkconfig --add gdm
229 if [ -f /var/lock/subsys/gdm ]; then
230         echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2
231         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
232 else
233         echo "Run \"/sbin/service gdm start\" to start gdm." >&2
234 fi
235
236 %preun init
237 if [ "$1" = "0" ]; then
238         %service gdm stop
239         /sbin/chkconfig --del gdm
240 fi
241
242 %files -f %{name}.lang
243 %defattr(644,root,root,755)
244 %doc AUTHORS ChangeLog NEWS README TODO
245 %attr(755,root,root) %{_libexecdir}/gdm-crash-logger
246 %attr(755,root,root) %{_libexecdir}/gdm-factory-slave
247 %attr(755,root,root) %{_libexecdir}/gdm-host-chooser
248 %attr(755,root,root) %{_libexecdir}/gdm-product-slave
249 %attr(755,root,root) %{_libexecdir}/gdm-session-worker
250 %attr(755,root,root) %{_libexecdir}/gdm-simple-chooser
251 %attr(755,root,root) %{_libexecdir}/gdm-simple-greeter
252 %attr(755,root,root) %{_libexecdir}/gdm-simple-slave
253 %attr(755,root,root) %{_libexecdir}/gdm-user-switch-applet
254 %attr(755,root,root) %{_libexecdir}/gdm-xdmcp-chooser-slave
255 %attr(755,root,root) %{_sbindir}/*
256 %attr(755,root,root) %{_bindir}/*
257 %dir %{_sysconfdir}/gdm
258 %dir %{_sysconfdir}/gdm/Init
259 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init/Default
260 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
261 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
262 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
263 %dir %{_sysconfdir}/gdm/PostLogin
264 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
265 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/custom.conf
266 %{_sysconfdir}/gdm/gdm.schemas
267 %{_sysconfdir}/gconf/schemas/gdm-simple-greeter.schemas
268 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
269 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
270 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
271 %attr(750,xdm,xdm) %{_localstatedir}/gdm
272 %attr(750,xdm,xdm) %{_localstatedir}/log/gdm
273 %attr(750,xdm,xdm) /home/services/xdm
274 %{_pixmapsdir}/*
275 %{_datadir}/gdm
276 %{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
277 %{_datadir}/polkit-1/actions/gdm.policy
278 %{_iconsdir}/hicolor/*/apps/*.png
279 %{_libdir}/bonobo/servers/*.server
280 %{_localstatedir}/lib/gdm
281
282 %files init
283 %defattr(644,root,root,755)
284 %attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.094567 seconds and 4 git commands to generate.