]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm2.20.spec
- 2.14.1, added makefile patch and source missing from tarball to fix
[packages/gdm2.20.git] / gdm2.20.spec
1 # TODO:
2 # /etc/X11/dm dir should belong to XFree? It is common for KDE and GNOME
3 # s=/dev/null=/home/services/xdm= in %%trigger for gracefull 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):    Administrador de Entrada del GNOME
11 Summary(ja):    GNOME ¥Ç¥£¥¹¥×¥ì¥¤¥Þ¥Í¡¼¥¸¥ã
12 Summary(pl):    gdm - zarz±dca ekranów GNOME
13 Summary(pt_BR): Gerenciador de Entrada do GNOME
14 Summary(ru):    äÉÓÐÌÅÊÎÙÊ ÍÅÎÅÄÖÅÒ GNOME
15 Summary(uk):    äÉÓÐÌÅÊÎÉÊ ÍÅÎÅÄÖÅÒ GNOME
16 Name:           gdm
17 Version:        2.14.1
18 Release:        1
19 Epoch:          1
20 License:        GPL/LGPL
21 Group:          X11/Applications
22 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdm/2.14/%{name}-%{version}.tar.bz2
23 # Source0-md5:  5bafb764f36d7caf5d2217de0b6ceba5
24 Source1:        %{name}.pamd
25 Source2:        %{name}.init
26 Source3:        %{name}-pld-logo.png
27 # http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/
28 Source4:        %{name}-storky.tar.gz
29 # Source4-md5:  e293fbe4a60004056f6894463b874ae8
30 Source5:        %{name}-autologin.pamd
31 Source6:        %{name}-gdmthemetester.in
32 Patch0:         %{name}-xdmcp.patch
33 Patch1:         %{name}-conf.patch
34 Patch2:         %{name}-xsession.patch
35 Patch3:         %{name}-logdir.patch
36 Patch4:         %{name}-desktop.patch
37 Patch5:         %{name}-xorg.patch
38 Patch6:         %{name}-makefile.patch
39 URL:            http://www.jirka.org/gdm.html
40 BuildRequires:  attr-devel
41 BuildRequires:  autoconf
42 BuildRequires:  automake
43 BuildRequires:  gettext-devel
44 BuildRequires:  gtk+2-devel >= 2:2.4.3
45 BuildRequires:  intltool >= 0.30
46 BuildRequires:  libglade2-devel >= 1:2.4.1
47 BuildRequires:  libgnome-devel >= 2.6.1
48 BuildRequires:  libgnomecanvas-devel >= 2.6.1
49 BuildRequires:  libgnomeui-devel >= 2.10.0-2
50 BuildRequires:  libgsf-devel >= 1.9.0
51 BuildRequires:  librsvg-devel >= 1:2.6.5
52 %{?with_selinux:BuildRequires:  libselinux-devel}
53 BuildRequires:  libtool
54 BuildRequires:  libxml2-devel >= 2.5.11
55 BuildRequires:  pam-devel
56 BuildRequires:  perl-modules
57 BuildRequires:  rpmbuild(macros) >= 1.231
58 BuildRequires:  xorg-lib-libdmx-devel
59 BuildRequires:  xorg-lib-libXdmcp-devel
60 BuildRequires:  xorg-lib-libXi-devel
61 BuildRequires:  xorg-lib-libXinerama-devel
62 Requires(pre):  /bin/id
63 Requires(pre):  /usr/sbin/groupadd
64 Requires(pre):  /usr/sbin/useradd
65 Requires(postun):       /usr/sbin/groupdel
66 Requires(postun):       /usr/sbin/userdel
67 Requires(post,postun):  /usr/bin/scrollkeeper-update
68 Requires:       libgnome >= 2.6.1
69 Requires:       xorg-app-sessreg
70 Requires:       which
71 Requires:       pam >= 0.79.0
72 Provides:       group(xdm)
73 Provides:       user(xdm)
74 Obsoletes:      X11-xdm
75 Obsoletes:      entrance
76 Obsoletes:      kdm
77 Obsoletes:      wdm
78 Obsoletes:      xdm
79 Conflicts:      gdkxft
80 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82 %define         _localstatedir  /var/lib
83
84 %description
85 Gdm (the GNOME Display Manager) is a highly configurable
86 reimplementation of xdm, the X Display Manager. Gdm allows you to log
87 into your system with the X Window System running and supports running
88 several different X sessions on your local machine at the same time.
89
90 %description -l es
91 Administrador de Entrada del GNOME.
92
93 %description -l ja
94 Gdm (the GNOME Display Manager) ¤Ï¡¢¹âÅÙ¤ËÀßÄê²Äǽ¤Ê xdm X Display
95 Manager ¤ÎºÆ¼ÂÁõÈǤǤ¹¡£ Gdm ¤ò»È¤¦¤È¡¢ X Window System
96 ¤¬Æ°¤¤¤Æ¤¤¤ë¤¢¤Ê¤¿¤Î
97 ¥·¥¹¥Æ¥à¤Ë¤¤¤í¤¤¤í¤Ê¥»¥Ã¥·¥ç¥ó¤òÁªÂò¤·¤Æ¥í¥°¥¤¥ó¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
98
99 ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Gdm ¤Ç¤Ï¡¢³Æ¼ï¸À¸ì¤ä¡¢XIM ¤òÁªÂò¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£
100
101 %description -l pl
102 Gdm jest wysokokonfigurowaln± reimplementacj± xdma. Gdm pozwala
103 logowaæ siê do systemu z poziomu X11 i wspiera jednoczesn± pracê kilku
104 ró¿nych sesji X na lokalnej maszynie.
105
106 %description -l pt_BR
107 Gerenciador de Entrada do GNOME.
108
109 %description -l ru
110 GDM (GNOME Display Manager) - ÜÔÏ ÒÅÉÍÐÌÅÍÅÎÔÁÃÉÑ xdm (X Display
111 Manager). GDM ÐÏÚ×ÏÌÑÅÔ ×ÁÍ ×ÈÏÄÉÔØ × ÓÉÓÔÅÍÕ, ÎÁ ËÏÔÏÒÏÊ ÚÁÐÕÝÅÎÏ X
112 Window É ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÁÂÏÔÕ ÎÅÓËÏÌØÕÉÈ ÒÁÚÎÙÈ X ÓÅÁÎÓÏ× ÏÄÎÏ×ÒÅÍÅÎÎÏ.
113
114 %description -l uk
115 GDM (GNOME Display Manager) - ÃÅ ÒŦÍÐÌÅÍÅÎÔÁæѠxdm (X Display
116 Manager). GDM ÄÏÚ×ÏÌѤ ×ÁÍ ×ÈÏÄÉÔÉ × ÓÉÓÔÅÍÕ, ÎÁ Ñ˦ʠÚÁÐÕÝÅÎÏ X
117 Window ÔÁ Ð¦ÄÔÒÉÍÕ¤ ÒÏÂÏÔՠ˦ÌØËÏÈ Ò¦ÚÎÉÈ X ÓÅÁÎӦנÏÄÎÏÞÁÓÎÏ.
118
119 %package Xnest
120 Summary:        Xnest (ie embedded X) server for GDM
121 Summary(pl):    Serwer Xnest dla GDM
122 Group:          X11/Applications
123 Requires:       %{name} = %{epoch}:%{version}-%{release}
124 Requires:       xorg-xserver-Xnest
125
126 %description Xnest
127 This package add support for Xnest server in gdm.
128
129 %description Xnest -l pl
130 Ten pakiet dodaje do gdm wsparcie dla Xnest.
131
132 %package init
133 Summary:        Init script for GDM
134 Summary(pl):    Skrypt init dla GDM-a
135 Group:          X11/Applications
136 Requires:       %{name} = %{epoch}:%{version}-%{release}
137 Requires:       open
138 Requires(post,preun):   /sbin/chkconfig
139
140 %description init
141 Init script for GDM.
142
143 %description init -l pl
144 Skrypt init dla GDM-a.
145
146 %prep
147 %setup -q -a4
148 %patch0 -p1
149 %patch1 -p1
150 %patch2 -p1
151 %patch3 -p1
152 %patch4 -p1
153 %patch5 -p1
154 %patch6 -p0
155
156 cp %{SOURCE6} gui/greeter/gdmthemetester.in
157
158 %build
159 %{__libtoolize}
160 %{__glib_gettextize}
161 %{__intltoolize}
162 %{__aclocal}
163 %{__autoconf}
164 %{__automake}
165 %configure \
166         --disable-console-helper \
167         --disable-scrollkeeper \
168         --enable-authentication-scheme=pam \
169         --with-pam-prefix=/etc \
170         --with-tcp-wrappers=yes \
171         --with%{!?with_selinux:out}-selinux \
172         --with-xdmcp=yes \
173         --with-xinerama=yes
174
175 %{__make}
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
180         $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \
181         $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky
182
183 %{__make} install \
184         DESTDIR=$RPM_BUILD_ROOT \
185         PAM_PREFIX=/etc
186
187 mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
188         $RPM_BUILD_ROOT%{_datadir}/xsessions
189
190 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
191 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
192 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
193
194 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
195
196 install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
197
198 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
199
200 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
201
202 %find_lang %{name} --all-name --with-gnome
203
204 # Remove useless files
205 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a}
206
207 # moved to gnome-session
208 rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop
209
210 %clean
211 rm -rf $RPM_BUILD_ROOT
212
213 %pre
214 %groupadd -g 55 -r -f xdm
215 %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c 'X Display Manager' -g xdm xdm
216
217 %post
218 %scrollkeeper_update_post
219
220 %postun
221 %scrollkeeper_update_postun
222 if [ "$1" = "0" ]; then
223         %userremove xdm
224         %groupremove xdm
225 fi
226
227 %triggerpostun -- %{name} < 1:2.13.0.8-1
228 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then
229     mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf
230 fi
231
232 %post init
233 /sbin/chkconfig --add gdm
234 if [ -f /var/lock/subsys/gdm ]; then
235         echo "Run \"service gdm restart\" to restart gdm." >&2
236         echo "WARNING: it will terminate all sessions opened from gdm!" >&2
237 else
238         echo "Run \"service gdm start\" to start gdm." >&2
239 fi
240
241 %preun init
242 if [ "$1" = "0" ]; then
243         if [ -f /var/lock/subsys/gdm ]; then
244                 /etc/rc.d/init.d/gdm stop >&2
245         fi
246         /sbin/chkconfig --del gdm
247 fi
248
249 %files -f %{name}.lang
250 %defattr(644,root,root,755)
251 %doc AUTHORS ChangeLog NEWS README TODO
252 %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy
253 %attr(755,root,root) %{_bindir}/gdmdynamic
254 %attr(755,root,root) %{_bindir}/gdmflexiserver
255 %attr(755,root,root) %{_bindir}/gdmphotosetup
256 %attr(755,root,root) %{_bindir}/gdmthemetester
257 %attr(755,root,root) %{_libdir}/gdmaskpass
258 %attr(755,root,root) %{_libdir}/gdmopen
259 %attr(755,root,root) %{_libdir}/gdmtranslate
260 %attr(755,root,root) %{_libdir}/gdmchooser
261 %attr(755,root,root) %{_libdir}/gdmgreeter
262 %attr(755,root,root) %{_libdir}/gdmlogin
263 %attr(755,root,root) %{_sbindir}/*
264 %dir %{_sysconfdir}/gdm
265 %dir %{_sysconfdir}/gdm/modules
266 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
267 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
268 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
269 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
270 %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession
271 %config %{_sysconfdir}/gdm/PostLogin/Default.sample
272 %config %{_sysconfdir}/gdm/locale.alias
273 %config %{_sysconfdir}/gdm/modules/*
274
275 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/
276
277 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm*
278 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm
279 %attr(750,xdm,xdm) /var/lib/gdm
280 %attr(750,xdm,xdm) /var/log/gdm
281 %attr(750,xdm,xdm) /home/services/xdm
282 %{_pixmapsdir}/*
283 %{_desktopdir}/gdmsetup.desktop
284 %{_desktopdir}/gdmflexiserver.desktop
285 %{_desktopdir}/gdmphotosetup.desktop
286 %{_datadir}/gdm
287 #%%{_datadir}/xsessions  -  moved to gnome-session
288 %{_datadir}/xsessions/default.desktop
289 %{_iconsdir}/hicolor/*/apps/*.png
290 %{_omf_dest_dir}/gdm
291 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
292 %{_mandir}/man1/gdm*
293
294 %files Xnest
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_bindir}/gdmXnest
297 %attr(755,root,root) %{_bindir}/gdmXnestchooser
298 %{_desktopdir}/gdmflexiserver-xnest.desktop
299
300 %files init
301 %defattr(644,root,root,755)
302 %attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.091975 seconds and 4 git commands to generate.