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