2 # - Source1 contains X11R6 paths and the scripts inside should be reviewed for
4 %bcond_without systemd # systemd
5 Summary: xdm - X Display Manager with support for XDMCP, host chooser
6 Summary(pl.UTF-8): XDM - zarządca ekranów z obsługą XDMCP i wybieraniem hostów
7 Summary(ru.UTF-8): Менеджер дисплея X
8 Summary(uk.UTF-8): Менеджер дисплею X
13 Group: X11/Applications
14 Source0: https://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.xz
15 # Source0-md5: 803b7b625c97ebf6742a770dd4392b43
16 Source1: ftp://ftp.pld-linux.org/software/xinit/xdm-xinitrc-0.2.tar.bz2
17 # Source1-md5: 0a15b1c374256b5cad7961807baa3896
20 Source4: xdm.sysconfig
21 Patch0: %{name}-Xsession.patch
22 Patch1: %{name}-pam_tty.patch
23 Patch2: %{name}-config.patch
24 Patch3: %{name}-consolekit.patch
25 URL: https://xorg.freedesktop.org/
26 BuildRequires: ConsoleKit-devel
27 BuildRequires: autoconf >= 2.60
28 BuildRequires: automake
30 BuildRequires: libbsd-devel
31 BuildRequires: libselinux-devel
32 BuildRequires: libtool >= 2:2
33 BuildRequires: pam-devel
34 BuildRequires: pkgconfig >= 1:0.19
35 BuildRequires: rpmbuild(macros) >= 1.627
36 BuildRequires: tar >= 1:1.22
37 BuildRequires: xorg-lib-libX11-devel
38 BuildRequires: xorg-lib-libXau-devel
39 BuildRequires: xorg-lib-libXaw-devel
40 BuildRequires: xorg-lib-libXdmcp-devel
41 BuildRequires: xorg-lib-libXext-devel
42 BuildRequires: xorg-lib-libXft-devel
43 BuildRequires: xorg-lib-libXinerama-devel
44 BuildRequires: xorg-lib-libXmu-devel
45 BuildRequires: xorg-lib-libXpm-devel
46 BuildRequires: xorg-lib-libXrender-devel
47 BuildRequires: xorg-lib-libXt-devel >= 1.0.0
48 BuildRequires: xorg-lib-xtrans-devel
49 BuildRequires: xorg-proto-xproto-devel >= 7.0.17
50 BuildRequires: xorg-util-util-macros >= 1.8
51 %{?with_systemd:BuildRequires: systemd-devel >= 1:209}
52 BuildRequires: systemd-units >= 38
54 Requires(post,preun): /sbin/chkconfig
56 Requires: pam >= 0.99.7.1
58 Requires: xorg-app-sessreg
59 Requires: xorg-app-xconsole
60 Requires: xorg-app-xrdb
61 Requires: xorg-app-xsetroot
62 Requires: xorg-lib-libXt >= 1.0.0
63 Requires(post,preun,postun): systemd-units >= 38
64 Requires: systemd-units >= 38
67 Provides: xdm = %{version}-%{release}
68 Obsoletes: X11-xdm < 1:7.0.0
69 Obsoletes: XFree86-xdm < 1:7.0.0
70 Obsoletes: xdm < 1:7.0.0
71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 Xdm manages a collection of X displays, which may be on the local host
75 or remote servers. The design of xdm was guided by the needs of X
76 terminals as well as the X Consortium standard XDMCP, the X Display
77 Manager Control Protocol.
79 %description -l pl.UTF-8
80 Xdm zarządza zestawem ekranów X, które mogą być lokalne lub na
81 zdalnych serwerach. Został zaprojektowany zgodnie z potrzebami X
82 terminali oraz standardem X Consortium XDMCP.
84 %description -l ru.UTF-8
87 %description -l uk.UTF-8
91 %setup -q -n xdm-%{version} -a1
104 DEF_SYSTEM_PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" \
105 DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \
108 --with-authdir=/var/lib/xdm \
109 --with-bw-pixmap=xdm-pld-logo-bw.xpm \
110 --with-color-pixmap=xdm-pld-logo.xpm \
112 --with-default-vt=vt9 \
113 --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \
115 --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
116 --with-xdmscriptdir=%{_sysconfdir}/X11/xdm
121 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT/var/lib/xdm \
123 $RPM_BUILD_ROOT%{systemdunitdir}
126 DESTDIR=$RPM_BUILD_ROOT \
127 appdefaultdir=%{_datadir}/X11/app-defaults
129 %{__rm} $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la
131 # set up PLD xdm config
132 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*}
133 install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps
134 install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm
136 install -Dp %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm
137 install -Dp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm
138 install -Dp %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm
139 ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/xdm.service
140 install -d $RPM_BUILD_ROOT/etc/security
141 :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm
144 rm -rf $RPM_BUILD_ROOT
147 /sbin/chkconfig --add xdm
148 # -n skips restarting as it would otherise terminate all sessions opened from xdm!
149 %service -n xdm restart
153 if [ "$1" = "0" ]; then
154 /sbin/chkconfig --del xdm
162 %defattr(644,root,root,755)
163 %doc AUTHORS COPYING ChangeLog README.md
164 %attr(755,root,root) %{_bindir}/xdm
165 %attr(755,root,root) %{_bindir}/xdmshell
166 %{_datadir}/X11/app-defaults/Chooser
167 %dir %{_libdir}/X11/xdm
168 %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so
169 %attr(755,root,root) %{_libdir}/X11/xdm/chooser
170 %dir %{_sysconfdir}/X11/xdm
172 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole
173 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole
174 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset
175 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession
176 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0
177 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup
178 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling
180 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess
181 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources
182 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers
183 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config
185 %{_sysconfdir}/X11/xdm/pixmaps
186 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm
187 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm
188 %attr(754,root,root) /etc/rc.d/init.d/xdm
189 %{systemdunitdir}/xdm.service
190 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm
192 %{_mandir}/man8/xdm.8*
193 %{_mandir}/man8/xdmshell.8*