ALT Linux repositórios
Group :: Sistema/X11
RPM: xdm
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define xorg xorg-x11
%define xf86 XFree86
%define branch_point alt0
%define branch M40
%define revision 1
%define sisyphus_release alt1
%def_disable static
%def_disable ipv6
Name: xdm
Version: 1.1.8
Release: %branch_point.%branch.%revision
Serial: 2
Summary: X Display Manager with support for XDMCP, host chooser
License: MIT/X11
Group: System/X11
Url: http://xorg.freedesktop.org
Packager: Valery Inozemtsev <shrek at altlinux.ru>
Source: %name-%version.tar
Patch: %name-%version-%sisyphus_release.patch
Obsoletes: %xf86-%name %xorg-%name < %serial:%version-%release
Provides: %xf86-%name = 4.4 %xorg-%name = %serial:%version-%release
BuildRequires: libICE-devel libSM-devel libX11-devel libXau-devel libXaw-devel libXdmcp-devel libXext-devel
BuildRequires: libXft-devel libXinerama-devel libXmu-devel libXpm-devel libXt-devel libpam-devel pkg-config
BuildRequires: xorg-x11-proto-devel xorg-x11-xtrans-devel xorg-x11-util-macros libdbus-devel
%description
Xdm manages a collection of X displays, which may be on the local host
or remote servers. The design of xdm was guided by the needs of X ter-
minals as well as The Open Group standard XDMCP, the X Display Manager
Control Protocol. Xdm provides services similar to those provided by
init, getty and login on character terminals: prompting for login name
and password, authenticating the user, and running a ``session.''
%prep
%setup -q
%patch -p1
subst 's| at DESTDIR at ||' Makefile.am
%build
%__autoreconf
%configure \
%{subst_enable ipv6} \
--disable-xprint \
--with-xdmlibdir=%_libdir/X11/xdm \
--with-xdmconfigdir=%_sysconfdir/X11/xdm \
--with-xdmscriptdir=%_sysconfdir/X11/xdm \
--with-pixmapdir=%_datadir/X11/xdm/pixmaps \
--with-xft \
--with-consolekit \
%{subst_enable static}
%make_build
%install
%make DESTDIR=%buildroot install
install -pD -m644 xdm.pamd %buildroot%_sysconfdir/pam.d/xdm
# explicitly create X authdir
mkdir -p %buildroot%_localstatedir/xdm
ln -s -f ../../..%_localstatedir/xdm %buildroot%_sysconfdir/X11/xdm/authdir
mkdir -p %buildroot%_sysconfdir/logrotate.d
cat << EOF > %buildroot%_sysconfdir/logrotate.d/xdm
%_logdir/xdm-error.log {
notifempty
missingok
nocompress
}
EOF
%files
%_sysconfdir/X11/app-defaults/*
%dir %_sysconfdir/X11/xdm
%_sysconfdir/X11/xdm/authdir
%_sysconfdir/logrotate.d/xdm
%_sysconfdir/pam.d/xdm
%_bindir/*
%dir %_libdir/X11/xdm
%_libdir/X11/xdm/chooser
%_libdir/X11/xdm/lib*.so
%_datadir/X11/xdm
%dir %attr(0700,root,root) %_localstatedir/xdm
%_man1dir/*
%changelog
…
Todas as alterações você pod ver aqui
%define xf86 XFree86
%define branch_point alt0
%define branch M40
%define revision 1
%define sisyphus_release alt1
%def_disable static
%def_disable ipv6
Name: xdm
Version: 1.1.8
Release: %branch_point.%branch.%revision
Serial: 2
Summary: X Display Manager with support for XDMCP, host chooser
License: MIT/X11
Group: System/X11
Url: http://xorg.freedesktop.org
Packager: Valery Inozemtsev <shrek at altlinux.ru>
Source: %name-%version.tar
Patch: %name-%version-%sisyphus_release.patch
Obsoletes: %xf86-%name %xorg-%name < %serial:%version-%release
Provides: %xf86-%name = 4.4 %xorg-%name = %serial:%version-%release
BuildRequires: libICE-devel libSM-devel libX11-devel libXau-devel libXaw-devel libXdmcp-devel libXext-devel
BuildRequires: libXft-devel libXinerama-devel libXmu-devel libXpm-devel libXt-devel libpam-devel pkg-config
BuildRequires: xorg-x11-proto-devel xorg-x11-xtrans-devel xorg-x11-util-macros libdbus-devel
%description
Xdm manages a collection of X displays, which may be on the local host
or remote servers. The design of xdm was guided by the needs of X ter-
minals as well as The Open Group standard XDMCP, the X Display Manager
Control Protocol. Xdm provides services similar to those provided by
init, getty and login on character terminals: prompting for login name
and password, authenticating the user, and running a ``session.''
%prep
%setup -q
%patch -p1
subst 's| at DESTDIR at ||' Makefile.am
%build
%__autoreconf
%configure \
%{subst_enable ipv6} \
--disable-xprint \
--with-xdmlibdir=%_libdir/X11/xdm \
--with-xdmconfigdir=%_sysconfdir/X11/xdm \
--with-xdmscriptdir=%_sysconfdir/X11/xdm \
--with-pixmapdir=%_datadir/X11/xdm/pixmaps \
--with-xft \
--with-consolekit \
%{subst_enable static}
%make_build
%install
%make DESTDIR=%buildroot install
install -pD -m644 xdm.pamd %buildroot%_sysconfdir/pam.d/xdm
# explicitly create X authdir
mkdir -p %buildroot%_localstatedir/xdm
ln -s -f ../../..%_localstatedir/xdm %buildroot%_sysconfdir/X11/xdm/authdir
mkdir -p %buildroot%_sysconfdir/logrotate.d
cat << EOF > %buildroot%_sysconfdir/logrotate.d/xdm
%_logdir/xdm-error.log {
notifempty
missingok
nocompress
}
EOF
%files
%_sysconfdir/X11/app-defaults/*
%dir %_sysconfdir/X11/xdm
%_sysconfdir/X11/xdm/authdir
%_sysconfdir/logrotate.d/xdm
%_sysconfdir/pam.d/xdm
%_bindir/*
%dir %_libdir/X11/xdm
%_libdir/X11/xdm/chooser
%_libdir/X11/xdm/lib*.so
%_datadir/X11/xdm
%dir %attr(0700,root,root) %_localstatedir/xdm
%_man1dir/*
%changelog
…
Todas as alterações você pod ver aqui