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