# # TODO: # - s=/dev/null=/home/services/xdm= in %%trigger for graceful upgrade from xdm/kdm/gdm 2.2 # - check /etc/pam.d/gdm-autologin # # Conditiional build: %bcond_without selinux # without selinux # Summary: GNOME Display Manager Summary(es.UTF-8): Administrador de Entrada del GNOME Summary(ja.UTF-8): GNOME ディスプレイマネージャ Summary(pl.UTF-8): gdm - zarządca ekranów GNOME Summary(pt_BR.UTF-8): Gerenciador de Entrada do GNOME Summary(ru.UTF-8): Дисплейный менеджер GNOME Summary(uk.UTF-8): Дисплейний менеджер GNOME Name: gdm Version: 2.20.10 Release: 3 Epoch: 2 License: GPL/LGPL Group: X11/Applications Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/%{name}-%{version}.tar.bz2 # Source0-md5: 981c7ee7fbe453061e095ab52a3513f8 Source1: %{name}.pamd Source2: %{name}.init Source3: %{name}-pld-logo.png # http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/gdm/storky/ Source4: %{name}-storky.tar.gz # Source4-md5: e293fbe4a60004056f6894463b874ae8 Source5: %{name}-autologin.pamd Patch0: %{name}-xdmcp.patch Patch1: %{name}-conf.patch Patch2: %{name}-xsession.patch Patch3: %{name}-desktop.patch Patch4: %{name}-defaults.patch URL: http://www.gnome.org/projects/gdm/ BuildRequires: ConsoleKit-devel BuildRequires: attr-devel BuildRequires: autoconf >= 2.52 BuildRequires: automake BuildRequires: dbus-glib-devel >= 0.73 BuildRequires: gettext-devel BuildRequires: gnome-doc-utils BuildRequires: gtk+2-devel >= 2:2.12.0 BuildRequires: intltool >= 0.36.1 BuildRequires: libart_lgpl-devel >= 2.3.19 BuildRequires: libglade2-devel >= 1:2.6.2 BuildRequires: libgnomeui-devel >= 2.20.0 BuildRequires: libgsf-devel >= 1.14.6 BuildRequires: librsvg-devel >= 1:2.18.1 %{?with_selinux:BuildRequires: libselinux-devel} BuildRequires: libtool BuildRequires: libxml2-devel >= 1:2.6.29 BuildRequires: pam-devel BuildRequires: perl-modules BuildRequires: rpmbuild(find_lang) >= 1.23 BuildRequires: rpmbuild(macros) >= 1.311 BuildRequires: scrollkeeper BuildRequires: sed >= 4.0 BuildRequires: xorg-lib-libXdmcp-devel BuildRequires: xorg-lib-libXi-devel BuildRequires: xorg-lib-libXinerama-devel BuildRequires: xorg-lib-libdmx-devel Requires(post,postun): gtk+2 Requires(post,postun): hicolor-icon-theme Requires(post,postun): /usr/bin/scrollkeeper-update Requires(postun): /usr/sbin/groupdel Requires(postun): /usr/sbin/userdel Requires(pre): /bin/id Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd Requires: libgnomeui >= 2.20.0 Requires: pam >= 0.99.7.1 Requires: which Requires: xorg-app-xmodmap Requires: xorg-app-sessreg Provides: XDM Provides: group(xdm) Provides: user(xdm) Conflicts: gdkxft # sr@Latn vs. sr@latin Conflicts: glibc-misc < 6:2.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _localstatedir /var/lib %description Gdm (the GNOME Display Manager) is a highly configurable reimplementation of xdm, the X Display Manager. Gdm allows you to log into your system with the X Window System running and supports running several different X sessions on your local machine at the same time. %description -l es.UTF-8 Administrador de Entrada del GNOME. %description -l ja.UTF-8 Gdm (the GNOME Display Manager) は、高度に設定可能な xdm X Display Manager の再実装版です。 Gdm を使うと、 X Window System が動いているあなたの システムにいろいろなセッションを選択してログインすることができます。 このバージョンの Gdm では、各種言語や、XIM を選択することも可能です。 %description -l pl.UTF-8 Gdm jest wysokokonfigurowalną reimplementacją xdma. Gdm pozwala logować się do systemu z poziomu X11 i wspiera jednoczesną pracę kilku różnych sesji X na lokalnej maszynie. %description -l pt_BR.UTF-8 Gerenciador de Entrada do GNOME. %description -l ru.UTF-8 GDM (GNOME Display Manager) - это реимплементация xdm (X Display Manager). GDM позволяет вам входить в систему, на которой запущено X Window и поддерживает работу нескольуих разных X сеансов одновременно. %description -l uk.UTF-8 GDM (GNOME Display Manager) - це реімплементація xdm (X Display Manager). GDM дозволяє вам входити в систему, на якій запущено X Window та підтримує роботу кількох різних X сеансів одночасно. %package Xnest Summary: Xnest (ie embedded X) server for GDM Summary(pl.UTF-8): Serwer Xnest dla GDM Group: X11/Applications Requires: %{name} = %{epoch}:%{version}-%{release} Requires: xorg-xserver-Xnest %description Xnest This package add support for Xnest server in gdm. %description Xnest -l pl.UTF-8 Ten pakiet dodaje do gdm wsparcie dla Xnest. %package init Summary: Init script for GDM Summary(pl.UTF-8): Skrypt init dla GDM-a Group: X11/Applications Requires(post,preun): /sbin/chkconfig Requires: %{name} = %{epoch}:%{version}-%{release} Requires: open %description init Init script for GDM. %description init -l pl.UTF-8 Skrypt init dla GDM-a. %prep %setup -q -a4 %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS mv po/sr@{Latn,latin}.po %build %{__libtoolize} %{__glib_gettextize} %{__intltoolize} %{__aclocal} %{__autoconf} %{__automake} %configure \ --disable-console-helper \ --disable-scrollkeeper \ --with-console-kit \ --enable-authentication-scheme=pam \ --with-pam-prefix=/etc \ --with-tcp-wrappers=yes \ --with%{!?with_selinux:out}-selinux \ --with-xdmcp=yes \ --with-xinerama=yes %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ PAM_PREFIX=/etc mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \ $RPM_BUILD_ROOT%{_datadir}/xsessions install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/ touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm %find_lang %{name} --with-gnome --with-omf --all-name # Remove useless files rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} # moved to gnome-session rm -f $RPM_BUILD_ROOT%{_datadir}/xsessions/gnome.desktop %clean rm -rf $RPM_BUILD_ROOT %pre %groupadd -g 55 -r -f xdm %useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm %post %scrollkeeper_update_post %update_icon_cache hicolor %postun %scrollkeeper_update_postun %update_icon_cache hicolor if [ "$1" = "0" ]; then %userremove xdm %groupremove xdm fi %triggerpostun -- %{name} < 1:2.13.0.8-1 if [ -f /etc/X11/gdm/gdm.conf-custom.rpmsave ]; then mv /etc/X11/gdm/gdm.conf-custom.rpmsave /etc/gdm/custom.conf fi %post init /sbin/chkconfig --add gdm if [ -f /var/lock/subsys/gdm ]; then echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 echo "WARNING: it will terminate all sessions opened from gdm!" >&2 else echo "Run \"/sbin/service gdm start\" to start gdm." >&2 fi %preun init if [ "$1" = "0" ]; then %service gdm stop /sbin/chkconfig --del gdm fi %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README TODO %attr(755,root,root) %{_bindir}/gdm-dmx-reconnect-proxy %attr(755,root,root) %{_bindir}/gdmdynamic %attr(755,root,root) %{_bindir}/gdmflexiserver %attr(755,root,root) %{_bindir}/gdmphotosetup %attr(755,root,root) %{_bindir}/gdmthemetester %attr(755,root,root) %{_libdir}/gdmaskpass %attr(755,root,root) %{_libdir}/gdmopen %attr(755,root,root) %{_libdir}/gdmtranslate %attr(755,root,root) %{_libdir}/gdmchooser %attr(755,root,root) %{_libdir}/gdmgreeter %attr(755,root,root) %{_libdir}/gdmlogin %attr(755,root,root) %{_sbindir}/* %dir %{_sysconfdir}/gdm %dir %{_sysconfdir}/gdm/modules %attr(755,root,root) %config %{_sysconfdir}/gdm/Init %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing %attr(755,root,root) %config %{_sysconfdir}/gdm/Xsession %config %{_sysconfdir}/gdm/PostLogin/Default.sample %config %{_sysconfdir}/gdm/locale.alias %config %{_sysconfdir}/gdm/modules/* %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/ %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gdm* %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.gdm %attr(1770,root,xdm) /var/lib/gdm %attr(750,xdm,xdm) /var/log/gdm %attr(750,xdm,xdm) /home/services/xdm %{_pixmapsdir}/* %{_datadir}/gdm #%%{_datadir}/xsessions - moved to gnome-session %{_datadir}/xsessions/default.desktop %{_iconsdir}/hicolor/*/apps/*.png %{_iconsdir}/hicolor/*/apps/*.svg %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so %{_mandir}/man1/gdm* %files Xnest %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/gdmXnest %attr(755,root,root) %{_bindir}/gdmXnestchooser %files init %defattr(644,root,root,755) %attr(754,root,root) /etc/rc.d/init.d/gdm