]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
- do not start gdm on vt9 by default (start it on first available console),
[packages/gdm.git] / gdm.spec
1 Summary:        GNOME Display Manager
2 Summary(es):    Administrador de Entrada del GNOME
3 Summary(ja):    GNOME ¥Ç¥£¥¹¥×¥ì¥¤¥Þ¥Í¡¼¥¸¥ã
4 Summary(pl):    gdm
5 Summary(pt_BR): Gerenciador de Entrada do GNOME
6 Summary(ru):    äÉÓÐÌÅÊÎÙÊ ÍÅÎÅÄÖÅÒ GNOME
7 Summary(uk):    äÉÓÐÌÅÊÎÉÊ ÍÅÎÅÄÖÅÒ GNOME
8 Name:           gdm
9 Version:        2.2.5.4
10 Release:        10
11 Epoch:          1
12 License:        GPL/LGPL
13 Group:          X11/Applications
14 Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.bz2
15 Source1:        %{name}.pamd
16 Source2:        %{name}.init
17 Source3:        %{name}.conf
18 Source4:        %{name}-pld-logo.png
19 Patch0:         %{name}-xdmcp.patch
20 Patch1:         %{name}-am_fixes.patch
21 Patch2:         %{name}-permissions.patch
22 Patch3:         %{name}-omf.patch
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  esound-devel
26 BuildRequires:  gdk-pixbuf-devel
27 BuildRequires:  gettext-devel
28 BuildRequires:  gnome-libs-devel
29 BuildRequires:  gtk+-devel
30 BuildRequires:  intltool >= 0.14
31 BuildRequires:  libglade-gnome-devel
32 BuildRequires:  libxml-devel
33 BuildRequires:  perl-modules
34 BuildRequires:  scrollkeeper
35 Requires:       gnome-libs >= 1.0.0
36 Requires:       which
37 Requires:       /usr/X11R6/bin/sessreg
38 Requires(pre):  /bin/id
39 Requires(pre):  /usr/sbin/groupadd
40 Requires(pre):  /usr/sbin/useradd
41 Requires(postun):       /usr/sbin/userdel
42 Requires(postun):       /usr/sbin/groupdel
43 Requires(post,postun):scrollkeeper
44 Requires(post,preun):/sbin/chkconfig
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Obsoletes:      xdm kdm wdm
47
48 %define         _prefix         /usr/X11R6
49 %define         _bindir         %{_prefix}/bin
50 %define         _datadir        %{_prefix}/share
51 %define         _sbindir        %{_prefix}/sbin
52 %define         _mandir         %{_prefix}/man
53 %define         _localstatedir  /var/lib
54 %define         _sysconfdir     /etc/X11
55 %define         _omf_dest_dir   %(scrollkeeper-config --omfdir)
56
57 %description
58 Gdm (the GNOME Display Manager) is a highly configurable
59 reimplementation of xdm, the X Display Manager. Gdm allows you to log
60 into your system with the X Window System running and supports running
61 several different X sessions on your local machine at the same time.
62
63 %description -l es
64 Administrador de Entrada del GNOME.
65
66 %description -l ja
67 Gdm (the GNOME Display Manager) ¤Ï¡¢¹âÅÙ¤ËÀßÄê²Äǽ¤Ê xdm X Display
68 Manager ¤ÎºÆ¼ÂÁõÈǤǤ¹¡£ Gdm ¤ò»È¤¦¤È¡¢ X Window System
69 ¤¬Æ°¤¤¤Æ¤¤¤ë¤¢¤Ê¤¿¤Î
70 ¥·¥¹¥Æ¥à¤Ë¤¤¤í¤¤¤í¤Ê¥»¥Ã¥·¥ç¥ó¤òÁªÂò¤·¤Æ¥í¥°¥¤¥ó¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
71
72 ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Gdm ¤Ç¤Ï¡¢³Æ¼ï¸À¸ì¤ä¡¢XIM ¤òÁªÂò¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£
73
74 %description -l pl
75 Gdm jest wysokokonfigurowaln± reimplementacj± xdma. Gdm pozwala
76 logowaæ siê do systemu z poziomu X11 i wspiera jednoczesn± pracê kilku
77 ró¿nych Xsesji na lokalnej maszynie.
78
79 %description -l pt_BR
80 Gerenciador de Entrada do GNOME.
81
82 %description -l ru
83 GDM (GNOME Display Manager) - ÜÔÏ ÒÅÉÍÐÌÅÍÅÎÔÁÃÉÑ xdm (X Display
84 Manager). GDM ÐÏÚ×ÏÌÑÅÔ ×ÁÍ ×ÈÏÄÉÔØ × ÓÉÓÔÅÍÕ, ÎÁ ËÏÔÏÒÏÊ ÚÁÐÕÝÅÎÏ X
85 Window É ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÁÂÏÔÕ ÎÅÓËÏÌØÕÉÈ ÒÁÚÎÙÈ X ÓÅÁÎÓÏ× ÏÄÎÏ×ÒÅÍÅÎÎÏ.
86
87 %description -l uk
88 GDM (GNOME Display Manager) - ÃÅ ÒŦÍÐÌÅÍÅÎÔÁæѠxdm (X Display
89 Manager). GDM ÄÏÚ×ÏÌѤ ×ÁÍ ×ÈÏÄÉÔÉ × ÓÉÓÔÅÍÕ, ÎÁ Ñ˦ʠÚÁÐÕÝÅÎÏ X
90 Window ÔÁ Ð¦ÄÔÒÉÍÕ¤ ÒÏÂÏÔՠ˦ÌØËÏÈ Ò¦ÚÎÉÈ X ÓÅÁÎӦנÏÄÎÏÞÁÓÎÏ.
91
92 %package Xnest
93 Summary:        Xnest (ie embedded X) server for GDM
94 Summary(pl):    Serwer Xnest dla GDM
95 Group:          X11/Applications
96 Requires:       %{name} = %{version}
97 Requires:       XFree86-Xnest
98
99 %description Xnest
100 This package add support for Xnest server in gdm.
101
102 %description Xnest -l pl
103 Ten pakiet dodaje do gdm wsparcie dla Xnest.
104
105 %prep
106 %setup -q
107 %patch0 -p1
108 %patch1 -p1
109 %patch2 -p1
110 %patch3 -p1
111
112 %build
113 rm -f missing
114 %{__libtoolize}
115 %{__gettextize}
116 intltoolize --copy --force
117 aclocal -I %{_aclocaldir}/gnome
118 %{__autoconf}
119 %{__automake}
120 %configure \
121         --with-xinerama=yes \
122         --with-xdmcp=yes \
123         --with-tcp-wrappers=yes \
124         --disable-console-helper
125
126 %{__make}
127
128 %install
129 rm -rf $RPM_BUILD_ROOT
130 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security}
131
132 %{__make} install \
133         DESTDIR=$RPM_BUILD_ROOT \
134         PAM_PREFIX=/etc \
135         Settingsdir=%{_applnkdir}/Settings/GNOME \
136         Systemdir=%{_applnkdir}/System \
137         omf_dest_dir=%{_omf_dest_dir}/%{name}
138
139 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
140 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
141 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/gdm.conf
142 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
143 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
144
145 mv $RPM_BUILD_ROOT%{_applnkdir}/System/gdmconfig.desktop \
146         $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME/
147
148 %find_lang %{name} --all-name --with-gnome
149
150 %clean
151 rm -rf $RPM_BUILD_ROOT
152
153 %pre
154 /usr/sbin/groupadd -g 55 -r -f xdm
155
156 if [ -z "`id -u xdm 2>/dev/null`" ]; then
157         /usr/sbin/useradd -u 55 -r -d /dev/null -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
158 fi
159
160 %post
161 /sbin/chkconfig --add gdm
162 if [ -f /var/lock/subsys/gdm ]; then
163         echo "Run \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2
164 else
165         echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
166 fi
167 /usr/bin/scrollkeeper-update
168
169 %preun
170 if [ "$1" = "0" ]; then
171         if [ -f /var/lock/subsys/gdm ]; then
172                 /etc/rc.d/init.d/gdm stop >&2
173         fi
174         /sbin/chkconfig --del gdm
175 fi
176
177 %postun
178 if [ "$1" = "0" ]; then
179         if [ -n "`id -u xdm 2>/dev/null`" ]; then
180                 /usr/sbin/userdel xdm
181         fi
182         /usr/sbin/groupdel xdm
183 fi
184 /usr/bin/scrollkeeper-update
185
186 %files -f %{name}.lang
187 %defattr(644,root,root,755)
188 %doc AUTHORS ChangeLog NEWS README TODO
189 %attr(755,root,root) %{_bindir}/gdm
190 %attr(755,root,root) %{_bindir}/gdmchooser
191 %attr(755,root,root) %{_bindir}/gdmconfig
192 %attr(755,root,root) %{_bindir}/gdmflexiserver
193 %attr(755,root,root) %{_bindir}/gdmlogin
194 %attr(755,root,root) %{_bindir}/gdmmktemp
195 %attr(755,root,root) %{_bindir}/gdmphotosetup
196 %attr(755,root,root) %{_sbindir}/*
197 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
198 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
199 %attr(755,root,root) %config %{_sysconfdir}/gdm/Sessions
200 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
201 %attr(755,root,root) %config %{_sysconfdir}/gdm/gnomerc
202 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
203 %config %{_sysconfdir}/gdm/factory-gdm.conf
204 %config %{_sysconfdir}/gdm/gdm.conf
205 %config %{_sysconfdir}/gdm/locale.alias
206 %attr(755,root,root) %dir %{_sysconfdir}/gdm
207 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/gdm
208 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
209 %attr(770,root,xdm) /var/lib/gdm
210 %attr(754,root,root) /etc/rc.d/init.d/gdm
211 %{_pixmapsdir}/*
212 # these lines to devel subpackage?
213 %{_applnkdir}/Settings/GNOME/*
214 %{_applnkdir}/System/gdmflexiserver.desktop
215 %{_datadir}/gdm
216 %{_omf_dest_dir}/%{name}
217
218 %files Xnest
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_bindir}/gdmXnestchooser
221 %{_applnkdir}/System/gdmflexiserver-xnest.desktop
This page took 0.096299 seconds and 3 git commands to generate.