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