]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm2.20.spec
- massive attack: adding Source-md5
[packages/gdm2.20.git] / gdm2.20.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 - 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.4.1.4
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.4/%{name}-%{version}.tar.bz2
20 # Source0-md5:  f1c0272f879abb8d8d412b1d45be5b6c
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 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  gettext-devel
29 BuildRequires:  gtk+2-devel >= 2.0.6
30 BuildRequires:  intltool >= 0.22
31 BuildRequires:  libglade2-devel >= 2.0.1
32 BuildRequires:  libgnomecanvas-devel >= 2.0.3
33 BuildRequires:  libgnome-devel >= 2.0.6
34 BuildRequires:  libgnomeui-devel >= 2.0.4
35 BuildRequires:  librsvg-devel >= 2.0.1
36 BuildRequires:  libtool
37 BuildRequires:  libxml2-devel >= 2.4.24
38 BuildRequires:  pam-devel
39 BuildRequires:  perl-modules
40 BuildRequires:  scrollkeeper >= 0.3.11
41 Requires:       libgnome >= 2.1.0-3
42 Requires:       which
43 Requires:       sessreg
44 Requires(pre): /bin/id
45 Requires(pre): /usr/sbin/groupadd
46 Requires(pre): /usr/sbin/useradd
47 Requires(postun):      /usr/sbin/userdel
48 Requires(postun):      /usr/sbin/groupdel
49 Requires(post,postun):scrollkeeper
50 Requires(post,preun):/sbin/chkconfig
51 Conflicts:      gdkxft
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Obsoletes:      xdm kdm wdm
54
55 %define         _localstatedir  /var/lib
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 sesji X 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 %package init
106 Summary:        Init script for GDM
107 Summary(pl):    Skrypt init dla GDM-a
108 Group:          X11/Applications
109 Requires:       %{name} = %{version}
110 Requires:       open
111
112 %description init
113 Init script for GDM.
114
115 %description init -l pl
116 Skrypt init dla GDM-a.
117
118 %prep
119 %setup -q
120 %patch0 -p1
121 %patch1 -p1
122
123 %build
124 rm -f missing
125 %{__libtoolize}
126 glib-gettextize --copy --force
127 %{__aclocal}
128 %{__autoconf}
129 %{__automake}
130 %configure \
131         --with-xinerama=yes \
132         --with-xdmcp=yes \
133         --with-pam-prefix=/etc \
134         --with-tcp-wrappers=yes \
135         --enable-authentication-scheme=pam \
136         --disable-console-helper
137
138 %{__make}
139
140 %install
141 rm -rf $RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
143         $RPM_BUILD_ROOT/home/services/xdm
144
145 %{__make} install \
146         DESTDIR=$RPM_BUILD_ROOT \
147         PAM_PREFIX=/etc
148
149 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
150 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
151
152 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
153
154 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
155
156 %find_lang %{name} --all-name --with-gnome
157
158 %clean
159 rm -rf $RPM_BUILD_ROOT
160
161 %pre
162 /usr/sbin/groupadd -g 55 -r -f xdm
163
164 if [ -z "`id -u xdm 2>/dev/null`" ]; then
165        /usr/sbin/useradd -u 55 -r -d /home/services/xdm -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
166 fi
167
168 %post
169 /usr/bin/scrollkeeper-update
170
171 %postun
172 /usr/bin/scrollkeeper-update
173 if [ "$1" = "0" ]; then
174        if [ -n "`id -u xdm 2>/dev/null`" ]; then
175                /usr/sbin/userdel xdm
176        fi
177        /usr/sbin/groupdel xdm
178 fi
179
180 %post init
181 /sbin/chkconfig --add gdm
182 if [ -f /var/lock/subsys/gdm ]; then
183         echo "Run \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2
184 else
185         echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
186 fi
187
188 %preun init
189 if [ "$1" = "0" ]; then
190         if [ -f /var/lock/subsys/gdm ]; then
191                 /etc/rc.d/init.d/gdm stop >&2
192         fi
193         /sbin/chkconfig --del gdm
194 fi
195
196 %files -f %{name}.lang
197 %defattr(644,root,root,755)
198 %doc AUTHORS ChangeLog NEWS README TODO
199 %attr(755,root,root) %{_bindir}/gdm
200 %attr(755,root,root) %{_bindir}/gdm-binary
201 %attr(755,root,root) %{_bindir}/gdmchooser
202 %attr(755,root,root) %{_bindir}/gdmflexiserver
203 %attr(755,root,root) %{_bindir}/gdmgreeter
204 %attr(755,root,root) %{_bindir}/gdmlogin
205 %attr(755,root,root) %{_bindir}/gdmmktemp
206 %attr(755,root,root) %{_bindir}/gdmphotosetup
207 %attr(755,root,root) %{_bindir}/gdmsetup
208 %attr(755,root,root) %{_bindir}/gdmthemetester
209 %attr(755,root,root) %{_sbindir}/*
210 %dir %{_sysconfdir}/gdm
211 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
212 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
213 %attr(755,root,root) %config %{_sysconfdir}/gdm/Sessions
214 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
215 %attr(755,root,root) %config %{_sysconfdir}/gdm/gnomerc
216 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
217 %config %{_sysconfdir}/gdm/factory-gdm.conf
218 %config(noreplace)  %verify(not size mtime md5) %{_sysconfdir}/gdm/gdm.conf
219 %config %{_sysconfdir}/gdm/locale.alias
220 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/gdm*
221 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
222 %attr(750,xdm,xdm) /var/lib/gdm
223 %attr(750,xdm,xdm) /home/services/xdm
224 %{_pixmapsdir}/*
225 %{_datadir}/applications/gdmsetup.desktop
226 %{_datadir}/applications/gdmflexiserver.desktop
227 %{_datadir}/gnome/capplets/*
228 %{_datadir}/gdm
229
230 %files Xnest
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_bindir}/gdmXnestchooser
233 %{_datadir}/applications/gdmflexiserver-xnest.desktop
234
235 %files init
236 %defattr(644,root,root,755)
237 %attr(754,root,root) /etc/rc.d/init.d/gdm
This page took 0.047666 seconds and 4 git commands to generate.