2006-12-18 14:48:26 +00:00
#
2011-02-03 21:08:34 +00:00
# spec file for package xorg-x11-server
2006-12-18 14:48:26 +00:00
#
2020-02-27 14:10:05 +00:00
# Copyright (c) 2020 SUSE LLC
2006-12-18 14:48:26 +00:00
#
2008-08-05 23:59:36 +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.
2019-03-26 10:59:45 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2006-12-18 14:48:26 +00:00
#
2012-04-16 10:08:22 +00:00
2017-11-23 15:08:51 +00:00
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
2020-06-30 16:58:18 +00:00
%define pci_ids_dir %{_datadir}/X11/xorg_pci_ids
2016-01-10 19:01:24 +00:00
%if 0%{?suse_version} >= 1330 || 0%{?build_xwayland}
2015-07-27 14:24:15 +00:00
%define have_wayland 1
2017-07-14 13:55:03 +00:00
%endif
2016-04-12 15:37:50 +00:00
2016-04-12 09:35:45 +00:00
%define build_suid_wrapper 1
2020-09-30 01:44:07 +00:00
%if 0%{?build_suid_wrapper:1}
%ifarch s390 s390x
%define build_suid_wrapper 0
%else
%if 0%{?suse_version} >= 1550
%define suid_wrapper_dir %{_bindir}
%else
%define build_suid_wrapper 0
%endif
%endif
2016-04-12 15:37:50 +00:00
%endif
2015-07-27 14:24:15 +00:00
2006-12-18 14:48:26 +00:00
Name : xorg-x11-server
2020-12-07 15:21:23 +00:00
Version : 1.20.10
2016-11-21 22:24:43 +00:00
Release : 0
2019-11-24 12:43:42 +00:00
URL : http://xorg.freedesktop.org/
2016-11-21 22:24:43 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2013-08-09 14:33:20 +00:00
2012-04-20 09:32:05 +00:00
Summary : X
2017-06-10 11:22:35 +00:00
# Source URL: http://xorg.freedesktop.org/archive/individual/xserver/
2014-01-07 16:02:42 +00:00
License : MIT
2012-04-20 09:32:05 +00:00
Group : System/X11/Servers/XF86_4
2019-10-21 21:11:53 +00:00
Source0 : xserver-%{version} .tar.xz
2012-04-20 09:32:05 +00:00
Source1 : sysconfig.displaymanager.template
2013-12-12 14:33:35 +00:00
Source2 : README.updates
Source3 : xorgcfg.tar.bz2
Source4 : xorg-backtrace
2016-02-25 20:56:47 +00:00
Source5 : 50-extensions.conf
2016-05-08 22:14:51 +00:00
Source6 : modesetting.ids
2018-07-19 13:44:34 +00:00
Source7 : xkb-tmpfiles.conf
2012-04-20 09:32:05 +00:00
# RPM Macros to be installed. The ABI Versions will be injected by configure.
2013-12-12 14:33:35 +00:00
Source90 : xorg-x11-server.macros.in
# Source91 and Source99 are used to ensure proper ABI provides.
Source91 : xorg-server-provides
Source92 : pre_checkin.sh
2013-11-30 02:58:15 +00:00
2012-03-22 23:38:35 +00:00
BuildRequires : bison
BuildRequires : flex
BuildRequires : libtool
BuildRequires : pkgconfig
2019-03-26 10:59:45 +00:00
BuildRequires : systemd-rpm-macros
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(bigreqsproto) >= 1.1.0
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(compositeproto)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(damageproto) >= 1.1
2015-02-23 14:34:43 +00:00
BuildRequires : pkgconfig(dbus-1) >= 1.0
2012-02-09 20:45:28 +00:00
BuildRequires : pkgconfig(dmx) >= 1.0.99.1
2014-10-25 08:58:35 +00:00
BuildRequires : pkgconfig(dri) >= 7.8.0
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(dri2proto)
BuildRequires : pkgconfig(dri3proto)
2017-12-12 13:35:15 +00:00
BuildRequires : pkgconfig(egl)
2014-03-19 14:38:37 +00:00
BuildRequires : pkgconfig(epoxy) >= 1.1
2015-07-27 14:24:15 +00:00
%if 0%{?have_wayland} == 1
BuildRequires : pkgconfig(wayland-client)
2016-11-21 22:24:43 +00:00
BuildRequires : pkgconfig(wayland-protocols)
2015-07-27 14:24:15 +00:00
%endif
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(fixesproto) >= 4.1
BuildRequires : pkgconfig(fontconfig)
BuildRequires : pkgconfig(fontenc)
BuildRequires : pkgconfig(fontsproto)
BuildRequires : pkgconfig(fontutil)
BuildRequires : pkgconfig(freetype2)
2017-12-12 13:35:15 +00:00
BuildRequires : pkgconfig(gbm)
BuildRequires : pkgconfig(gl)
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(glproto)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(ice)
BuildRequires : pkgconfig(inputproto) >= 1.9.99.902
BuildRequires : pkgconfig(kbproto) >= 1.0.3
BuildRequires : pkgconfig(libdrm)
2016-12-13 11:13:36 +00:00
BuildRequires : pkgconfig(libsystemd)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(openssl)
2012-02-09 21:17:07 +00:00
BuildRequires : pkgconfig(pciaccess) >= 0.8.0
2012-05-09 16:43:31 +00:00
BuildRequires : pkgconfig(pixman-1) >= 0.24
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(presentproto)
2017-06-09 17:35:09 +00:00
BuildRequires : pkgconfig(randrproto) >= 1.5.0
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(renderproto) >= 0.11
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(resourceproto)
BuildRequires : pkgconfig(scrnsaverproto)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(sm)
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(xau)
BuildRequires : pkgconfig(xaw7)
2013-11-30 02:58:15 +00:00
BuildRequires : pkgconfig(xcb-aux)
BuildRequires : pkgconfig(xcb-icccm)
BuildRequires : pkgconfig(xcb-image)
BuildRequires : pkgconfig(xcb-keysyms)
2015-02-06 10:07:01 +00:00
BuildRequires : pkgconfig(xcb-renderutil)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xcmiscproto) >= 1.2.0
BuildRequires : pkgconfig(xdmcp)
BuildRequires : pkgconfig(xext) >= 1.0.99.4
BuildRequires : pkgconfig(xextproto) >= 7.1.99
2014-04-28 09:02:48 +00:00
BuildRequires : pkgconfig(xf86dgaproto)
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(xf86driproto)
2020-02-27 14:10:05 +00:00
BuildRequires : pkgconfig(xf86vidmodeproto)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xfixes)
2016-11-21 22:24:43 +00:00
BuildRequires : pkgconfig(xfont2)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xi) >= 1.2.99.1
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(xineramaproto)
2018-05-19 18:13:03 +00:00
BuildRequires : pkgconfig(xkbcomp)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xkbfile)
BuildRequires : pkgconfig(xmu)
2014-04-25 08:40:58 +00:00
BuildRequires : pkgconfig(xorg-macros)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xp)
BuildRequires : pkgconfig(xpm)
BuildRequires : pkgconfig(xprintutil)
2017-06-09 17:35:09 +00:00
BuildRequires : pkgconfig(xproto) >= 7.0.31
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xrender)
BuildRequires : pkgconfig(xres)
2013-11-30 02:58:15 +00:00
BuildRequires : pkgconfig(xshmfence)
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xt)
2013-11-30 02:58:15 +00:00
BuildRequires : pkgconfig(xtrans) >= 1.3.1
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(xtst) >= 1.0.99.2
BuildRequires : pkgconfig(xv)
2010-03-24 16:06:52 +00:00
### udev support (broken on openSUSE 11.2, see also bnc #589997)
2012-04-20 09:32:05 +00:00
%if 0%{?suse_version} >= 1130
2012-03-22 23:38:35 +00:00
BuildRequires : pkgconfig(libudev) >= 143
2010-03-24 16:06:52 +00:00
%endif
2013-08-09 14:33:20 +00:00
2009-01-19 01:20:48 +00:00
%ifnarch s390 s390x
2012-04-20 09:32:05 +00:00
Requires(pre) : %fillup_prereq
2009-01-19 01:20:48 +00:00
%endif
2012-04-20 09:32:05 +00:00
Requires : pkgconfig
2012-06-14 14:19:44 +00:00
Requires : xkbcomp
2016-11-15 13:35:55 +00:00
Recommends: xorg-x11-fonts-core
2006-12-18 14:48:26 +00:00
%ifnarch s390 s390x
2012-05-09 16:43:31 +00:00
Requires : libpixman-1-0 >= 0.24
2013-12-12 14:33:35 +00:00
%(cat %{SOURCE91} )
2006-12-18 14:48:26 +00:00
%endif
2012-06-08 14:26:20 +00:00
Requires : Mesa
2014-08-12 12:35:17 +00:00
%if 0%{?suse_version} >= 1315
Requires(post) : update-alternatives
Requires(postun) : update-alternatives
%endif
2012-04-20 09:32:05 +00:00
Provides : xorg-x11-server-glx
Obsoletes : xorg-x11-server-glx
2014-03-19 14:38:37 +00:00
2014-03-21 09:40:55 +00:00
Provides : glamor = %{version}
2014-03-19 14:38:37 +00:00
Provides : glamor-egl = %{version}
2014-03-21 09:40:55 +00:00
Obsoletes : glamor < %{version}
2016-11-21 22:24:43 +00:00
Obsoletes : glamor < 7.6_%{version}
2014-03-19 14:38:37 +00:00
Obsoletes : glamor-egl < %{version}
2016-11-21 22:24:43 +00:00
Obsoletes : glamor-egl < 7.6_%{version}
2014-03-19 14:38:37 +00:00
2015-02-06 10:07:01 +00:00
Provides : xf86-video-modesetting = %{version}
Obsoletes : xf86-video-modesetting < %{version}
2016-11-21 22:24:43 +00:00
Obsoletes : xf86-video-modesetting < 7.6_%{version}
2020-05-06 14:25:23 +00:00
%if 0%{?suse_version} >= 1500
2019-01-18 11:44:18 +00:00
Provides : xf86-video-ast
Obsoletes : xf86-video-ast
Provides : xf86-video-cirrus
Obsoletes : xf86-video-cirrus
%endif
2016-11-21 22:24:43 +00:00
Provides : xorg-x11-server = 7.6_%{version}
Obsoletes : xorg-x11-server < 7.6_%{version}
2019-01-24 14:15:41 +00:00
# get rid of meta packages still requiring/recommending obsolete
# drivers packages (boo#1121525)
%if 0%{?suse_version} >= 1500
Provides : xorg-x11-driver-input = 7.6_1
Obsoletes : xorg-x11-driver-input < 7.6_1
Provides : xorg-x11-driver-video = 7.6_1
Obsoletes : xorg-x11-driver-video < 7.6_1
%endif
2015-02-06 10:07:01 +00:00
2015-09-25 12:04:06 +00:00
# Remove (also from depending driver(s)) when updating X11_ABI_VIDEODRV by updating the server package - NOTE: also remove from xorg-x11-server.macros.in !
Provides : X11_ABI_HAS_DPMS_GET_CAPABILITIES
2013-01-08 11:48:17 +00:00
Requires : xkeyboard-config
2013-08-09 14:33:20 +00:00
2019-09-23 10:26:30 +00:00
# Install it by default; otherwise we run into too much package build failures
# when Xvfb is being used for testing ...
# Unfortunately we need a requires here due to OBS not installing 'recommended'
# packages :-(
Requires : xorg-x11-server-Xvfb
2019-09-21 16:03:09 +00:00
2013-12-12 14:33:35 +00:00
# PATCH-FEATURE-OPENSUSE n_xorg-x11-server-rpmmacros.patch dimstar@opensuse.org -- Provide RPM macros to require correct ABI Versions.
Patch1 : N_default-module-path.diff
Patch2 : N_zap_warning_xserver.diff
Patch3 : N_driver-autoconfig.diff
Patch4 : N_fix_fglrx_screendepth_issue.patch
Patch6 : N_fix-dpi-values.diff
2016-04-12 14:04:29 +00:00
Patch7 : N_Install-Avoid-failure-on-wrapper-installation.patch
Patch8 : u_xorg-wrapper-Drop-supplemental-group-IDs.patch
Patch9 : u_xorg-wrapper-build-Build-position-independent-code.patch
2020-09-30 01:44:07 +00:00
Patch10 : u_xorg-wrapper-Xserver-Options-Whitelist-Filter.patch
Patch11 : n_xorg-wrapper-rename-Xorg.patch
2020-09-30 10:40:49 +00:00
Patch12 : n_xorg-wrapper-anybody.patch
2016-02-25 20:56:47 +00:00
Patch100 : u_01-Improved-ConfineToShape.patch
Patch101 : u_02-DIX-ConfineTo-Don-t-bother-about-the-bounding-box-when-grabbing-a-shaped-window.patch
2013-12-12 14:33:35 +00:00
# PATCH-FIX-UPSTREAM u_x86emu-include-order.patch schwab@suse.de -- Change include order to avoid conflict with system header, remove duplicate definitions
2018-05-19 18:13:03 +00:00
2013-12-12 14:33:35 +00:00
Patch104 : u_xorg-server-xdmcp.patch
2014-05-30 23:47:45 +00:00
Patch112 : u_render-Cast-color-masks-to-unsigned-long-before-shifting-them.patch
2015-06-17 10:50:34 +00:00
2016-05-16 20:10:30 +00:00
Patch115 : N_Disable-HW-Cursor-for-cirrus-and-mgag200-kernel-modules.patch
2015-06-17 10:50:34 +00:00
2015-04-20 15:18:07 +00:00
Patch117 : xorg-x11-server-byte-order.patch
2013-12-12 14:33:35 +00:00
2015-09-25 12:04:06 +00:00
Patch160 : u_vesa-Add-VBEDPMSGetCapabilities-VBEDPMSGet.patch
2016-01-15 19:03:26 +00:00
Patch208 : u_Panning-Set-panning-state-in-xf86RandR12ScreenSetSize.patch
2016-02-10 15:09:02 +00:00
Patch209 : u_pci-primary-Fix-up-primary-PCI-device-detection-for-the-platfrom-bus.patch
2016-03-04 18:45:51 +00:00
Patch210 : u_os-connections-Check-for-stale-FDs.patch
2015-07-30 10:50:09 +00:00
2017-07-13 14:57:37 +00:00
Patch215 : u_Use-better-fallbacks-to-generate-cookies-if-arc4rand.patch
2018-02-22 12:53:53 +00:00
2014-08-05 06:23:18 +00:00
Patch1000 : n_xserver-optimus-autoconfig-hack.patch
Patch1162 : b_cache-xkbcomp-output-for-fast-start-up.patch
Patch1211 : b_0001-Prevent-XSync-Alarms-from-senslessly-calling-CheckTr.patch
Patch1222 : b_sync-fix.patch
2013-10-25 12:57:39 +00:00
2018-04-13 09:01:22 +00:00
Patch1401 : u_randr-Do-not-crash-if-slave-screen-does-not-have-pro.patch
2018-06-26 08:57:59 +00:00
Patch1501 : U_xkb-Fix-heap-overflow-caused-by-optimized-away-min.patch
2018-06-20 15:49:08 +00:00
2018-11-14 13:47:20 +00:00
Patch1502 : U_dix-window-Use-ConfigureWindow-instead-of-MoveWindow.patch
2019-01-08 10:20:38 +00:00
Patch1503 : u_xfree86-Do-not-claim-pci-slots-if-fb-slot-is-already.patch
2019-09-18 12:48:07 +00:00
Patch1505 : U_xwayland-Allow-passing-a-fd.patch
2020-06-04 10:41:35 +00:00
Patch1600 : U_glamor_egl-Reject-OpenGL-2.1-early-on.patch
2020-09-28 10:46:37 +00:00
Patch1801 : U_Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch
2020-12-01 16:59:58 +00:00
2006-12-18 14:48:26 +00:00
%description
This package contains the X.Org Server.
2007-05-23 10:28:42 +00:00
%package extra
2011-02-03 17:44:25 +00:00
Summary : Additional Xservers (Xdmx, Xephyr, Xnest)
2007-05-23 10:28:42 +00:00
Group : System/X11/Servers/XF86_4
2012-04-20 09:32:05 +00:00
Requires : Mesa
2012-06-14 14:09:52 +00:00
Requires : xkbcomp
2012-04-20 09:32:05 +00:00
Requires : xkeyboard-config
2016-11-15 13:35:55 +00:00
Recommends: xorg-x11-fonts-core
2011-02-03 17:44:25 +00:00
Provides : xorg-x11-Xnest
Obsoletes : xorg-x11-Xnest
2007-05-23 10:28:42 +00:00
%description extra
2011-02-03 17:44:25 +00:00
This package contains additional Xservers (Xdmx, Xephyr, Xnest).
2007-05-23 10:28:42 +00:00
2019-09-21 16:03:09 +00:00
%package Xvfb
Summary : Virtual Xserver Xvfb
Group : System/X11/Servers/XF86_4
Requires : Mesa
Requires : xkbcomp
# Xvfb requires keyboard files as well (bnc#797124)
Requires : xkeyboard-config
Recommends: xorg-x11-fonts-core
2019-09-23 10:26:30 +00:00
Provides : xorg-x11-Xvfb
2019-09-21 16:03:09 +00:00
Provides : xorg-x11-server:/usr/bin/Xvfb
2019-09-23 10:26:30 +00:00
Obsoletes : xorg-x11-Xvfb
2019-09-21 16:03:09 +00:00
%description Xvfb
This package contains the virtual Xserver Xvfb.
2016-01-08 17:47:40 +00:00
%if 0%{?have_wayland} == 1
%package wayland
Summary : Xwayland Xserver
Group : System/X11/Servers/XF86_4
Requires : xkbcomp
Requires : xkeyboard-config
2016-11-15 13:35:55 +00:00
Recommends: xorg-x11-fonts-core
2016-01-08 17:47:40 +00:00
%description wayland
This package contains the Xserver running on the Wayland Display Server.
%endif
2016-04-12 09:35:45 +00:00
%if 0%{?build_suid_wrapper} == 1
%package wrapper
Summary : Xserver SUID Wrapper
Group : System/X11/Servers/XF86_4
2016-04-12 15:37:50 +00:00
PreReq : permissions
2016-04-12 09:35:45 +00:00
Requires : xorg-x11-server == %{version}
%description wrapper
This package contains an SUID wrapper for the Xserver.
%endif
2006-12-18 14:48:26 +00:00
%package sdk
2012-04-20 09:32:05 +00:00
Summary : X
2006-12-18 14:48:26 +00:00
Group : System/Libraries
2016-03-29 08:59:45 +00:00
Requires : autoconf
Requires : automake
Requires : c_compiler
Requires : libtool
2012-04-20 09:32:05 +00:00
Requires : xorg-x11-server
Requires : pkgconfig(fontconfig)
Requires : pkgconfig(fontenc)
Requires : pkgconfig(freetype2)
Requires : pkgconfig(ice)
Requires : pkgconfig(libdrm)
2016-03-29 08:59:45 +00:00
Requires : pkgconfig(libevdev)
Requires : pkgconfig(libudev)
Requires : pkgconfig(mtdev)
2012-04-20 09:32:05 +00:00
Requires : pkgconfig(sm)
Requires : pkgconfig(x11)
Requires : pkgconfig(xau)
Requires : pkgconfig(xdmcp)
Requires : pkgconfig(xext)
Requires : pkgconfig(xfixes)
Requires : pkgconfig(xkbfile)
Requires : pkgconfig(xmu)
2016-03-29 08:59:45 +00:00
Requires : pkgconfig(xorg-macros)
2012-04-20 09:32:05 +00:00
Requires : pkgconfig(xp)
Requires : pkgconfig(xpm)
Requires : pkgconfig(xprintutil)
Requires : pkgconfig(xrender)
Requires : pkgconfig(xt)
Requires : pkgconfig(xtrans)
Requires : pkgconfig(xv)
2006-12-18 14:48:26 +00:00
Provides : xorg-x11-sdk
Obsoletes : xorg-x11-sdk
2014-03-22 09:36:37 +00:00
Provides : glamor-devel = %{version}
Obsoletes : glamor-devel < %{version}
2016-11-21 22:24:43 +00:00
Obsoletes : glamor-devel < 7.6_%{version}
Provides : xorg-x11-server-sdk = 7.6_%{version}
Obsoletes : xorg-x11-server-sdk < 7.6_%{version}
2006-12-18 14:48:26 +00:00
%description sdk
This package contains the X.Org Server SDK.
2015-02-05 17:01:21 +00:00
%package source
Summary : Source code of X.Org server
Group : Development/Sources
%description source
This package contains patched sources of X.Org Server.
2006-12-18 14:48:26 +00:00
%prep
2019-10-21 21:11:53 +00:00
%setup -q -n xserver-%{version} -a3
2012-04-20 09:32:05 +00:00
# Early verification if the ABI Defines are correct. Let's not waste build cycles if the Provides are wrong at the end.
2013-12-12 14:33:35 +00:00
sh %{SOURCE92} --verify . %{SOURCE91}
2014-03-19 14:38:37 +00:00
2014-08-15 12:22:05 +00:00
%if 0%{?suse_version} < 1315
2013-12-12 14:33:35 +00:00
%patch1
2014-08-15 12:22:05 +00:00
%endif
2013-12-12 14:33:35 +00:00
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch6 -p0
2016-04-12 09:35:45 +00:00
%patch7 -p1
2016-04-12 14:04:29 +00:00
%patch8 -p1
%patch9 -p1
2020-09-30 01:44:07 +00:00
%patch10 -p1
%patch11 -p1
2020-09-30 10:40:49 +00:00
%patch12 -p1
2014-03-19 14:38:37 +00:00
#
2016-02-25 20:56:47 +00:00
%patch100 -p1
2016-03-04 18:45:51 +00:00
#%patch101 -p1
2013-12-12 14:33:35 +00:00
%patch104 -p1
2014-05-30 23:47:45 +00:00
%patch112 -p1
2015-02-16 16:06:30 +00:00
%patch115 -p1
2015-04-20 15:18:07 +00:00
%patch117 -p1
2015-09-25 12:04:06 +00:00
%patch160 -p1
2016-01-15 19:03:26 +00:00
%patch208 -p1
2016-02-10 15:09:02 +00:00
%patch209 -p1
2016-11-21 22:24:43 +00:00
### not applicable anymore
#%patch210 -p1
2017-07-13 14:57:37 +00:00
%patch215 -p1
2018-03-27 14:46:27 +00:00
%patch1000 -p1
2013-11-30 02:58:15 +00:00
2011-09-06 16:02:28 +00:00
### disabled for now
2014-08-05 06:23:18 +00:00
#%patch1162 -p1
2011-09-06 16:02:28 +00:00
### disabled for now
2014-08-05 06:23:18 +00:00
#%patch1211 -p1
2012-08-22 08:30:45 +00:00
### patch222 might not be applicable anymore
2014-08-05 06:23:18 +00:00
#%patch1222 -p1
2018-04-13 09:01:22 +00:00
%patch1401 -p1
2018-06-26 08:57:59 +00:00
%patch1501 -p1
2018-11-14 13:47:20 +00:00
%patch1502 -p1
2019-01-08 10:20:38 +00:00
%patch1503 -p1
2019-09-18 12:48:07 +00:00
%patch1505 -p1
2020-06-04 10:41:35 +00:00
%patch1600 -p1
2020-09-28 10:46:37 +00:00
%patch1801 -p1
2019-09-18 12:48:07 +00:00
2006-12-18 14:48:26 +00:00
%build
2019-04-25 08:10:56 +00:00
%define _lto_cflags %{nil}
2016-01-15 19:03:26 +00:00
test -e source-file-list || \
2016-04-12 09:35:45 +00:00
find -L . -type f \! -name '*.orig' \! -path ./source-file-list > \
2016-01-15 19:03:26 +00:00
source-file-list
2006-12-18 14:48:26 +00:00
autoreconf -fi
2016-03-22 12:26:09 +00:00
%if 0%{?pci_ids_dir:1}
export PCI_TXT_IDS_DIR=%{pci_ids_dir}
%endif
2012-04-20 09:32:05 +00:00
%configure CFLAGS=" %{optflags} - f n o - s t r i c t - a l i a s i n g " \
2020-02-27 14:10:05 +00:00
--enable-xf86vidmode \
2006-12-18 14:48:26 +00:00
--enable-xdmcp \
--enable-xdm-auth-1 \
2008-07-24 20:22:10 +00:00
--enable-dri \
2009-04-28 22:58:35 +00:00
--enable-dri2 \
2013-11-30 02:58:15 +00:00
--enable-dri3 \
2014-03-19 14:38:37 +00:00
--enable-glamor \
2010-04-26 21:16:24 +00:00
--enable-dmx \
2006-12-18 14:48:26 +00:00
--enable-xnest \
--enable-kdrive \
2011-02-27 10:48:58 +00:00
--enable-kdrive-evdev \
2006-12-18 14:48:26 +00:00
--enable-xephyr \
2011-07-11 10:25:51 +00:00
--disable-xfake \
--disable-xfbdev \
2008-08-05 23:59:36 +00:00
--enable-record \
2009-01-29 22:25:39 +00:00
--enable-xcsecurity \
2015-02-23 14:34:43 +00:00
--enable-systemd-logind \
2010-08-04 21:05:41 +00:00
--with-sha1=libcrypto \
2013-11-30 02:58:15 +00:00
--disable-linux-acpi \
2014-01-07 13:28:48 +00:00
--disable-linux-apm \
2015-06-05 07:26:26 +00:00
%ifarch s390 s390x
--disable-xorg \
--disable-aiglx \
%else
2010-04-13 19:08:40 +00:00
--enable-xorg \
2012-04-20 09:32:05 +00:00
%if 0%{?suse_version} > 1120
2019-10-21 21:11:53 +00:00
--enable-config-udev \
2010-04-13 19:08:40 +00:00
%endif
2015-07-27 14:24:15 +00:00
%endif
%if 0%{?have_wayland} == 1
--enable-xwayland \
%else
--disable-xwayland \
2016-04-07 16:03:27 +00:00
%endif
2016-04-12 09:35:45 +00:00
%if 0%{?build_suid_wrapper} == 1
2019-10-21 21:11:53 +00:00
--enable-suid-wrapper \
--libexecdir=%{suid_wrapper_dir} \
2010-03-24 16:06:52 +00:00
%endif
2006-12-18 14:48:26 +00:00
--with-log-dir=" / v a r / l o g " \
--with-os-name=" o p e n S U S E " \
--with-os-vendor=" S U S E L I N U X " \
2010-03-23 13:24:35 +00:00
--with-fontrootdir=" / u s r / s h a r e / f o n t s " \
2006-12-18 14:48:26 +00:00
--with-xkb-path=" / u s r / s h a r e / X 1 1 / x k b " \
2011-07-11 10:25:51 +00:00
--with-xkb-output=" / v a r / l i b / x k b / c o m p i l e d " \
2019-10-21 21:11:53 +00:00
--with-default-font-path=" / u s r / s h a r e / f o n t s / m i s c : u n s c a l e d , \
2011-07-11 10:25:51 +00:00
/usr/share/fonts/Type1/,/usr/share/fonts/100dpi:unscaled,\
2012-12-07 11:00:51 +00:00
%if 0%{?suse_version} > 1210
/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/ghostscript/,\
%else
2011-07-11 10:25:51 +00:00
/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/URW/,\
2012-12-07 11:00:51 +00:00
%endif
2011-07-11 10:25:51 +00:00
/usr/share/fonts/cyrillic:unscaled,\
2012-01-13 14:52:33 +00:00
/usr/share/fonts/misc/sgi:unscaled,\
2011-07-11 10:25:51 +00:00
/usr/share/fonts/truetype/,built-ins"
2012-03-22 23:38:35 +00:00
make %{?_smp_mflags}
make -C hw/kdrive %{?_smp_mflags}
2006-12-18 14:48:26 +00:00
%install
2012-04-20 09:32:05 +00:00
%make_install
make -C hw/kdrive install DESTDIR=%{buildroot}
2006-12-18 14:48:26 +00:00
%ifnarch s390 s390x
# remove .la files
2012-04-20 09:32:05 +00:00
find %{buildroot} %{_libdir} /xorg/modules/ -name " * . l a " | \
2006-12-18 14:48:26 +00:00
xargs rm
install -m 644 hw/xfree86/parser/{xf86Parser.h,xf86Optrec.h} \
2012-04-20 09:32:05 +00:00
%{buildroot} %{_includedir} /xorg
2010-12-03 03:32:04 +00:00
# bnc #632737
2012-04-20 09:32:05 +00:00
chmod u-s %{buildroot} %{_bindir} /Xorg
2016-03-22 12:26:09 +00:00
%if 0%{?pci_ids_dir:1}
%__mkdir_p %{buildroot} %{pci_ids_dir}
2016-05-08 22:14:51 +00:00
install -m 644 %{S:6} %{buildroot} %{pci_ids_dir}
2016-03-22 12:26:09 +00:00
%endif
2020-09-30 01:44:07 +00:00
%if 0%{?build_suid_wrapper} == 1
mv %{buildroot} %{_bindir} /Xorg \
%{buildroot} %{_bindir} /Xorg.bin
mv %{buildroot} %{_bindir} /Xorg.sh \
%{buildroot} %{_bindir} /Xorg
%endif
2018-07-19 13:44:34 +00:00
ln -snf Xorg %{buildroot} %{_bindir} /X
2012-04-20 09:32:05 +00:00
%if 0%{?suse_version} > 1120
2019-07-30 12:36:28 +00:00
%{__install} -m 644 %{S:5} %{buildroot} %{_datadir} /X11/xorg.conf.d
2011-07-11 10:25:51 +00:00
%endif
2014-08-15 12:22:05 +00:00
%if 0%{?suse_version} < 1315
2012-04-20 09:32:05 +00:00
mkdir -p %{buildroot} %{_libdir} /xorg/modules/updates/{fonts,input,linux,drivers,multimedia,extensions}
install -m 644 $RPM_SOURCE_DIR /README.updates %{buildroot} %{_libdir} /xorg/modules/updates
2014-08-15 12:22:05 +00:00
%endif
2010-04-13 19:08:40 +00:00
%else
2012-04-20 09:32:05 +00:00
rm -f %{buildroot} %{_datadir} /aclocal/*.m4
2010-04-13 19:08:39 +00:00
%endif
2018-07-25 09:26:23 +00:00
# FATE#325524
mkdir -p %{buildroot} %{_datadir} /factory/%{_localstatedir} /lib/xkb/compiled
mv %{buildroot} %{_localstatedir} /lib/xkb/compiled/README.compiled %{buildroot} %{_datadir} /factory/%{_localstatedir} /lib/xkb/compiled/
mkdir -p %{buildroot} %{_tmpfilesdir}
install -m 644 %{S:7} %{buildroot} %{_tmpfilesdir} /xkb.conf
2008-07-05 00:00:28 +00:00
%ifarch s390 s390x
2020-06-30 16:58:18 +00:00
rm -f %{buildroot} %{_datadir} /X11/10-quirks.conf
2015-06-05 07:26:26 +00:00
mkdir -p %{buildroot} %{_includedir} /xorg
2011-12-01 11:53:28 +00:00
install -m 644 include/list.h \
2012-04-20 09:32:05 +00:00
%{buildroot} %{_includedir} /xorg
2008-07-05 00:00:28 +00:00
%endif
2009-01-19 01:20:48 +00:00
%ifnarch s390 s390x
2017-11-23 15:08:51 +00:00
mkdir -p %{buildroot} %{_fillupdir}
2009-01-19 01:20:48 +00:00
install -m 644 %_sourcedir /sysconfig.displaymanager.template \
2017-11-23 15:08:51 +00:00
%{buildroot} %{_fillupdir} /sysconfig.displaymanager-%{name}
2009-01-19 01:20:48 +00:00
%endif
2012-04-20 09:32:05 +00:00
install -m 755 $RPM_SOURCE_DIR /xorg-backtrace %{buildroot} %{_bindir} /xorg-backtrace
2016-01-15 19:03:26 +00:00
cp %{S:90} .
./config.status --file xorg-x11-server.macros
2020-06-30 20:43:25 +00:00
install -D xorg-x11-server.macros %{buildroot} /usr/lib/rpm/macros.d/macros.xorg-server
2014-08-12 12:35:17 +00:00
%ifnarch s390 s390x
%if 0%{?suse_version} >= 1315
2014-08-13 08:28:25 +00:00
mkdir -p %{buildroot} %{_libdir} /xorg/modules/extensions/xorg
mv %{buildroot} %{_libdir} /xorg/modules/extensions/libglx.so \
%{buildroot} %{_libdir} /xorg/modules/extensions/xorg/xorg-libglx.so
2014-08-12 12:35:17 +00:00
ln -snf %{_sysconfdir} /alternatives/libglx.so %{buildroot} %{_libdir} /xorg/modules/extensions/libglx.so
%endif
%endif
2006-12-18 14:48:26 +00:00
2015-02-05 17:01:21 +00:00
mkdir -p %{buildroot} /usr/src/xserver
xargs cp --parents --target-directory=%{buildroot} /usr/src/xserver < source-file-list
2020-12-07 11:45:54 +00:00
# unneeded python2 script; simply remove it (boo#1179591)
rm -f %{buildroot} /usr/src/xserver/config/fdi2iclass.py
2015-02-05 17:01:21 +00:00
2006-12-18 14:48:26 +00:00
%post
2018-07-19 13:44:34 +00:00
%tmpfiles_create xbb.conf
2006-12-18 14:48:26 +00:00
%ifnarch s390 s390x
2009-01-19 01:20:48 +00:00
%{fillup_only -an displaymanager}
2014-05-28 11:03:19 +00:00
# Move SaX2 generated xorg.conf file to xorg.conf.sle11
#
# Only in very rare cases a static X configuration is still
# required on sle12. And, in some cases the migration from a
# static sle11 X configuration to a static sle12 X configuration
# is not possible at all, e.g. some video and input drivers
# are no longer available on sle12. In short, trying to migrate
# will result in more harm than benefit.
if [ -f etc/X11/xorg.conf -a ! -f etc/X11/xorg.conf.sle11 ]; then
echo " x o r g . c o n f e x i s t s a n d x o r g . c o n f . s l e 1 1 d o e s n o t "
if grep -q " S a X g e n e r a t e d X 1 1 c o n f i g f i l e " etc/X11/xorg.conf; then
echo " m o v e S a X g e n e r a t e d x o r g . c o n f t o x o r g . c o n f . s l e 1 1 "
2014-11-10 08:51:33 +00:00
mv etc/X11/xorg.conf etc/X11/xorg.conf.sle11
2014-05-28 11:03:19 +00:00
# remove dangling link (bnc#879360, comment#15)
rm -f etc/X11/XF86Config
# prevent %postun of NVIDIA/fglrx driver packages from restoring xorg.conf
# backup or running sax2 as fallback to create a new xorg.conf (bcn#877315)
rm -f etc/X11/xorg.conf.nvidia-post \
etc/X11/xorg.conf.fglrx-post
chmod -x usr/sbin/sax2
2009-10-21 00:06:49 +00:00
fi
2006-12-18 14:48:26 +00:00
fi
2014-08-12 12:35:17 +00:00
%if 0%{?suse_version} >= 1315
%_sbindir /update-alternatives \
2014-08-13 08:28:25 +00:00
--force --install %{_libdir} /xorg/modules/extensions/libglx.so libglx.so %{_libdir} /xorg/modules/extensions/xorg/xorg-libglx.so 50
2014-08-12 12:35:17 +00:00
%endif
2006-12-18 14:48:26 +00:00
%endif
exit 0
2014-08-12 12:35:17 +00:00
%ifnarch s390 s390x
%if 0%{?suse_version} >= 1315
%postun
if [ " $ 1 " = 0 ] ; then
2014-08-13 08:28:25 +00:00
" %_sbindir / u p d a t e - a l t e r n a t i v e s " --remove libglx.so %{_libdir} /xorg/modules/extensions/xorg/xorg-libglx.so
2014-08-12 12:35:17 +00:00
fi
%endif
%endif
2016-04-12 15:37:50 +00:00
%if 0%{?build_suid_wrapper} == 1
%post wrapper
%set_permissions %{suid_wrapper_dir} /Xorg.wrap
%verify script wrapper
%verify _permissions -e %{suid_wrapper_dir} /Xorg.wrap
%endif
2006-12-18 14:48:26 +00:00
%files
%defattr (-,root,root)
2010-04-13 19:08:39 +00:00
%ifnarch s390 s390x
2012-04-20 09:32:05 +00:00
%if 0%{?suse_version} > 1120
2016-03-22 12:26:09 +00:00
%if 0%{?pci_ids_dir:1}
%dir %{pci_ids_dir}
2016-05-08 22:14:51 +00:00
%{pci_ids_dir} /modesetting.ids
2016-03-22 12:26:09 +00:00
%endif
2011-07-11 10:25:51 +00:00
%dir %{_datadir} /X11/xorg.conf.d
2019-07-30 12:36:28 +00:00
%{_datadir} /X11/xorg.conf.d/*.conf
2010-04-13 19:08:40 +00:00
%endif
2006-12-18 14:48:26 +00:00
%endif
2018-07-26 09:35:52 +00:00
%{_tmpfilesdir} /xkb.conf
2012-04-20 09:32:05 +00:00
%dir %{_localstatedir} /lib/xkb
%dir %{_localstatedir} /lib/xkb/compiled
%dir %{_libdir} /xorg
%{_libdir} /xorg/protocol.txt
2010-04-13 19:08:39 +00:00
%{_mandir} /man1/*
2010-05-13 22:33:13 +00:00
%exclude %{_mandir} /man1/Xdmx.1*
2010-04-13 19:08:40 +00:00
%exclude %{_mandir} /man1/Xephyr.1*
2010-04-13 19:08:39 +00:00
%exclude %{_mandir} /man1/Xnest.1*
2018-07-19 13:44:34 +00:00
%dir %{_datadir} /factory
%dir %{_datadir} /factory/var
%dir %{_datadir} /factory/var/lib
%dir %{_datadir} /factory/var/lib/xkb
%dir %{_datadir} /factory/var/lib/xkb/compiled
%{_datadir} /factory/%{_localstatedir} /lib/xkb/compiled/README.compiled
2010-04-13 19:08:39 +00:00
%ifnarch s390 s390x
2012-10-01 18:08:05 +00:00
%{_bindir} /Xorg
2016-04-12 09:35:45 +00:00
%if 0%{?build_suid_wrapper} == 1
2020-09-30 01:44:07 +00:00
%{_bindir} /Xorg.bin
2016-04-12 09:35:45 +00:00
%endif
2012-04-20 09:32:05 +00:00
%{_bindir} /X
2014-04-09 14:54:54 +00:00
2012-04-20 09:32:05 +00:00
%{_bindir} /cvt
%{_bindir} /gtf
%{_libdir} /xorg/modules/
2010-04-13 19:08:40 +00:00
%{_mandir} /man4/*
%{_mandir} /man5/*
2017-11-23 15:08:51 +00:00
%{_fillupdir} /sysconfig.displaymanager-%{name}
2014-08-13 12:40:28 +00:00
%if 0%{?suse_version} >= 1315
2014-08-13 08:28:25 +00:00
%ghost %{_sysconfdir} /alternatives/libglx.so
2010-04-13 19:08:40 +00:00
%endif
2014-08-13 12:40:28 +00:00
%endif
2016-01-08 17:47:40 +00:00
%{_bindir} /xorg-backtrace
2015-07-27 14:24:15 +00:00
%if 0%{?have_wayland} == 1
2016-01-08 17:47:40 +00:00
%files wayland
2015-07-27 14:24:15 +00:00
%{_bindir} /Xwayland
%endif
2007-05-23 10:28:42 +00:00
2016-04-12 09:35:45 +00:00
%if 0%{?build_suid_wrapper} == 1
%files wrapper
%defattr (-,root,root)
%attr (4755,root,root) %{suid_wrapper_dir} /Xorg.wrap
%endif
2007-05-23 10:28:42 +00:00
%files extra
%defattr (-,root,root)
2012-04-20 09:32:05 +00:00
%{_bindir} /Xephyr
%{_bindir} /Xnest
%{_bindir} /Xdmx
%{_bindir} /dmxaddinput
%{_bindir} /dmxaddscreen
%{_bindir} /dmxinfo
%{_bindir} /dmxreconfig
%{_bindir} /dmxresize
%{_bindir} /dmxrminput
%{_bindir} /dmxrmscreen
%{_bindir} /dmxtodmx
%{_bindir} /dmxwininfo
%{_bindir} /vdltodmx
%{_bindir} /xdmxconfig
2010-04-26 21:16:24 +00:00
%{_mandir} /man1/Xdmx.1*
2010-04-13 19:08:40 +00:00
%{_mandir} /man1/Xephyr.1*
2008-01-26 17:22:58 +00:00
%{_mandir} /man1/Xnest.1*
2006-12-18 14:48:26 +00:00
2019-09-21 16:03:09 +00:00
%files Xvfb
%defattr (-,root,root)
%{_bindir} /Xvfb
2006-12-18 14:48:26 +00:00
%files sdk
%defattr (-,root,root)
2012-04-20 09:32:05 +00:00
%{_includedir} /xorg/
2008-10-27 23:46:27 +00:00
%ifnarch s390 s390x
2012-04-20 09:32:05 +00:00
%{_libdir} /pkgconfig/*.pc
%{_datadir} /aclocal/*.m4
2006-12-18 14:48:26 +00:00
%endif
2020-06-30 20:43:25 +00:00
/usr/lib/rpm/macros.d/macros.xorg-server
2007-11-23 00:47:00 +00:00
2015-02-05 17:01:21 +00:00
%files source
2015-02-11 09:35:59 +00:00
%defattr (-,root,root)
2015-02-05 17:01:21 +00:00
/usr/src/xserver
2007-02-19 22:30:37 +00:00
%changelog