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