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