2006-12-18 15:48:26 +01:00
#
2011-02-03 22:08:34 +01:00
# spec file for package xorg-x11-server
2006-12-18 15:48:26 +01:00
#
2016-01-08 18:47:40 +01:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
2006-12-18 15:48:26 +01:00
#
2008-08-06 01:59:36 +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.
2006-12-18 15:48:26 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-04-16 12:08:22 +02:00
2015-07-27 16:24:15 +02:00
%ifarch s390 s390x
%define have_wayland 0
%else
2016-03-22 18:08:06 +01:00
%define pci_ids_dir %{_sysconfdir}/X11/xorg_pci_ids
2016-01-10 20:01:24 +01:00
%if 0%{?suse_version} >= 1330 || 0%{?build_xwayland}
2015-07-27 16:24:15 +02:00
%define have_wayland 1
%endif
%endif
2016-04-12 17:37:50 +02:00
%define build_suid_wrapper 0
%if 0%{!?build_suid_wrapper:1}
%ifarch s390 s390x
%define build_suid_wrapper 0
%else
2016-04-12 11:35:45 +02:00
%if 0%{?suse_version} >= 1330
%define build_suid_wrapper 1
%define suid_wrapper_dir %{_libexecdir}
%else
%define build_suid_wrapper 0
%endif
2016-04-12 17:37:50 +02:00
%endif
%endif
2015-07-27 16:24:15 +02:00
2006-12-18 15:48:26 +01:00
Name : xorg-x11-server
2016-11-21 23:24:43 +01:00
Version : 1.19.0
Release : 0
Url : http://xorg.freedesktop.org/
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2013-08-09 16:33:20 +02:00
2012-04-20 11:32:05 +02:00
Summary : X
2016-11-15 14:35:55 +01:00
# Source URL: http://xorg.freedesktop.org/archive/individual/xserver/
2014-01-07 17:02:42 +01:00
License : MIT
2012-04-20 11:32:05 +02:00
Group : System/X11/Servers/XF86_4
2016-11-21 23:24:43 +01:00
Source0 : xorg-server-%{version} .tar.bz2
2012-04-20 11:32:05 +02:00
Source1 : sysconfig.displaymanager.template
2013-12-12 15:33:35 +01:00
Source2 : README.updates
Source3 : xorgcfg.tar.bz2
Source4 : xorg-backtrace
2016-02-25 21:56:47 +01:00
Source5 : 50-extensions.conf
2016-05-09 00:14:51 +02:00
Source6 : modesetting.ids
2012-04-20 11:32:05 +02:00
# RPM Macros to be installed. The ABI Versions will be injected by configure.
2013-12-12 15:33:35 +01: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 03:58:15 +01:00
2012-03-23 00:38:35 +01:00
BuildRequires : Mesa-devel
BuildRequires : bison
BuildRequires : flex
BuildRequires : libtool
BuildRequires : pkgconfig
BuildRequires : pkgconfig(bigreqsproto) >= 1.1.0
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(compositeproto)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(damageproto) >= 1.1
2015-02-23 15:34:43 +01:00
BuildRequires : pkgconfig(dbus-1) >= 1.0
2012-02-09 21:45:28 +01:00
BuildRequires : pkgconfig(dmx) >= 1.0.99.1
2014-10-25 10:58:35 +02:00
BuildRequires : pkgconfig(dri) >= 7.8.0
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(dri2proto)
BuildRequires : pkgconfig(dri3proto)
2014-03-19 15:38:37 +01:00
BuildRequires : pkgconfig(epoxy) >= 1.1
2015-07-27 16:24:15 +02:00
%if 0%{?have_wayland} == 1
BuildRequires : pkgconfig(wayland-client)
2016-11-21 23:24:43 +01:00
BuildRequires : pkgconfig(wayland-protocols)
2015-07-27 16:24:15 +02:00
%endif
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(fixesproto) >= 4.1
BuildRequires : pkgconfig(fontconfig)
BuildRequires : pkgconfig(fontenc)
BuildRequires : pkgconfig(fontsproto)
BuildRequires : pkgconfig(fontutil)
BuildRequires : pkgconfig(freetype2)
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(glproto)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(ice)
BuildRequires : pkgconfig(inputproto) >= 1.9.99.902
BuildRequires : pkgconfig(kbproto) >= 1.0.3
BuildRequires : pkgconfig(libdrm)
2016-12-13 12:13:36 +01:00
BuildRequires : pkgconfig(libsystemd)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(openssl)
2012-02-09 22:17:07 +01:00
BuildRequires : pkgconfig(pciaccess) >= 0.8.0
2012-05-09 18:43:31 +02:00
BuildRequires : pkgconfig(pixman-1) >= 0.24
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(presentproto)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(randrproto) >= 1.2.99.3
BuildRequires : pkgconfig(renderproto) >= 0.11
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(resourceproto)
BuildRequires : pkgconfig(scrnsaverproto)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(sm)
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(xau)
BuildRequires : pkgconfig(xaw7)
2013-11-30 03:58:15 +01:00
BuildRequires : pkgconfig(xcb-aux)
BuildRequires : pkgconfig(xcb-icccm)
BuildRequires : pkgconfig(xcb-image)
BuildRequires : pkgconfig(xcb-keysyms)
2015-02-06 11:07:01 +01:00
BuildRequires : pkgconfig(xcb-renderutil)
2012-03-23 00:38:35 +01: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 11:02:48 +02:00
BuildRequires : pkgconfig(xf86dgaproto)
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(xf86driproto)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(xfixes)
2016-11-21 23:24:43 +01:00
BuildRequires : pkgconfig(xfont2)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(xi) >= 1.2.99.1
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(xineramaproto)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(xkbfile)
BuildRequires : pkgconfig(xmu)
2014-04-25 10:40:58 +02:00
BuildRequires : pkgconfig(xorg-macros)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(xp)
BuildRequires : pkgconfig(xpm)
BuildRequires : pkgconfig(xprintutil)
BuildRequires : pkgconfig(xproto) >= 7.0.17
BuildRequires : pkgconfig(xrender)
BuildRequires : pkgconfig(xres)
2013-11-30 03:58:15 +01:00
BuildRequires : pkgconfig(xshmfence)
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(xt)
2013-11-30 03:58:15 +01:00
BuildRequires : pkgconfig(xtrans) >= 1.3.1
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(xtst) >= 1.0.99.2
BuildRequires : pkgconfig(xv)
2010-03-24 17:06:52 +01:00
### udev support (broken on openSUSE 11.2, see also bnc #589997)
2012-04-20 11:32:05 +02:00
%if 0%{?suse_version} >= 1130
2012-03-23 00:38:35 +01:00
BuildRequires : pkgconfig(libudev) >= 143
2010-03-24 17:06:52 +01:00
%endif
2013-08-09 16:33:20 +02:00
2009-01-19 02:20:48 +01:00
%ifnarch s390 s390x
2012-04-20 11:32:05 +02:00
Requires(pre) : %fillup_prereq
2009-01-19 02:20:48 +01:00
%endif
2012-04-20 11:32:05 +02:00
Requires : pkgconfig
2012-06-14 16:19:44 +02:00
Requires : xkbcomp
2016-11-15 14:35:55 +01:00
Recommends: xorg-x11-fonts-core
2006-12-18 15:48:26 +01:00
%ifnarch s390 s390x
2012-05-09 18:43:31 +02:00
Requires : libpixman-1-0 >= 0.24
2013-12-12 15:33:35 +01:00
%(cat %{SOURCE91} )
2006-12-18 15:48:26 +01:00
%endif
2012-06-08 16:26:20 +02:00
Requires : Mesa
2014-08-12 14:35:17 +02:00
%if 0%{?suse_version} >= 1315
Requires(post) : update-alternatives
Requires(postun) : update-alternatives
%endif
2012-04-20 11:32:05 +02:00
Provides : xorg-x11-Xvfb
Provides : xorg-x11-server-glx
Obsoletes : xorg-x11-Xvfb
Obsoletes : xorg-x11-server-glx
2014-03-19 15:38:37 +01:00
2014-03-21 10:40:55 +01:00
Provides : glamor = %{version}
2014-03-19 15:38:37 +01:00
Provides : glamor-egl = %{version}
2014-03-21 10:40:55 +01:00
Obsoletes : glamor < %{version}
2016-11-21 23:24:43 +01:00
Obsoletes : glamor < 7.6_%{version}
2014-03-19 15:38:37 +01:00
Obsoletes : glamor-egl < %{version}
2016-11-21 23:24:43 +01:00
Obsoletes : glamor-egl < 7.6_%{version}
2014-03-19 15:38:37 +01:00
2015-02-06 11:07:01 +01:00
Provides : xf86-video-modesetting = %{version}
Obsoletes : xf86-video-modesetting < %{version}
2016-11-21 23:24:43 +01:00
Obsoletes : xf86-video-modesetting < 7.6_%{version}
Provides : xorg-x11-server = 7.6_%{version}
Obsoletes : xorg-x11-server < 7.6_%{version}
2015-02-06 11:07:01 +01:00
2015-09-25 14:04:06 +02: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 12:48:17 +01:00
# Xvfb requires keyboard files as well (bnc#797124)
Requires : xkeyboard-config
2013-08-09 16:33:20 +02:00
2013-12-12 15:33:35 +01: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 16:04:29 +02: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
2016-02-25 21:56:47 +01: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 15:33:35 +01:00
# PATCH-FIX-UPSTREAM u_x86emu-include-order.patch schwab@suse.de -- Change include order to avoid conflict with system header, remove duplicate definitions
Patch104 : u_xorg-server-xdmcp.patch
2014-05-31 01:47:45 +02:00
Patch112 : u_render-Cast-color-masks-to-unsigned-long-before-shifting-them.patch
2015-06-17 12:50:34 +02:00
2016-05-16 22:10:30 +02:00
Patch115 : N_Disable-HW-Cursor-for-cirrus-and-mgag200-kernel-modules.patch
2015-06-17 12:50:34 +02:00
2015-04-20 17:18:07 +02:00
Patch117 : xorg-x11-server-byte-order.patch
2013-12-12 15:33:35 +01:00
2015-09-25 14:04:06 +02:00
Patch160 : u_vesa-Add-VBEDPMSGetCapabilities-VBEDPMSGet.patch
2016-01-11 22:50:47 +01:00
Patch206 : u_busfault_sigaction-Only-initialize-pointer-when-matched.patch
2016-01-15 20:03:26 +01:00
Patch208 : u_Panning-Set-panning-state-in-xf86RandR12ScreenSetSize.patch
2016-02-10 16:09:02 +01:00
Patch209 : u_pci-primary-Fix-up-primary-PCI-device-detection-for-the-platfrom-bus.patch
2016-03-04 19:45:51 +01:00
Patch210 : u_os-connections-Check-for-stale-FDs.patch
2015-07-30 12:50:09 +02:00
2014-08-05 08:23:18 +02: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 14:57:39 +02:00
2006-12-18 15:48:26 +01:00
%description
This package contains the X.Org Server.
2007-05-23 12:28:42 +02:00
%package extra
2011-02-03 18:44:25 +01:00
Summary : Additional Xservers (Xdmx, Xephyr, Xnest)
2007-05-23 12:28:42 +02:00
Group : System/X11/Servers/XF86_4
2012-04-20 11:32:05 +02:00
Requires : Mesa
2012-06-14 16:09:52 +02:00
Requires : xkbcomp
2012-04-20 11:32:05 +02:00
Requires : xkeyboard-config
2016-11-15 14:35:55 +01:00
Recommends: xorg-x11-fonts-core
2011-02-03 18:44:25 +01:00
Provides : xorg-x11-Xnest
Obsoletes : xorg-x11-Xnest
2007-05-23 12:28:42 +02:00
%description extra
2011-02-03 18:44:25 +01:00
This package contains additional Xservers (Xdmx, Xephyr, Xnest).
2007-05-23 12:28:42 +02:00
2016-01-08 18:47:40 +01: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 14:35:55 +01:00
Recommends: xorg-x11-fonts-core
2016-01-08 18:47:40 +01:00
%description wayland
This package contains the Xserver running on the Wayland Display Server.
%endif
2016-04-12 11:35:45 +02:00
%if 0%{?build_suid_wrapper} == 1
%package wrapper
Summary : Xserver SUID Wrapper
Group : System/X11/Servers/XF86_4
2016-04-12 17:37:50 +02:00
PreReq : permissions
2016-04-12 11:35:45 +02:00
Requires : xorg-x11-server == %{version}
2016-11-21 23:24:43 +01:00
Provides : xorg-x11-server-wayland = 7.6_%{version}
Obsoletes : xorg-x11-server-wayland < 7.6_%{version}
2016-04-12 11:35:45 +02:00
%description wrapper
This package contains an SUID wrapper for the Xserver.
%endif
2006-12-18 15:48:26 +01:00
%package sdk
2012-04-20 11:32:05 +02:00
Summary : X
2006-12-18 15:48:26 +01:00
Group : System/Libraries
2016-03-29 10:59:45 +02:00
Requires : autoconf
Requires : automake
Requires : c_compiler
Requires : libtool
2012-04-20 11:32:05 +02:00
Requires : xorg-x11-server
Requires : pkgconfig(fontconfig)
Requires : pkgconfig(fontenc)
Requires : pkgconfig(freetype2)
Requires : pkgconfig(ice)
Requires : pkgconfig(libdrm)
2016-03-29 10:59:45 +02:00
Requires : pkgconfig(libevdev)
Requires : pkgconfig(libudev)
Requires : pkgconfig(mtdev)
2012-04-20 11:32:05 +02: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 10:59:45 +02:00
Requires : pkgconfig(xorg-macros)
2012-04-20 11:32:05 +02: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 15:48:26 +01:00
Provides : xorg-x11-sdk
Obsoletes : xorg-x11-sdk
2014-03-22 10:36:37 +01:00
Provides : glamor-devel = %{version}
Obsoletes : glamor-devel < %{version}
2016-11-21 23:24:43 +01: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 15:48:26 +01:00
%description sdk
This package contains the X.Org Server SDK.
2015-02-05 18:01:21 +01: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 15:48:26 +01:00
%prep
2016-11-21 23:24:43 +01:00
%setup -q -n xorg-server-%{version} -a3
2012-04-20 11:32:05 +02: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 15:33:35 +01:00
sh %{SOURCE92} --verify . %{SOURCE91}
2014-03-19 15:38:37 +01:00
2014-08-15 14:22:05 +02:00
%if 0%{?suse_version} < 1315
2013-12-12 15:33:35 +01:00
%patch1
2014-08-15 14:22:05 +02:00
%endif
2013-12-12 15:33:35 +01:00
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch6 -p0
2016-04-12 11:35:45 +02:00
%patch7 -p1
2016-04-12 16:04:29 +02:00
%patch8 -p1
%patch9 -p1
2014-03-19 15:38:37 +01:00
#
2016-02-25 21:56:47 +01:00
%patch100 -p1
2016-03-04 19:45:51 +01:00
#%patch101 -p1
2013-12-12 15:33:35 +01:00
%patch104 -p1
2015-06-17 12:50:34 +02:00
2014-05-31 01:47:45 +02:00
%patch112 -p1
2015-06-17 12:50:34 +02:00
2015-02-16 17:06:30 +01:00
%patch115 -p1
2015-06-17 12:50:34 +02:00
2015-04-20 17:18:07 +02:00
%patch117 -p1
2015-02-06 11:07:01 +01:00
2015-09-25 14:04:06 +02:00
%patch160 -p1
2016-01-11 22:50:47 +01:00
%patch206 -p1
2016-01-15 20:03:26 +01:00
%patch208 -p1
2016-02-10 16:09:02 +01:00
%patch209 -p1
2015-07-30 12:50:09 +02:00
2016-11-21 23:24:43 +01:00
### not applicable anymore
#%patch210 -p1
2016-07-19 14:02:42 +02:00
2016-11-21 23:24:43 +01:00
### disabled for now
#%patch1000 -p1
2013-11-30 03:58:15 +01:00
2011-09-06 18:02:28 +02:00
### disabled for now
2014-08-05 08:23:18 +02:00
#%patch1162 -p1
2011-09-06 18:02:28 +02:00
### disabled for now
2014-08-05 08:23:18 +02:00
#%patch1211 -p1
2012-08-22 10:30:45 +02:00
### patch222 might not be applicable anymore
2014-08-05 08:23:18 +02:00
#%patch1222 -p1
2014-05-19 13:01:26 +02:00
2006-12-18 15:48:26 +01:00
%build
2016-01-15 20:03:26 +01:00
test -e source-file-list || \
2016-04-12 11:35:45 +02:00
find -L . -type f \! -name '*.orig' \! -path ./source-file-list > \
2016-01-15 20:03:26 +01:00
source-file-list
2006-12-18 15:48:26 +01:00
autoreconf -fi
2016-03-22 13:26:09 +01:00
%if 0%{?pci_ids_dir:1}
export PCI_TXT_IDS_DIR=%{pci_ids_dir}
%endif
2012-04-20 11:32:05 +02:00
%configure CFLAGS=" %{optflags} - f n o - s t r i c t - a l i a s i n g " \
2006-12-18 15:48:26 +01:00
--sysconfdir=/etc \
--enable-xdmcp \
--enable-xdm-auth-1 \
2008-07-24 22:22:10 +02:00
--enable-dri \
2009-04-29 00:58:35 +02:00
--enable-dri2 \
2013-11-30 03:58:15 +01:00
--enable-dri3 \
2014-03-19 15:38:37 +01:00
--enable-glamor \
2010-04-26 23:16:24 +02:00
--enable-dmx \
2006-12-18 15:48:26 +01:00
--enable-xnest \
--enable-kdrive \
2011-02-27 11:48:58 +01:00
--enable-kdrive-evdev \
2006-12-18 15:48:26 +01:00
--enable-xephyr \
2011-07-11 12:25:51 +02:00
--disable-xfake \
--disable-xfbdev \
2008-08-06 01:59:36 +02:00
--enable-record \
2009-01-29 23:25:39 +01:00
--enable-xcsecurity \
2015-02-23 15:34:43 +01:00
--enable-systemd-logind \
2010-08-04 23:05:41 +02:00
--with-sha1=libcrypto \
2013-11-30 03:58:15 +01:00
--disable-linux-acpi \
2014-01-07 14:28:48 +01:00
--disable-linux-apm \
2015-06-05 09:26:26 +02:00
%ifarch s390 s390x
--disable-xorg \
--disable-aiglx \
%else
2010-04-13 21:08:40 +02:00
--enable-xorg \
2012-04-20 11:32:05 +02:00
%if 0%{?suse_version} > 1120
2010-03-20 03:42:15 +01:00
--enable-config-udev \
2010-04-13 21:08:40 +02:00
%endif
2015-07-27 16:24:15 +02:00
%endif
%if 0%{?have_wayland} == 1
--enable-xwayland \
%else
--disable-xwayland \
2016-04-07 18:03:27 +02:00
%endif
2016-04-12 11:35:45 +02:00
%if 0%{?build_suid_wrapper} == 1
2016-04-07 18:03:27 +02:00
--enable-suid-wrapper \
2016-04-12 11:35:45 +02:00
--libexecdir=%{suid_wrapper_dir} \
2010-03-24 17:06:52 +01:00
%endif
2006-12-18 15:48:26 +01: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 14:24:35 +01:00
--with-fontrootdir=" / u s r / s h a r e / f o n t s " \
2006-12-18 15:48:26 +01:00
--with-xkb-path=" / u s r / s h a r e / X 1 1 / x k b " \
2011-07-11 12:25:51 +02:00
--with-xkb-output=" / v a r / l i b / x k b / c o m p i l e d " \
--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 , \
/usr/share/fonts/Type1/,/usr/share/fonts/100dpi:unscaled,\
2012-12-07 12:00:51 +01:00
%if 0%{?suse_version} > 1210
/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/ghostscript/,\
%else
2011-07-11 12:25:51 +02:00
/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/URW/,\
2012-12-07 12:00:51 +01:00
%endif
2011-07-11 12:25:51 +02:00
/usr/share/fonts/cyrillic:unscaled,\
2012-01-13 15:52:33 +01:00
/usr/share/fonts/misc/sgi:unscaled,\
2011-07-11 12:25:51 +02:00
/usr/share/fonts/truetype/,built-ins"
2012-03-23 00:38:35 +01:00
make %{?_smp_mflags}
make -C hw/kdrive %{?_smp_mflags}
2006-12-18 15:48:26 +01:00
%install
2012-04-20 11:32:05 +02:00
%make_install
make -C hw/kdrive install DESTDIR=%{buildroot}
2006-12-18 15:48:26 +01:00
%ifnarch s390 s390x
# remove .la files
2012-04-20 11:32:05 +02:00
find %{buildroot} %{_libdir} /xorg/modules/ -name " * . l a " | \
2006-12-18 15:48:26 +01:00
xargs rm
install -m 644 hw/xfree86/parser/{xf86Parser.h,xf86Optrec.h} \
2012-04-20 11:32:05 +02:00
%{buildroot} %{_includedir} /xorg
2010-12-03 04:32:04 +01:00
# bnc #632737
2012-04-20 11:32:05 +02:00
chmod u-s %{buildroot} %{_bindir} /Xorg
mkdir -p %{buildroot} %{_localstatedir} /lib/X11
2016-03-22 13:26:09 +01:00
%if 0%{?pci_ids_dir:1}
%__mkdir_p %{buildroot} %{pci_ids_dir}
2016-05-09 00:14:51 +02:00
install -m 644 %{S:6} %{buildroot} %{pci_ids_dir}
2016-03-22 13:26:09 +01:00
%endif
2012-04-20 11:32:05 +02:00
ln -snf ../../../usr/bin/Xorg %{buildroot} %{_localstatedir} /lib/X11/X
ln -snf ../../var/lib/X11/X %{buildroot} %{_bindir} /X
%if 0%{?suse_version} > 1120
2015-10-28 18:25:56 +01:00
# get rid of evdev config file, since it's meanwhile shipped with
# evdev driver itself (since 2.10.0)
rm -f %{buildroot} /%{_datadir} /X11/xorg.conf.d/10-evdev.conf
2012-04-20 11:32:05 +02:00
mkdir -p %{buildroot} %{_sysconfdir} /X11/xorg.conf.d
2015-10-28 18:25:56 +01:00
cp %{buildroot} /%{_datadir} /X11/xorg.conf.d/10-quirks.conf %{buildroot} %{_sysconfdir} /X11/xorg.conf.d/
2016-02-25 21:56:47 +01:00
%{__install} -m 644 %{S:5} %{buildroot} %{_sysconfdir} /X11/xorg.conf.d/
2011-07-11 12:25:51 +02:00
%endif
2014-08-15 14:22:05 +02:00
%if 0%{?suse_version} < 1315
2012-04-20 11:32:05 +02: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 14:22:05 +02:00
%endif
2010-04-13 21:08:40 +02:00
%else
2012-04-20 11:32:05 +02:00
rm -f %{buildroot} %{_datadir} /aclocal/*.m4
2010-04-13 21:08:39 +02:00
%endif
2008-07-05 02:00:28 +02:00
%ifarch s390 s390x
2015-10-28 18:25:56 +01:00
rm -f %{buildroot} %{_sysconfdir} /X11/10-quirks.conf
2015-06-05 09:26:26 +02:00
mkdir -p %{buildroot} %{_includedir} /xorg
2011-12-01 12:53:28 +01:00
install -m 644 include/list.h \
2012-04-20 11:32:05 +02:00
%{buildroot} %{_includedir} /xorg
2008-07-05 02:00:28 +02:00
%endif
2009-01-19 02:20:48 +01:00
%ifnarch s390 s390x
2012-04-20 11:32:05 +02:00
mkdir -p %{buildroot} %{_localstatedir} /adm/fillup-templates
2009-01-19 02:20:48 +01:00
install -m 644 %_sourcedir /sysconfig.displaymanager.template \
2012-04-20 11:32:05 +02:00
%{buildroot} %{_localstatedir} /adm/fillup-templates/sysconfig.displaymanager-%{name}
2009-01-19 02:20:48 +01:00
%endif
2012-04-20 11:32:05 +02:00
install -m 755 $RPM_SOURCE_DIR /xorg-backtrace %{buildroot} %{_bindir} /xorg-backtrace
2016-01-15 20:03:26 +01:00
cp %{S:90} .
./config.status --file xorg-x11-server.macros
2012-04-20 11:32:05 +02:00
install -D xorg-x11-server.macros %{buildroot} %{_sysconfdir} /rpm/macros.xorg-server
2014-08-12 14:35:17 +02:00
%ifnarch s390 s390x
%if 0%{?suse_version} >= 1315
2014-08-13 10:28:25 +02: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 14:35:17 +02:00
ln -snf %{_sysconfdir} /alternatives/libglx.so %{buildroot} %{_libdir} /xorg/modules/extensions/libglx.so
%endif
%endif
2006-12-18 15:48:26 +01:00
2015-02-05 18:01:21 +01:00
mkdir -p %{buildroot} /usr/src/xserver
xargs cp --parents --target-directory=%{buildroot} /usr/src/xserver < source-file-list
2006-12-18 15:48:26 +01:00
%post
%ifnarch s390 s390x
2009-01-19 02:20:48 +01:00
%{fillup_only -an displaymanager}
2014-05-28 13:03:19 +02: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 09:51:33 +01:00
mv etc/X11/xorg.conf etc/X11/xorg.conf.sle11
2014-05-28 13:03:19 +02: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 02:06:49 +02:00
fi
2006-12-18 15:48:26 +01:00
fi
2014-08-12 14:35:17 +02:00
%if 0%{?suse_version} >= 1315
%_sbindir /update-alternatives \
2014-08-13 10:28:25 +02:00
--force --install %{_libdir} /xorg/modules/extensions/libglx.so libglx.so %{_libdir} /xorg/modules/extensions/xorg/xorg-libglx.so 50
2014-08-12 14:35:17 +02:00
%endif
2006-12-18 15:48:26 +01:00
%endif
exit 0
2014-08-12 14:35:17 +02:00
%ifnarch s390 s390x
%if 0%{?suse_version} >= 1315
%postun
if [ " $ 1 " = 0 ] ; then
2014-08-13 10:28:25 +02: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 14:35:17 +02:00
fi
%endif
%endif
2016-04-12 17:37:50 +02: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 15:48:26 +01:00
%files
%defattr (-,root,root)
2010-04-13 21:08:39 +02:00
%ifnarch s390 s390x
2012-04-20 11:32:05 +02:00
%if 0%{?suse_version} > 1120
%dir %{_sysconfdir} /X11/xorg.conf.d
2016-03-22 13:26:09 +01:00
%if 0%{?pci_ids_dir:1}
%dir %{pci_ids_dir}
2016-05-09 00:14:51 +02:00
%{pci_ids_dir} /modesetting.ids
2016-03-22 13:26:09 +01:00
%endif
2015-10-28 18:25:56 +01:00
%config (noreplace) %{_sysconfdir} /X11/xorg.conf.d/10-quirks.conf
2016-02-25 21:56:47 +01:00
%config (noreplace) %{_sysconfdir} /X11/xorg.conf.d/50-extensions.conf
2011-07-11 12:25:51 +02:00
%dir %{_datadir} /X11/xorg.conf.d
2013-11-30 03:58:15 +01:00
%{_datadir} /X11/xorg.conf.d/10-*.conf
2010-04-13 21:08:40 +02:00
%endif
2012-04-20 11:32:05 +02:00
%dir %{_localstatedir} /lib/X11
2006-12-18 15:48:26 +01:00
%endif
2012-04-20 11:32:05 +02:00
%dir %{_localstatedir} /lib/xkb
%dir %{_localstatedir} /lib/xkb/compiled
%dir %{_libdir} /xorg
%{_libdir} /xorg/protocol.txt
2010-04-13 21:08:39 +02:00
%{_mandir} /man1/*
2010-05-14 00:33:13 +02:00
%exclude %{_mandir} /man1/Xdmx.1*
2010-04-13 21:08:40 +02:00
%exclude %{_mandir} /man1/Xephyr.1*
2010-04-13 21:08:39 +02:00
%exclude %{_mandir} /man1/Xnest.1*
2012-04-20 11:32:05 +02:00
%{_localstatedir} /lib/xkb/compiled/README.compiled
2010-04-13 21:08:39 +02:00
%ifnarch s390 s390x
2012-10-01 20:08:05 +02:00
%{_bindir} /Xorg
2016-04-12 11:35:45 +02:00
%if 0%{?build_suid_wrapper} == 1
%{suid_wrapper_dir} /Xorg
%endif
2012-04-20 11:32:05 +02:00
%{_bindir} /X
2014-04-09 16:54:54 +02:00
2012-04-20 11:32:05 +02:00
%{_bindir} /cvt
%{_bindir} /gtf
%{_libdir} /xorg/modules/
2010-04-13 21:08:40 +02:00
%{_mandir} /man4/*
%{_mandir} /man5/*
2012-04-20 11:32:05 +02:00
%{_localstatedir} /adm/fillup-templates/sysconfig.displaymanager-%{name}
%{_localstatedir} /lib/X11/X
2014-08-13 14:40:28 +02:00
%if 0%{?suse_version} >= 1315
2014-08-13 10:28:25 +02:00
%ghost %{_sysconfdir} /alternatives/libglx.so
2010-04-13 21:08:40 +02:00
%endif
2014-08-13 14:40:28 +02:00
%endif
2016-01-08 18:47:40 +01:00
%{_bindir} /Xvfb
%{_bindir} /xorg-backtrace
2015-07-27 16:24:15 +02:00
%if 0%{?have_wayland} == 1
2016-01-08 18:47:40 +01:00
%files wayland
2015-07-27 16:24:15 +02:00
%{_bindir} /Xwayland
%endif
2007-05-23 12:28:42 +02:00
2016-04-12 11:35:45 +02: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 12:28:42 +02:00
%files extra
%defattr (-,root,root)
2012-04-20 11:32:05 +02: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 23:16:24 +02:00
%{_mandir} /man1/Xdmx.1*
2010-04-13 21:08:40 +02:00
%{_mandir} /man1/Xephyr.1*
2008-01-26 18:22:58 +01:00
%{_mandir} /man1/Xnest.1*
2006-12-18 15:48:26 +01:00
%files sdk
%defattr (-,root,root)
2012-04-20 11:32:05 +02:00
%{_includedir} /xorg/
2008-10-28 00:46:27 +01:00
%ifnarch s390 s390x
2012-04-20 11:32:05 +02:00
%{_libdir} /pkgconfig/*.pc
%{_datadir} /aclocal/*.m4
2006-12-18 15:48:26 +01:00
%endif
2012-04-20 11:32:05 +02:00
%{_sysconfdir} /rpm/macros.xorg-server
2007-11-23 01:47:00 +01:00
2015-02-05 18:01:21 +01:00
%files source
2015-02-11 10:35:59 +01:00
%defattr (-,root,root)
2015-02-05 18:01:21 +01:00
/usr/src/xserver
2007-02-19 23:30:37 +01:00
%changelog