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="$RPM_OPT_FLAGS" \
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 strip $RPM_BUILD_ROOT%{_bindir}/* || :
112 gzip -9nf AUTHORS ChangeLog NEWS README TODO RELEASENOTES
117 /usr/sbin/groupadd -g 55 -r -f xdm
119 if [ -z "`id -u xdm 2>/dev/null`" ]; then
120 /usr/sbin/useradd -u 55 -r -d /dev/null -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
124 /sbin/chkconfig --add gdm
125 if [ -f /var/lock/subsys/gdm ]; then
126 /etc/rc.d/init.d/gdm restart >&2
128 echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
132 if [ -f /var/lock/subsys/gdm ]; then
133 /etc/rc.d/init.d/gdm stop >&2
135 /sbin/chkconfig --del gdm
138 if [ "$1" = "0" ]; then
140 if [ -n "`id -u xdm 2>/dev/null`" ]; then
141 /usr/sbin/userdel xdm
144 /usr/sbin/groupdel xdm
149 rm -rf $RPM_BUILD_ROOT
152 %defattr(644,root,root,755)
153 %doc {AUTHORS,ChangeLog,NEWS,README,TODO}.gz
154 %attr(775,root,xdm) %{_bindir}/gdm
155 %attr(775,root,xdm) %{_bindir}/gdmlogin
156 %attr(775,root,xdm) %{_bindir}/gdmchooser
157 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/Init
158 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/PreSession
159 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/Sessions
160 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/PostSession
161 %attr(775,root,xdm) %config %{_sysconfdir}/gdm/gnomerc
162 %attr(664,root,xdm) %config %{_sysconfdir}/gdm/gdm.conf
163 %attr(664,root,xdm) %config %{_sysconfdir}/gdm/locale.alias
164 %attr(775,root,xdm) %dir %{_sysconfdir}/gdm
165 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/gdm
166 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
167 %attr(750,xdm,xdm) /var/lib/gdm
168 %attr(754,root,root) /etc/rc.d/init.d/gdm
169 %{_datadir}/pixmaps/*