2012-04-14 09:34:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package xinit
|
|
|
|
#
|
2021-04-21 09:28:58 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-04-14 09:34:16 +00: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.
|
|
|
|
|
2020-03-24 11:42:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-04-14 09:34:16 +00:00
|
|
|
#
|
|
|
|
|
2012-07-02 10:21:14 +00:00
|
|
|
|
2020-09-08 23:24:28 +00:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2020-09-08 11:43:12 +00:00
|
|
|
%define UsrEtcMove 1
|
2020-09-08 23:24:28 +00:00
|
|
|
%endif
|
2012-04-14 09:34:16 +00:00
|
|
|
Name: xinit
|
2019-03-04 10:51:10 +00:00
|
|
|
Version: 1.4.1
|
2012-07-02 10:21:14 +00:00
|
|
|
Release: 0
|
2012-04-14 09:34:16 +00:00
|
|
|
Summary: X Window System initializer
|
2012-07-02 10:21:14 +00:00
|
|
|
License: MIT
|
2012-04-14 09:34:16 +00:00
|
|
|
Group: System/X11/Utilities
|
2021-04-21 09:28:58 +00:00
|
|
|
URL: https://xorg.freedesktop.org/
|
|
|
|
Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
|
2012-04-14 09:34:16 +00:00
|
|
|
Source1: xinit.tar.bz2
|
|
|
|
Source2: keygen.c
|
|
|
|
Source3: keygen.1
|
|
|
|
Patch0: xinit.diff
|
|
|
|
Patch1: xinit-client-session.patch
|
2015-01-21 09:42:12 +00:00
|
|
|
Patch2: xinit-suse.patch
|
|
|
|
Patch3: xinit-tolerant-hostname-changes.patch
|
2018-09-15 13:47:21 +00:00
|
|
|
Patch4: xinit-nolonger-unset-dbus-session.patch
|
2020-09-05 02:52:20 +00:00
|
|
|
Patch5: xinit-tarball.patch
|
2012-04-14 09:34:16 +00:00
|
|
|
# needed for patch0
|
2015-01-23 17:10:02 +00:00
|
|
|
BuildRequires: gcc-c++
|
2012-04-14 09:34:16 +00:00
|
|
|
BuildRequires: libtool
|
2021-04-21 09:28:58 +00:00
|
|
|
BuildRequires: pkgconfig
|
2012-04-14 09:34:16 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.8
|
2013-09-13 10:23:02 +00:00
|
|
|
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
2012-04-14 09:34:16 +00:00
|
|
|
Requires: setxkbmap
|
|
|
|
Requires: xauth
|
|
|
|
Requires: xmodmap
|
|
|
|
Requires: xrdb
|
|
|
|
Requires: xsetroot
|
2021-04-21 09:28:58 +00:00
|
|
|
# This was part of the xorg-x11 package up to version 7.6
|
|
|
|
Conflicts: xorg-x11 <= 7.6
|
2014-12-18 10:40:53 +00:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
Requires: xterm-bin
|
|
|
|
%else
|
2012-04-14 09:34:16 +00:00
|
|
|
Requires: xterm
|
2014-12-18 10:40:53 +00:00
|
|
|
%endif
|
2012-04-14 09:34:16 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The xinit program is used to start the X Window System server and a
|
|
|
|
first client program on systems that are not using a display manager
|
|
|
|
such as xdm or in environments that use multiple window systems.
|
|
|
|
When this first client exits, xinit will kill the X server and then
|
|
|
|
terminate.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2020-09-08 23:24:28 +00:00
|
|
|
%if 0%{?UsrEtcMove}
|
2021-04-21 09:28:58 +00:00
|
|
|
sed -i 's+%{_sysconfdir}/X11+%{_libexecdir}+' %{PATCH0}
|
2020-09-05 02:52:20 +00:00
|
|
|
%endif
|
2021-04-21 09:28:58 +00:00
|
|
|
%patch0
|
2012-04-14 09:34:16 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2018-09-15 13:47:21 +00:00
|
|
|
%patch4 -p1
|
2020-09-05 02:55:31 +00:00
|
|
|
### patch is applied later in %install section
|
2020-09-05 02:53:53 +00:00
|
|
|
#%patch5 -p0
|
2012-04-14 09:34:16 +00:00
|
|
|
# needed for patch0
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
%build
|
2020-09-08 23:24:28 +00:00
|
|
|
%if 0%{?UsrEtcMove}
|
2020-09-08 11:43:12 +00:00
|
|
|
%configure --with-xinitdir=%{_libexecdir}/xinit
|
|
|
|
%else
|
2012-04-14 09:34:16 +00:00
|
|
|
%configure
|
2020-09-08 11:43:12 +00:00
|
|
|
%endif
|
2021-04-21 09:28:58 +00:00
|
|
|
%make_build
|
|
|
|
gcc %{optflags} -o keygen %{SOURCE2}
|
2012-04-14 09:34:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
install -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1
|
|
|
|
install -m 0711 keygen %{buildroot}%{_bindir}/keygen
|
|
|
|
pushd %{buildroot}
|
|
|
|
tar xf %{SOURCE1}
|
2020-09-08 23:24:28 +00:00
|
|
|
%if 0%{?UsrEtcMove}
|
2020-09-05 02:52:20 +00:00
|
|
|
patch -p0 < %{PATCH5}
|
2020-09-08 11:43:12 +00:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/xinit
|
|
|
|
mv etc/X11/xinit/{xinitrc,xserverrc} %{buildroot}%{_libexecdir}/xinit
|
2021-04-21 09:28:58 +00:00
|
|
|
mkdir -p usr%{_sysconfdir}/X11/xinit/xinitrc.d
|
|
|
|
mv etc/X11/Xresources usr%{_sysconfdir}/X11
|
|
|
|
mv etc/X11/xinit/xinitrc.common usr%{_sysconfdir}/X11/xinit
|
2020-10-06 09:28:49 +00:00
|
|
|
# Compatibility symlink for user xinitrc files
|
2021-04-21 09:28:58 +00:00
|
|
|
ln -s %{_prefix}%{_sysconfdir}/X11/xinit/xinitrc.common etc/X11/xinit/xinitrc.common
|
2020-10-06 09:28:49 +00:00
|
|
|
rmdir etc/X11/xinit/xinitrc.d
|
2020-09-05 02:52:20 +00:00
|
|
|
%endif
|
2012-04-14 09:34:16 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
2021-04-21 09:28:58 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README.md
|
2020-09-08 23:24:28 +00:00
|
|
|
%if 0%{?UsrEtcMove}
|
2020-09-05 02:52:20 +00:00
|
|
|
%dir %{_distconfdir}/X11
|
|
|
|
%{_distconfdir}/X11/xinit/
|
|
|
|
%{_distconfdir}/X11/Xresources
|
2020-09-08 11:43:12 +00:00
|
|
|
%dir %{_libexecdir}/xinit
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/xinit/xinitrc
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/xinit/xserverrc
|
2020-10-06 09:28:49 +00:00
|
|
|
%dir %{_sysconfdir}/X11/xinit/
|
|
|
|
%config %{_sysconfdir}/X11/xinit/xinitrc.common
|
2020-09-05 02:52:20 +00:00
|
|
|
%else
|
2012-04-14 09:34:16 +00:00
|
|
|
%config %{_sysconfdir}/X11/xinit/
|
2012-04-15 17:49:48 +00:00
|
|
|
%config %{_sysconfdir}/X11/Xresources
|
2020-09-05 02:52:20 +00:00
|
|
|
%endif
|
2012-04-14 09:34:16 +00:00
|
|
|
%{_bindir}/keygen
|
|
|
|
%{_bindir}/startx
|
|
|
|
%{_bindir}/xinit
|
|
|
|
%{_mandir}/man1/keygen.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/startx.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/xinit.1%{?ext_man}
|
|
|
|
|
|
|
|
%changelog
|