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