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