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