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