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