1 Summary: GNOME Display Manager
6 Source0: ftp://socsci.auc.dk/~mkp/gdm/%{name}-%{version}.tar.gz
9 Patch0: %{name}-config.patch
10 Patch1: %{name}-gnomerc.patch
11 Patch2: %{name}-chpass.patch
12 Patch3: %{name}-daemonfixes.patch
13 Patch4: %{name}-dumberrmsg.patch
14 Patch5: %{name}-fdleak.patch
15 Patch6: %{name}-fixmessages.patch
16 Patch7: %{name}-i18n.patch
17 Patch8: %{name}-loopofdeath.patch
18 Patch9: %{name}-no_questions_asked.patch
19 Patch10: %{name}-pipewrite.patch
20 Patch11: %{name}-rhlang.patch
21 Patch12: %{name}-system-auth.patch
22 Patch13: %{name}-tolower.patch
23 Patch14: %{name}-usershell.patch
24 Patch15: %{name}-nonbash-shell.patch
25 Patch16: %{name}-xdmcp.patch
26 Patch17: %{name}-ypconfigure.patch
27 Group: X11/Applications
28 Group(de): X11/Applikationen
29 Group(pl): X11/Aplikacje
31 Prereq: /usr/sbin/groupadd
32 Prereq: /usr/sbin/groupdel
33 Prereq: /usr/sbin/useradd
34 Prereq: /usr/sbin/userdel
35 Prereq: /sbin/chkconfig
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 BuildRequires: gnome-libs-devel
38 BuildRequires: gtk+-devel
39 BuildRequires: esound-devel
40 Requires: gnome-libs >= 1.0.0
42 Requires: /usr/X11R6/bin/sessreg
43 Obsoletes: xdm kdm wdm
45 %define _prefix /usr/X11R6
46 %define _mandir %{_prefix}/man
47 %define _sysconfdir /etc/X11
50 gdm manages local and remote displays and provides the user with a
51 graphical login window.
54 gdm zarz±dza lokalnymi i zdalnymi X serwerami i udostêpnia
55 u¿ytkownikowi graficzne okienko logowania.
79 CFLAGS="%{rpmcflags}" \
80 ./configure %{_target_platform} \
82 --sysconfdir=%{_sysconfdir} \
83 --localstatedir=/var/lib
87 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
91 install -d $RPM_BUILD_ROOT{%{_prefix},/etc/{pam.d,security}}
92 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
94 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} \
95 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
96 localstatedir=$RPM_BUILD_ROOT/var/lib
98 sed -e "s#$RPM_BUILD_ROOT##g" config/gnomerc >config/gnomerc.X
99 install config/gnomerc.X $RPM_BUILD_ROOT%{_sysconfdir}/gdm/gnomerc
101 sed -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_sysconfdir}/gdm/Sessions/Gnome \
102 > $RPM_BUILD_ROOT%{_sysconfdir}/gdm/Sessions/Gnome.X
104 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/gdm/Sessions/Gnome.X \
105 $RPM_BUILD_ROOT%{_sysconfdir}/gdm/Sessions/Gnome
107 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
108 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
110 gzip -9nf AUTHORS ChangeLog NEWS README TODO RELEASENOTES
115 /usr/sbin/groupadd -g 55 -r -f xdm
117 if [ -z "`id -u xdm 2>/dev/null`" ]; then
118 /usr/sbin/useradd -u 55 -r -d /dev/null -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
122 /sbin/chkconfig --add gdm
123 if [ -f /var/lock/subsys/gdm ]; then
124 /etc/rc.d/init.d/gdm restart >&2
126 echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
130 if [ -f /var/lock/subsys/gdm ]; then
131 /etc/rc.d/init.d/gdm stop >&2
133 /sbin/chkconfig --del gdm
136 if [ "$1" = "0" ]; then
138 if [ -n "`id -u xdm 2>/dev/null`" ]; then
139 /usr/sbin/userdel xdm
142 /usr/sbin/groupdel xdm
147 rm -rf $RPM_BUILD_ROOT
150 %defattr(644,root,root,755)
151 %doc {AUTHORS,ChangeLog,NEWS,README,TODO}.gz
152 %attr(775,root,xdm) %{_bindir}/gdm
153 %attr(775,root,xdm) %{_bindir}/gdmlogin
154 %attr(775,root,xdm) %{_bindir}/gdmchooser
155 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/Init
156 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/PreSession
157 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/Sessions
158 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/PostSession
159 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/gnomerc
160 %attr(664,root,xdm) %config %{_sysconfdir}/gdm/gdm.conf
161 %attr(664,root,xdm) %config %{_sysconfdir}/gdm/locale.alias
162 %attr(775,root,xdm) %dir %{_sysconfdir}/gdm
163 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/gdm
164 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
165 %attr(750,xdm,xdm) /var/lib/gdm
166 %attr(754,root,root) /etc/rc.d/init.d/gdm