2012-04-14 11:33:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package xdm
|
|
|
|
#
|
2016-02-17 10:08:17 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-04-14 11:33:31 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-12-07 12:11:28 +01:00
|
|
|
|
2014-04-28 04:12:11 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
2012-11-29 10:46:56 +01:00
|
|
|
%define with_systemd 1
|
|
|
|
%else
|
|
|
|
%define with_systemd 0
|
|
|
|
%endif
|
2012-05-10 16:12:30 +02:00
|
|
|
|
2012-04-14 11:33:31 +02:00
|
|
|
%define _dminitdir %{_libexecdir}/X11/displaymanagers
|
|
|
|
|
2012-08-17 15:33:23 +02:00
|
|
|
%if 0%{?suse_version} < 01210
|
|
|
|
%define dm_fallbacks 1
|
|
|
|
%else
|
|
|
|
%define dm_fallbacks 0
|
|
|
|
%endif
|
|
|
|
|
2012-04-14 11:33:31 +02:00
|
|
|
Name: xdm
|
2014-07-18 15:53:08 +02:00
|
|
|
Version: 1.1.11
|
2012-04-14 11:33:31 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: X Display Manager
|
2012-06-29 16:13:08 +02:00
|
|
|
License: MIT
|
2012-04-14 11:33:31 +02:00
|
|
|
Group: System/X11/Utilities
|
2012-06-29 16:13:08 +02:00
|
|
|
Url: http://xorg.freedesktop.org/
|
2012-04-14 11:33:31 +02:00
|
|
|
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: xdm.tar.bz2
|
|
|
|
Source2: HOWTO.xdm
|
2012-08-17 15:33:23 +02:00
|
|
|
Source3: xdm-fallbacks.tar.bz2
|
2014-03-21 14:19:15 +01:00
|
|
|
Source4: display-manager.service
|
2012-11-29 10:46:56 +01:00
|
|
|
%if !%with_systemd
|
2012-04-14 11:33:31 +02:00
|
|
|
Patch0: xdm-consolekit.diff
|
2012-11-29 10:46:56 +01:00
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
Patch1: xdm-tolerant-hostname-changes.diff
|
2014-03-21 14:19:15 +01:00
|
|
|
%if 0%{?suse_version} >= 01140 && 0%{?suse_version} < 1320
|
2012-04-14 11:33:31 +02:00
|
|
|
# Needed to create the man page symlink to init.d
|
|
|
|
BuildRequires: aaa_base-extras
|
|
|
|
%endif
|
|
|
|
# needed for patch0, patch2, patch3, patch4
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xau)
|
|
|
|
BuildRequires: pkgconfig(xaw7)
|
|
|
|
BuildRequires: pkgconfig(xdmcp)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xft)
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
BuildRequires: pkgconfig(xmu)
|
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.4
|
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
2012-09-13 10:46:15 +02:00
|
|
|
BuildRequires: pkgconfig(xtrans)
|
2012-11-29 10:46:56 +01:00
|
|
|
%if !%with_systemd
|
|
|
|
BuildRequires: ConsoleKit-devel
|
2012-04-14 11:33:31 +02:00
|
|
|
Requires: ConsoleKit
|
2014-03-21 14:19:15 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%{?systemd_requires}
|
2012-11-29 10:46:56 +01:00
|
|
|
%endif
|
2014-02-05 01:16:26 +01:00
|
|
|
Requires: /sbin/pidof
|
2012-04-14 11:33:31 +02:00
|
|
|
Requires: logrotate
|
|
|
|
Requires: sessreg
|
2015-07-29 15:01:12 +02:00
|
|
|
Requires: xconsole
|
|
|
|
Requires: xli
|
|
|
|
Requires: xmessage
|
2012-04-14 11:33:31 +02:00
|
|
|
Requires: xrdb
|
2015-07-29 15:01:12 +02:00
|
|
|
Requires: xset
|
|
|
|
Requires: xsetroot
|
2014-12-18 11:40:34 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
Requires: xterm-bin
|
|
|
|
%else
|
2012-04-14 11:33:31 +02:00
|
|
|
Requires: xterm
|
2014-12-18 11:40:34 +01:00
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
Recommends: dbus-1-x11
|
|
|
|
# This was part of the xorg-x11 package up to version 7.6
|
|
|
|
Conflicts: xorg-x11 <= 7.6
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2014-03-21 14:19:15 +01:00
|
|
|
%if !%with_systemd
|
|
|
|
%define _unitdir /usr/lib/systemd/system
|
|
|
|
%endif
|
|
|
|
|
2012-04-14 11:33:31 +02:00
|
|
|
%description
|
|
|
|
Xdm manages a collection of X displays, which may be on the local host
|
|
|
|
or remote servers.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
cp %{SOURCE2} .
|
2012-11-29 10:46:56 +01:00
|
|
|
%if !%with_systemd
|
2012-04-14 11:33:31 +02:00
|
|
|
%patch0 -p1
|
2012-11-29 10:46:56 +01:00
|
|
|
%endif
|
2014-07-18 15:53:08 +02:00
|
|
|
pushd xdm
|
2012-04-14 11:33:31 +02:00
|
|
|
%patch1 -p1
|
2014-07-18 15:53:08 +02:00
|
|
|
popd
|
2012-04-14 11:33:31 +02:00
|
|
|
|
|
|
|
%build
|
2014-07-18 15:53:08 +02:00
|
|
|
# needed for patch0
|
|
|
|
autoreconf -fi
|
2012-04-14 11:33:31 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pam \
|
|
|
|
--with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
|
|
|
|
--with-xdmscriptdir=%{_sysconfdir}/X11/xdm
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
# Not used anymore by SuSE
|
|
|
|
rm %{buildroot}%{_sysconfdir}/X11/xdm/{GiveConsole,TakeConsole,Xsetup_0}
|
|
|
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
# SuSE default XDM configuration
|
|
|
|
tar xf %{SOURCE1}
|
2012-08-17 15:33:23 +02:00
|
|
|
%if %dm_fallbacks
|
|
|
|
tar xf %{SOURCE3}
|
|
|
|
%endif
|
2015-03-17 15:17:30 +01:00
|
|
|
%ifarch s390 s390x
|
2012-04-14 11:33:31 +02:00
|
|
|
sed -i -e "s+DISPLAYMANAGER_REMOTE_ACCESS=.*+DISPLAYMANAGER_REMOTE_ACCESS=\"yes\"+g" \
|
2014-03-24 13:02:44 +01:00
|
|
|
-e "s+DISPLAYMANAGER_STARTS_XSERVER=.*+DISPLAYMANAGER_STARTS_XSERVER=\"no\"+g" \
|
2012-04-14 11:33:31 +02:00
|
|
|
var/adm/fillup-templates/sysconfig.displaymanager
|
|
|
|
%endif
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Correct location (FHS-2.1)
|
|
|
|
ln -s %{_localstatedir}/lib/xdm/authdir %{buildroot}%{_sysconfdir}/X11/xdm/authdir
|
|
|
|
# bnc#223734
|
|
|
|
rm %{buildroot}%{_libdir}/X11/xdm/libXdmGreet.la
|
|
|
|
# for FHS compliance (bnc#21857)
|
|
|
|
mv %{buildroot}%{_libdir}/X11/xdm/chooser %{buildroot}%{_bindir}
|
|
|
|
# fdo#35868 (closed INVALID, but because of above fix, we want it)
|
|
|
|
ln -s xdm.1%{?ext_man} %{buildroot}%{_mandir}/man1/chooser.1%{?ext_man}
|
2016-02-17 10:08:17 +01:00
|
|
|
%if 0%{?suse_version} < 1315
|
2012-04-14 11:33:31 +02:00
|
|
|
# missing manual page
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man8
|
|
|
|
ln -s ../man7/init.d.7%{?ext_man} %{buildroot}%{_mandir}/man8/rcxdm.8%{?ext_man}
|
2014-03-21 14:19:15 +01:00
|
|
|
ln -sf %{_sysconfdir}/init.d/xdm %{buildroot}%{_sbindir}/rcxdm
|
|
|
|
%else
|
|
|
|
rm -f %{buildroot}%{_sbindir}/rcxdm
|
2016-02-17 10:08:17 +01:00
|
|
|
%__install -D %{S:4} -m 0444 %{buildroot}%{_unitdir}/display-manager.service
|
2014-03-21 14:19:15 +01:00
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcdisplay-manager
|
|
|
|
cat > %{buildroot}%{_sbindir}/rcxdm <<-'EOF'
|
|
|
|
#!/bin/bash
|
|
|
|
exec -a rcdisplay-manager %{_sbindir}/rcdisplay-manager ${1+"$@"}
|
|
|
|
EOF
|
|
|
|
chmod 0755 %{buildroot}%{_sbindir}/rcxdm
|
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
|
|
|
|
%post
|
2016-02-17 10:08:17 +01:00
|
|
|
%if 0%{?suse_version} < 1315
|
2012-04-14 11:33:31 +02:00
|
|
|
%{fillup_and_insserv -Y xdm}
|
2014-03-21 14:19:15 +01:00
|
|
|
%else
|
|
|
|
%service_add_post display-manager.service
|
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
%{fillup_only -n displaymanager}
|
|
|
|
|
2014-05-23 16:11:09 +02:00
|
|
|
%pre
|
2016-02-17 10:08:17 +01:00
|
|
|
%if !0%{?suse_version} < 1315
|
2014-05-23 16:11:09 +02:00
|
|
|
%service_add_pre display-manager.service
|
|
|
|
%endif
|
|
|
|
|
2012-04-14 11:33:31 +02:00
|
|
|
%postun
|
2016-02-17 10:08:17 +01:00
|
|
|
%if 0%{?suse_version} < 1315
|
2012-04-14 11:33:31 +02:00
|
|
|
%{insserv_cleanup}
|
2014-03-21 14:19:15 +01:00
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
|
2014-05-23 16:11:09 +02:00
|
|
|
%preun
|
2016-02-17 10:08:17 +01:00
|
|
|
%if !0%{?suse_version} < 1315
|
2014-05-23 16:11:09 +02:00
|
|
|
%service_del_preun display-manager.service
|
|
|
|
%endif
|
|
|
|
|
2012-04-14 11:33:31 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING README
|
|
|
|
%doc HOWTO.xdm
|
|
|
|
%dir %{_dminitdir}
|
|
|
|
%{_dminitdir}/xdm
|
2012-08-17 15:33:23 +02:00
|
|
|
%if %dm_fallbacks
|
2012-04-14 11:33:31 +02:00
|
|
|
%{_dminitdir}/entrance.fallback
|
|
|
|
%{_dminitdir}/gdm.fallback
|
|
|
|
%{_dminitdir}/kdm.fallback
|
|
|
|
%{_dminitdir}/lxdm.fallback
|
|
|
|
%{_dminitdir}/slim.fallback
|
|
|
|
%{_dminitdir}/wdm.fallback
|
2012-08-17 15:33:23 +02:00
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
%config %{_sysconfdir}/X11/xdm/
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/xdmcp
|
2016-02-17 10:08:17 +01:00
|
|
|
%if 0%{?suse_version} < 1315
|
2012-04-14 11:33:31 +02:00
|
|
|
%{_sysconfdir}/init.d/xdm
|
2014-03-21 14:19:15 +01:00
|
|
|
%exclude %{_libexecdir}/X11/display-manager
|
|
|
|
%else
|
|
|
|
%exclude %{_sysconfdir}/init.d/xdm
|
|
|
|
%{_unitdir}/display-manager.service
|
|
|
|
%{_libexecdir}/X11/display-manager
|
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
%config %{_sysconfdir}/logrotate.d/xdm
|
|
|
|
%config %{_sysconfdir}/pam.d/xdm
|
|
|
|
%config %{_sysconfdir}/pam.d/xdm-np
|
|
|
|
%dir %{_localstatedir}/lib/xdm/
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.displaymanager
|
|
|
|
%{_localstatedir}/lib/xdm/authdir/
|
|
|
|
%ghost %{_localstatedir}/log/xdm.errors
|
|
|
|
%{_bindir}/chooser
|
|
|
|
%{_bindir}/xdm
|
|
|
|
%{_sbindir}/rcxdm
|
2016-02-17 10:08:17 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-03-21 14:19:15 +01:00
|
|
|
%{_sbindir}/rcdisplay-manager
|
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
%{_libdir}/X11/xdm/
|
|
|
|
%dir %{_datadir}/X11/app-defaults
|
|
|
|
%{_datadir}/X11/app-defaults/Chooser
|
|
|
|
%{_mandir}/man1/chooser.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/xdm.1%{?ext_man}
|
2016-02-17 10:08:17 +01:00
|
|
|
%if 0%{?suse_version} < 1315
|
2012-04-14 11:33:31 +02:00
|
|
|
%{_mandir}/man8/rcxdm.8%{?ext_man}
|
2014-03-21 14:19:15 +01:00
|
|
|
%endif
|
2012-04-14 11:33:31 +02:00
|
|
|
%ifnarch %ix86
|
|
|
|
%dir %{_libdir}/X11
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|