]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.spec
- do NOT replace gdm.conf
[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.4
10 Release:        10
11 Epoch:          1
12 License:        GPL/LGPL
13 Group:          X11/Applications
14 Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.bz2
15 Source1:        %{name}.pamd
16 Source2:        %{name}.init
17 Source3:        %{name}.conf
18 Source4:        %{name}-pld-logo.png
19 Patch0:         %{name}-xdmcp.patch
20 Patch1:         %{name}-am_fixes.patch
21 Patch2:         %{name}-permissions.patch
22 Patch3:         %{name}-omf.patch
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  esound-devel
26 BuildRequires:  gdk-pixbuf-devel
27 BuildRequires:  gettext-devel
28 BuildRequires:  gnome-libs-devel
29 BuildRequires:  gtk+-devel
30 BuildRequires:  intltool >= 0.14
31 BuildRequires:  libglade-gnome-devel
32 BuildRequires:  libtool
33 BuildRequires:  libxml-devel
34 BuildRequires:  perl-modules
35 BuildRequires:  scrollkeeper
36 Requires:       gnome-libs >= 1.0.0
37 Requires:       which
38 Requires:       /usr/X11R6/bin/sessreg
39 Requires(pre):  /bin/id
40 Requires(pre):  /usr/sbin/groupadd
41 Requires(pre):  /usr/sbin/useradd
42 Requires(postun):       /usr/sbin/userdel
43 Requires(postun):       /usr/sbin/groupdel
44 Requires(post,postun):scrollkeeper
45 Requires(post,preun):/sbin/chkconfig
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Obsoletes:      xdm kdm wdm
48
49 %define         _prefix         /usr/X11R6
50 %define         _bindir         %{_prefix}/bin
51 %define         _datadir        %{_prefix}/share
52 %define         _sbindir        %{_prefix}/sbin
53 %define         _mandir         %{_prefix}/man
54 %define         _localstatedir  /var/lib
55 %define         _sysconfdir     /etc/X11
56 %define         _omf_dest_dir   %(scrollkeeper-config --omfdir)
57
58 %description
59 Gdm (the GNOME Display Manager) is a highly configurable
60 reimplementation of xdm, the X Display Manager. Gdm allows you to log
61 into your system with the X Window System running and supports running
62 several different X sessions on your local machine at the same time.
63
64 %description -l es
65 Administrador de Entrada del GNOME.
66
67 %description -l ja
68 Gdm (the GNOME Display Manager) ¤Ï¡¢¹âÅÙ¤ËÀßÄê²Äǽ¤Ê xdm X Display
69 Manager ¤ÎºÆ¼ÂÁõÈǤǤ¹¡£ Gdm ¤ò»È¤¦¤È¡¢ X Window System
70 ¤¬Æ°¤¤¤Æ¤¤¤ë¤¢¤Ê¤¿¤Î
71 ¥·¥¹¥Æ¥à¤Ë¤¤¤í¤¤¤í¤Ê¥»¥Ã¥·¥ç¥ó¤òÁªÂò¤·¤Æ¥í¥°¥¤¥ó¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
72
73 ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Gdm ¤Ç¤Ï¡¢³Æ¼ï¸À¸ì¤ä¡¢XIM ¤òÁªÂò¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£
74
75 %description -l pl
76 Gdm jest wysokokonfigurowaln± reimplementacj± xdma. Gdm pozwala
77 logowaæ siê do systemu z poziomu X11 i wspiera jednoczesn± pracê kilku
78 ró¿nych Xsesji na lokalnej maszynie.
79
80 %description -l pt_BR
81 Gerenciador de Entrada do GNOME.
82
83 %description -l ru
84 GDM (GNOME Display Manager) - ÜÔÏ ÒÅÉÍÐÌÅÍÅÎÔÁÃÉÑ xdm (X Display
85 Manager). GDM ÐÏÚ×ÏÌÑÅÔ ×ÁÍ ×ÈÏÄÉÔØ × ÓÉÓÔÅÍÕ, ÎÁ ËÏÔÏÒÏÊ ÚÁÐÕÝÅÎÏ X
86 Window É ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÁÂÏÔÕ ÎÅÓËÏÌØÕÉÈ ÒÁÚÎÙÈ X ÓÅÁÎÓÏ× ÏÄÎÏ×ÒÅÍÅÎÎÏ.
87
88 %description -l uk
89 GDM (GNOME Display Manager) - ÃÅ ÒŦÍÐÌÅÍÅÎÔÁæѠxdm (X Display
90 Manager). GDM ÄÏÚ×ÏÌѤ ×ÁÍ ×ÈÏÄÉÔÉ × ÓÉÓÔÅÍÕ, ÎÁ Ñ˦ʠÚÁÐÕÝÅÎÏ X
91 Window ÔÁ Ð¦ÄÔÒÉÍÕ¤ ÒÏÂÏÔՠ˦ÌØËÏÈ Ò¦ÚÎÉÈ X ÓÅÁÎӦנÏÄÎÏÞÁÓÎÏ.
92
93 %package Xnest
94 Summary:        Xnest (ie embedded X) server for GDM
95 Summary(pl):    Serwer Xnest dla GDM
96 Group:          X11/Applications
97 Requires:       %{name} = %{version}
98 Requires:       XFree86-Xnest
99
100 %description Xnest
101 This package add support for Xnest server in gdm.
102
103 %description Xnest -l pl
104 Ten pakiet dodaje do gdm wsparcie dla Xnest.
105
106 %prep
107 %setup -q
108 %patch0 -p1
109 %patch1 -p1
110 %patch2 -p1
111 %patch3 -p1
112
113 %build
114 rm -f missing
115 %{__libtoolize}
116 %{__gettextize}
117 intltoolize --copy --force
118 %{__aclocal} -I %{_aclocaldir}/gnome
119 %{__autoconf}
120 %{__automake}
121 %configure \
122         --with-xinerama=yes \
123         --with-xdmcp=yes \
124         --with-tcp-wrappers=yes \
125         --disable-console-helper
126
127 %{__make}
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security}
132
133 %{__make} install \
134         DESTDIR=$RPM_BUILD_ROOT \
135         PAM_PREFIX=/etc \
136         Settingsdir=%{_applnkdir}/Settings/GNOME \
137         Systemdir=%{_applnkdir}/System \
138         omf_dest_dir=%{_omf_dest_dir}/%{name}
139
140 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
141 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
142 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/gdm.conf
143 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
144 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
145
146 mv $RPM_BUILD_ROOT%{_applnkdir}/System/gdmconfig.desktop \
147         $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME/
148
149 %find_lang %{name} --all-name --with-gnome
150
151 %clean
152 rm -rf $RPM_BUILD_ROOT
153
154 %pre
155 /usr/sbin/groupadd -g 55 -r -f xdm
156
157 if [ -z "`id -u xdm 2>/dev/null`" ]; then
158         /usr/sbin/useradd -u 55 -r -d /dev/null -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
159 fi
160
161 %post
162 /sbin/chkconfig --add gdm
163 if [ -f /var/lock/subsys/gdm ]; then
164         echo "Run \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2
165 else
166         echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
167 fi
168 /usr/bin/scrollkeeper-update
169
170 %preun
171 if [ "$1" = "0" ]; then
172         if [ -f /var/lock/subsys/gdm ]; then
173                 /etc/rc.d/init.d/gdm stop >&2
174         fi
175         /sbin/chkconfig --del gdm
176 fi
177
178 %postun
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 /usr/bin/scrollkeeper-update
186
187 %files -f %{name}.lang
188 %defattr(644,root,root,755)
189 %doc AUTHORS ChangeLog NEWS README TODO
190 %attr(755,root,root) %{_bindir}/gdm
191 %attr(755,root,root) %{_bindir}/gdmchooser
192 %attr(755,root,root) %{_bindir}/gdmconfig
193 %attr(755,root,root) %{_bindir}/gdmflexiserver
194 %attr(755,root,root) %{_bindir}/gdmlogin
195 %attr(755,root,root) %{_bindir}/gdmmktemp
196 %attr(755,root,root) %{_bindir}/gdmphotosetup
197 %attr(755,root,root) %{_sbindir}/*
198 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
199 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
200 %attr(755,root,root) %config %{_sysconfdir}/gdm/Sessions
201 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
202 %attr(755,root,root) %config %{_sysconfdir}/gdm/gnomerc
203 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
204 %config %{_sysconfdir}/gdm/factory-gdm.conf
205 %config(noreplace)  %verify(not size mtime md5) %{_sysconfdir}/gdm/gdm.conf
206 %config %{_sysconfdir}/gdm/locale.alias
207 %attr(755,root,root) %dir %{_sysconfdir}/gdm
208 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/gdm
209 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
210 %attr(770,root,xdm) /var/lib/gdm
211 %attr(754,root,root) /etc/rc.d/init.d/gdm
212 %{_pixmapsdir}/*
213 # these lines to devel subpackage?
214 %{_applnkdir}/Settings/GNOME/*
215 %{_applnkdir}/System/gdmflexiserver.desktop
216 %{_datadir}/gdm
217 %{_omf_dest_dir}/%{name}
218
219 %files Xnest
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/gdmXnestchooser
222 %{_applnkdir}/System/gdmflexiserver-xnest.desktop
This page took 0.051132 seconds and 4 git commands to generate.