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