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