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