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