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