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