]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
8534cdb68d8426c79f8892ee67d16fb3516a4321
[packages/gdm.git] / gdm.spec
1 Summary:        GNOME Display Manager
2 Summary(es):    Administrador de Entrada del GNOME
3 Summary(ja):    GNOME ¥Ç¥£¥¹¥×¥ì¥¤¥Þ¥Í¡¼¥¸¥ã
4 Summary(pl):    gdm
5 Summary(pt_BR): Gerenciador de Entrada do GNOME
6 Summary(ru):    äÉÓÐÌÅÊÎÙÊ ÍÅÎÅÄÖÅÒ GNOME
7 Summary(uk):    äÉÓÐÌÅÊÎÉÊ ÍÅÎÅÄÖÅÒ GNOME
8 Name:           gdm
9 Version:        2.2.5.5
10 Release:        1
11 Epoch:          1
12 License:        GPL/LGPL
13 Group:          X11/Applications
14 Source0:        ftp://ftp.gnome.org/pub/GNOME/sources/gdm/2.2/%{name}-%{version}.tar.bz2
15 # Source0-md5:  95
16 Source1:        %{name}.pamd
17 Source2:        %{name}.init
18 Source3:        %{name}.conf
19 Source4:        %{name}-pld-logo.png
20 Patch0:         %{name}-xdmcp.patch
21 Patch1:         %{name}-am_fixes.patch
22 Patch2:         %{name}-po.patch
23 Patch3:         %{name}-eu_xml.patch
24 Patch4:         %{name}-permissions.patch
25 Patch5:         %{name}-omf.patch
26 Patch6:         %{name}-desktop.patch
27 Patch7:         %{name}-xml_build_fix.patch
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  esound-devel
31 BuildRequires:  gdk-pixbuf-devel
32 BuildRequires:  gettext-devel
33 BuildRequires:  gnome-libs-devel
34 BuildRequires:  gtk+-devel
35 BuildRequires:  intltool >= 0.14
36 BuildRequires:  libglade-gnome-devel
37 BuildRequires:  libxml-devel
38 BuildRequires:  perl-modules
39 BuildRequires:  scrollkeeper
40 Requires:       gnome-libs >= 1.0.0
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 Obsoletes:      xdm kdm wdm
52
53 %define         _prefix         /usr/X11R6
54 %define         _bindir         %{_prefix}/bin
55 %define         _datadir        %{_prefix}/share
56 %define         _sbindir        %{_prefix}/sbin
57 %define         _mandir         %{_prefix}/man
58 %define         _localstatedir  /var/lib
59 %define         _sysconfdir     /etc/X11
60 %define         _omf_dest_dir   %(scrollkeeper-config --omfdir)
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 %prep
111 %setup -q
112 %patch0 -p1
113 %patch1 -p1
114 %patch2 -p1
115 %patch3 -p1
116 %patch4 -p1
117 %patch5 -p1
118 %patch6 -p1
119 %patch7 -p1
120
121 %build
122 rm -f missing
123 %{__libtoolize}
124 %{__gettextize}
125 intltoolize --copy --force
126 aclocal -I %{_aclocaldir}/gnome
127 %{__autoconf}
128 %{__automake}
129 %configure \
130         --with-xinerama=yes \
131         --with-xdmcp=yes \
132         --with-tcp-wrappers=yes \
133         --disable-console-helper
134
135 %{__make}
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security}
140
141 %{__make} install \
142         DESTDIR=$RPM_BUILD_ROOT \
143         PAM_PREFIX=/etc \
144         Settingsdir=%{_applnkdir}/Settings/GNOME \
145         Systemdir=%{_applnkdir}/System \
146         omf_dest_dir=%{_omf_dest_dir}/%{name}
147
148 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
149 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
150 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/gdm.conf
151 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
152 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
153
154 mv $RPM_BUILD_ROOT%{_applnkdir}/System/gdmconfig.desktop \
155         $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME/
156
157 %find_lang %{name} --all-name --with-gnome
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %pre
163 /usr/sbin/groupadd -g 55 -r -f xdm
164
165 if [ -z "`id -u xdm 2>/dev/null`" ]; then
166         /usr/sbin/useradd -u 55 -r -d /dev/null -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
167 fi
168
169 %post
170 /sbin/chkconfig --add gdm
171 if [ -f /var/lock/subsys/gdm ]; then
172         echo "Run \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2
173 else
174         echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
175 fi
176 /usr/bin/scrollkeeper-update
177
178 %preun
179 if [ "$1" = "0" ]; then
180         if [ -f /var/lock/subsys/gdm ]; then
181                 /etc/rc.d/init.d/gdm stop >&2
182         fi
183         /sbin/chkconfig --del gdm
184 fi
185
186 %postun
187 if [ "$1" = "0" ]; then
188         if [ -n "`id -u xdm 2>/dev/null`" ]; then
189                 /usr/sbin/userdel xdm
190         fi
191         /usr/sbin/groupdel xdm
192 fi
193 /usr/bin/scrollkeeper-update
194
195 %files -f %{name}.lang
196 %defattr(644,root,root,755)
197 %doc AUTHORS ChangeLog NEWS README TODO
198 %attr(755,root,root) %{_bindir}/gdm
199 %attr(755,root,root) %{_bindir}/gdmchooser
200 %attr(755,root,root) %{_bindir}/gdmconfig
201 %attr(755,root,root) %{_bindir}/gdmflexiserver
202 %attr(755,root,root) %{_bindir}/gdmlogin
203 %attr(755,root,root) %{_bindir}/gdmmktemp
204 %attr(755,root,root) %{_bindir}/gdmphotosetup
205 %attr(755,root,root) %{_sbindir}/*
206 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
207 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
208 %attr(755,root,root) %config %{_sysconfdir}/gdm/Sessions
209 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
210 %attr(755,root,root) %config %{_sysconfdir}/gdm/gnomerc
211 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
212 %config %{_sysconfdir}/gdm/factory-gdm.conf
213 %config %{_sysconfdir}/gdm/gdm.conf
214 %config %{_sysconfdir}/gdm/locale.alias
215 %attr(755,root,root) %dir %{_sysconfdir}/gdm
216 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/gdm
217 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
218 %attr(770,root,xdm) /var/lib/gdm
219 %attr(754,root,root) /etc/rc.d/init.d/gdm
220 %{_pixmapsdir}/*
221 # these lines to devel subpackage?
222 %{_applnkdir}/Settings/GNOME/*
223 %{_applnkdir}/System/gdmflexiserver.desktop
224 %{_datadir}/gdm
225 %{_omf_dest_dir}/%{name}
226
227 %files Xnest
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_bindir}/gdmXnestchooser
230 %{_applnkdir}/System/gdmflexiserver-xnest.desktop
This page took 0.254524 seconds and 2 git commands to generate.