X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gdm2.20.spec;h=2653beea64bad935f5ab803a9317ea98f9db49ca;hb=552f5cc289722c03b10fd6d7683d465047ed788b;hp=f546f933e0e1fad6429ead2ae8d6f4ac953c92cf;hpb=044dbf2fa6581183eb7dba1c7c7963285591236c;p=packages%2Fgdm2.20.git diff --git a/gdm2.20.spec b/gdm2.20.spec index f546f93..2653bee 100644 --- a/gdm2.20.spec +++ b/gdm2.20.spec @@ -1,6 +1,6 @@ +# # TODO: -# /etc/X11/dm dir should belong to XFree? It is common for KDE and GNOME -# s=/dev/null=/home/services/xdm= in %%trigger for gracefull upgrade from xdm/kdm/gdm 2.2 +# 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: @@ -14,13 +14,13 @@ Summary(pt_BR): Gerenciador de Entrada do GNOME Summary(ru): äÉÓÐÌÅÊÎÙÊ ÍÅÎÅÄÖÅÒ GNOME Summary(uk): äÉÓÐÌÅÊÎÉÊ ÍÅÎÅÄÖÅÒ GNOME Name: gdm -Version: 2.6.0.9 +Version: 2.16.1 Release: 1 Epoch: 1 License: GPL/LGPL Group: X11/Applications -Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.6/%{name}-%{version}.tar.bz2 -# Source0-md5: d845fe205412bb101d4c66d1e88a317d +Source0: http://ftp.gnome.org/pub/GNOME/sources/gdm/2.16/%{name}-%{version}.tar.bz2 +# Source0-md5: a0bf247fdaf32add6d5a69495a433bbf Source1: %{name}.pamd Source2: %{name}.init Source3: %{name}-pld-logo.png @@ -32,38 +32,39 @@ Patch0: %{name}-xdmcp.patch Patch1: %{name}-conf.patch Patch2: %{name}-xsession.patch Patch3: %{name}-logdir.patch -Patch4: %{name}-default_theme.patch -Patch5: %{name}-desktop.patch -patch6: %{name}-vt_9.patch +Patch4: %{name}-desktop.patch +Patch5: %{name}-xorg.patch URL: http://www.jirka.org/gdm.html BuildRequires: attr-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-devel -BuildRequires: gtk+2-devel >= 2:2.4.3 -BuildRequires: intltool >= 0.30 -BuildRequires: libglade2-devel >= 1:2.4.1 -BuildRequires: libgnome-devel >= 2.6.1 -BuildRequires: libgnomecanvas-devel >= 2.6.1 -BuildRequires: libgnomeui-devel >= 2.10.0-2 -BuildRequires: libgsf-devel >= 1.9.0 -BuildRequires: librsvg-devel >= 1:2.6.5 +BuildRequires: gtk+2-devel >= 2:2.10.5 +BuildRequires: intltool >= 0.35 +BuildRequires: libglade2-devel >= 1:2.6.0 +BuildRequires: libgnomeui-devel >= 2.16.0 +BuildRequires: libgsf-devel >= 1.14.2 +BuildRequires: librsvg-devel >= 1:2.16.0 %{?with_selinux:BuildRequires: libselinux-devel} BuildRequires: libtool -BuildRequires: libxml2-devel >= 2.5.11 +BuildRequires: libxml2-devel >= 1:2.6.26 BuildRequires: pam-devel BuildRequires: perl-modules -BuildRequires: rpmbuild(macros) >= 1.202 +BuildRequires: rpmbuild(macros) >= 1.268 +BuildRequires: xorg-lib-libXdmcp-devel +BuildRequires: xorg-lib-libXi-devel +BuildRequires: xorg-lib-libXinerama-devel +BuildRequires: xorg-lib-libdmx-devel +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(postun): /usr/sbin/groupdel -Requires(postun): /usr/sbin/userdel -Requires(post,postun): /usr/bin/scrollkeeper-update -Requires: libgnome >= 2.6.1 -Requires: sessreg +Requires: libgnomeui >= 2.16.0 +Requires: pam >= 0.79.0 Requires: which -Requires: pam >= 0.77.3-7 +Requires: xorg-app-sessreg Provides: group(xdm) Provides: user(xdm) Obsoletes: X11-xdm @@ -74,7 +75,6 @@ Obsoletes: xdm Conflicts: gdkxft BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _sysconfdir /etc/X11 %define _localstatedir /var/lib %description @@ -117,7 +117,7 @@ Summary: Xnest (ie embedded X) server for GDM Summary(pl): Serwer Xnest dla GDM Group: X11/Applications Requires: %{name} = %{epoch}:%{version}-%{release} -Requires: XFree86-Xnest +Requires: xorg-xserver-Xnest %description Xnest This package add support for Xnest server in gdm. @@ -129,9 +129,9 @@ Ten pakiet dodaje do gdm wsparcie dla Xnest. Summary: Init script for GDM Summary(pl): Skrypt init dla GDM-a Group: X11/Applications +Requires(post,preun): /sbin/chkconfig Requires: %{name} = %{epoch}:%{version}-%{release} Requires: open -Requires(post,preun): /sbin/chkconfig %description init Init script for GDM. @@ -147,7 +147,6 @@ Skrypt init dla GDM-a. %patch3 -p1 %patch4 -p1 %patch5 -p1 -%patch6 -p1 %build %{__libtoolize} @@ -157,13 +156,14 @@ Skrypt init dla GDM-a. %{__autoconf} %{__automake} %configure \ - --with-xinerama=yes \ - --with-xdmcp=yes \ + --disable-console-helper \ + --disable-scrollkeeper \ + --enable-authentication-scheme=pam \ --with-pam-prefix=/etc \ --with-tcp-wrappers=yes \ - --enable-authentication-scheme=pam \ - --disable-console-helper \ - --with%{!?with_selinux:out}-selinux + --with%{!?with_selinux:out}-selinux \ + --with-xdmcp=yes \ + --with-xinerama=yes %{__make} @@ -177,7 +177,8 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ DESTDIR=$RPM_BUILD_ROOT \ PAM_PREFIX=/etc -mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop $RPM_BUILD_ROOT%{_datadir}/xsessions +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 @@ -189,7 +190,7 @@ install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/ touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm -rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/si %find_lang %{name} --all-name --with-gnome @@ -204,7 +205,7 @@ 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 +%useradd -u 55 -r -d /home/services/xdm -s /bin/false -c "X Display Manager" -g xdm xdm %post %scrollkeeper_update_post @@ -216,37 +217,40 @@ if [ "$1" = "0" ]; then %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 \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2 + echo "Run \"/sbin/service gdm restart\" to restart gdm." >&2 + echo "WARNING: it will terminate all sessions opened from gdm!" >&2 else - echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2 + echo "Run \"/sbin/service gdm start\" to start gdm." >&2 fi %preun init if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/gdm ]; then - /etc/rc.d/init.d/gdm stop >&2 - fi + %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 -%attr(755,root,root) %{_bindir}/gdm-binary -%attr(755,root,root) %{_bindir}/gdmchooser +%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}/gdmgreeter -%attr(755,root,root) %{_bindir}/gdmlogin %attr(755,root,root) %{_bindir}/gdmphotosetup -%attr(755,root,root) %{_bindir}/gdmsetup %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 @@ -255,12 +259,12 @@ fi %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/factory-gdm.conf %config %{_sysconfdir}/gdm/PostLogin/Default.sample +%config %{_sysconfdir}/gdm/locale.alias %config %{_sysconfdir}/gdm/modules/* -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdm/gdm.conf -%config %{_sysconfdir}/gdm/locale.alias +%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(750,xdm,xdm) /var/lib/gdm @@ -269,7 +273,7 @@ fi %{_pixmapsdir}/* %{_desktopdir}/gdmsetup.desktop %{_desktopdir}/gdmflexiserver.desktop -%{_datadir}/gnome/capplets/* +%{_desktopdir}/gdmphotosetup.desktop %{_datadir}/gdm #%%{_datadir}/xsessions - moved to gnome-session %{_datadir}/xsessions/default.desktop @@ -280,6 +284,7 @@ fi %files Xnest %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/gdmXnest %attr(755,root,root) %{_bindir}/gdmXnestchooser %{_desktopdir}/gdmflexiserver-xnest.desktop