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
|
|
|
#
|
2013-01-08 12:48:17 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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
|
|
|
|
|
|
|
|
2006-12-18 15:48:26 +01:00
|
|
|
Name: xorg-x11-server
|
2013-03-18 10:21:12 +01:00
|
|
|
|
2013-09-16 11:19:09 +02:00
|
|
|
%define dirsuffix 1.14.3
|
2013-08-09 16:33:20 +02:00
|
|
|
|
2012-04-20 11:32:05 +02:00
|
|
|
Summary: X
|
2012-12-17 15:05:18 +01:00
|
|
|
License: GPL-2.0+ and MIT
|
2012-04-20 11:32:05 +02:00
|
|
|
Group: System/X11/Servers/XF86_4
|
2013-04-05 14:11:43 +02:00
|
|
|
Source0: http://xorg.freedesktop.org/archive/individual/xserver/xorg-server-%{dirsuffix}.tar.bz2
|
2012-04-20 11:32:05 +02:00
|
|
|
Source1: sysconfig.displaymanager.template
|
|
|
|
Source3: README.updates
|
|
|
|
Source4: xorgcfg.tar.bz2
|
|
|
|
Source8: xorg-backtrace
|
|
|
|
# RPM Macros to be installed. The ABI Versions will be injected by configure.
|
|
|
|
Source96: xorg-x11-server.macros.in
|
|
|
|
# Source98 and Source99 are used to ensure proper ABI provides.
|
|
|
|
Source98: xorg-server-provides
|
|
|
|
Source99: pre_checkin.sh
|
2012-08-22 10:30:45 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE n_xorg-x11-server-rpmmacros.patch dimstar@opensuse.org -- Provide RPM macros to require correct ABI Versions.
|
|
|
|
Patch0: n_xorg-x11-server-rpmmacros.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch2: N_p_default-module-path.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch16: N_p_xnest-ignore-getimage-errors.diff
|
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
|
|
|
|
BuildRequires: pkgconfig(damageproto) >= 1.1
|
2012-02-09 21:45:28 +01:00
|
|
|
BuildRequires: pkgconfig(dmx) >= 1.0.99.1
|
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)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
|
BuildRequires: pkgconfig(inputproto) >= 1.9.99.902
|
|
|
|
BuildRequires: pkgconfig(kbproto) >= 1.0.3
|
|
|
|
BuildRequires: pkgconfig(libdrm)
|
|
|
|
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
|
2012-03-23 00:38:35 +01:00
|
|
|
BuildRequires: pkgconfig(randrproto) >= 1.2.99.3
|
|
|
|
BuildRequires: pkgconfig(renderproto) >= 0.11
|
|
|
|
BuildRequires: pkgconfig(sm)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xau)
|
|
|
|
BuildRequires: pkgconfig(xau)
|
|
|
|
BuildRequires: pkgconfig(xaw7)
|
|
|
|
BuildRequires: pkgconfig(xcmiscproto) >= 1.2.0
|
|
|
|
BuildRequires: pkgconfig(xdmcp)
|
|
|
|
BuildRequires: pkgconfig(xext) >= 1.0.99.4
|
|
|
|
BuildRequires: pkgconfig(xextproto) >= 7.1.99
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xfont) >= 1.4.2
|
|
|
|
BuildRequires: pkgconfig(xi) >= 1.2.99.1
|
|
|
|
BuildRequires: pkgconfig(xkbfile)
|
|
|
|
BuildRequires: pkgconfig(xmu)
|
|
|
|
BuildRequires: pkgconfig(xp)
|
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(xprintutil)
|
|
|
|
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(xres)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
BuildRequires: pkgconfig(xtrans) >= 1.2.2
|
|
|
|
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
|
|
|
|
2010-12-21 04:21:00 +01:00
|
|
|
Version: 7.6_%{dirsuffix}
|
2012-03-23 00:38:35 +01:00
|
|
|
Release: 0
|
2012-04-20 11:32:05 +02:00
|
|
|
Url: http://xorg.freedesktop.org/
|
2006-12-18 15:48:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2012-04-20 11:32:05 +02:00
|
|
|
Requires: 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
|
2012-04-20 11:32:05 +02:00
|
|
|
%(cat %{SOURCE98})
|
2006-12-18 15:48:26 +01:00
|
|
|
%endif
|
2012-06-08 16:26:20 +02:00
|
|
|
Requires: Mesa
|
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
|
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
|
|
|
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch45: N_bug-197858_dpms.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch77: N_fbdevhw.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch79: N_edid_data_sanity_check.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch101: N_zap_warning_xserver.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch103: N_confine_to_shape.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch106: N_randr1_1-sig11.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch112: N_fix-dpi-values.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch127: N_dpms_screensaver.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2013-08-09 15:00:24 +02:00
|
|
|
Patch143: n_autoconf-On-Linux-give-fbdev-driver-a-higher-precedence-than-vesa.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch145: N_driver-autoconfig.diff
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch162: N_cache-xkbcomp-output-for-fast-start-up.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch200: N_bug534768-prefer_local_symbols.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch202: N_0001-Check-harder-for-primary-PCI-device.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch203: N_0001-Fix-segfault-when-killing-X-with-ctrl-alt-backspace.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch206: N_fix_fglrx_screendepth_issue.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch211: N_0001-Prevent-XSync-Alarms-from-senslessly-calling-CheckTr.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch213: N_xorg-server-xdmcp.patch
|
2012-04-20 11:32:05 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-08-22 10:30:45 +02:00
|
|
|
Patch222: N_sync-fix.patch
|
2013-03-18 10:21:12 +01:00
|
|
|
|
2012-10-15 16:25:23 +02:00
|
|
|
Patch226: u_vgaHW-no-legacy.patch
|
2013-03-07 14:48:37 +01:00
|
|
|
Patch228: u_aarch64-support.patch
|
2013-04-18 14:01:46 +02:00
|
|
|
Patch229: u_disable-acpi-code.patch
|
2013-06-07 09:50:33 +02:00
|
|
|
Patch230: u_xserver_xvfb-randr.patch
|
2006-12-18 15:48:26 +01:00
|
|
|
|
2013-06-19 18:07:25 +02:00
|
|
|
Patch240: U_revert_dri2_realloc_dri2_drawable_if-pixmap_serial_changes.patch
|
2013-10-15 15:48:46 +02:00
|
|
|
Patch241: u_Avoid-use-after-free-in-dix-dixfonts.c-doImageText.patch
|
2013-06-19 18:07:25 +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
|
|
|
|
Requires: 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
|
|
|
|
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
|
2012-04-20 11:32:05 +02:00
|
|
|
Requires: xorg-x11-proto-devel
|
|
|
|
Requires: xorg-x11-server
|
|
|
|
Requires: pkgconfig(fontconfig)
|
|
|
|
Requires: pkgconfig(fontenc)
|
|
|
|
Requires: pkgconfig(freetype2)
|
|
|
|
Requires: pkgconfig(ice)
|
|
|
|
Requires: pkgconfig(libdrm)
|
|
|
|
Requires: pkgconfig(sm)
|
|
|
|
Requires: pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xau)
|
|
|
|
Requires: pkgconfig(xdmcp)
|
|
|
|
Requires: pkgconfig(xext)
|
|
|
|
Requires: pkgconfig(xfixes)
|
|
|
|
Requires: pkgconfig(xkbfile)
|
|
|
|
Requires: pkgconfig(xmu)
|
|
|
|
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
|
|
|
|
|
|
|
|
%description sdk
|
|
|
|
This package contains the X.Org Server SDK.
|
|
|
|
|
|
|
|
%prep
|
2012-04-20 11:32:05 +02:00
|
|
|
%setup -q -n xorg-server-%{dirsuffix} -a4
|
|
|
|
# Early verification if the ABI Defines are correct. Let's not waste build cycles if the Provides are wrong at the end.
|
|
|
|
sh %{SOURCE99} --verify . %{SOURCE98}
|
|
|
|
cp %{SOURCE96} .
|
|
|
|
%patch0 -p1
|
2007-06-07 13:17:09 +02:00
|
|
|
%patch2
|
2012-04-20 11:32:05 +02:00
|
|
|
%patch16 -p1
|
2012-08-22 10:30:45 +02:00
|
|
|
|
|
|
|
### Needs to be rebased
|
|
|
|
#%patch45 -p0
|
2007-09-06 21:06:55 +02:00
|
|
|
%patch77
|
2007-09-22 23:43:29 +02:00
|
|
|
%patch79 -p1
|
2008-03-21 02:47:42 +01:00
|
|
|
%patch101 -p1
|
2008-04-03 02:42:46 +02:00
|
|
|
%patch103
|
2008-04-09 22:04:32 +02:00
|
|
|
%patch106 -p1
|
2008-05-26 23:18:34 +02:00
|
|
|
%patch112 -p0
|
2008-11-28 16:10:51 +01:00
|
|
|
%patch127 -p1
|
2013-08-09 15:00:24 +02:00
|
|
|
%patch143 -p1
|
2009-06-06 01:12:56 +02:00
|
|
|
%patch145 -p0
|
2011-09-06 18:02:28 +02:00
|
|
|
### disabled for now
|
|
|
|
#%patch162 -p1
|
2009-09-10 12:54:30 +02:00
|
|
|
%patch200 -p1
|
2009-10-12 12:15:18 +02:00
|
|
|
%patch202 -p1
|
|
|
|
%patch203 -p1
|
2010-04-07 01:52:32 +02:00
|
|
|
%patch206 -p0
|
2011-09-06 18:02:28 +02:00
|
|
|
### disabled for now
|
|
|
|
#%patch211 -p1
|
2010-07-19 20:18:08 +02:00
|
|
|
%patch213 -p1
|
2012-08-22 10:30:45 +02:00
|
|
|
### patch222 might not be applicable anymore
|
|
|
|
#%patch222 -p1
|
2012-10-15 16:25:23 +02:00
|
|
|
%patch226 -p0
|
2013-03-13 17:46:40 +01:00
|
|
|
%patch228 -p1
|
2013-04-18 14:01:46 +02:00
|
|
|
%patch229 -p1
|
2013-06-07 09:50:33 +02:00
|
|
|
%patch230 -p1
|
2006-12-18 15:48:26 +01:00
|
|
|
|
2013-06-19 18:07:25 +02:00
|
|
|
%patch240 -p1
|
2013-10-15 15:48:46 +02:00
|
|
|
%patch241 -p1
|
2013-06-19 18:07:25 +02:00
|
|
|
|
2006-12-18 15:48:26 +01:00
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2012-04-20 11:32:05 +02:00
|
|
|
%configure CFLAGS="%{optflags} -fno-strict-aliasing" \
|
2006-12-18 15:48:26 +01:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-install-libxf86config \
|
|
|
|
--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 \
|
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 \
|
2010-08-04 23:05:41 +02:00
|
|
|
--with-sha1=libcrypto \
|
2010-04-13 21:08:40 +02:00
|
|
|
%ifarch s390 s390x
|
|
|
|
--disable-xorg \
|
|
|
|
--disable-aiglx \
|
|
|
|
%else
|
|
|
|
--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
|
2010-03-24 17:06:52 +01:00
|
|
|
%endif
|
2006-12-18 15:48:26 +01:00
|
|
|
--with-log-dir="/var/log" \
|
|
|
|
--with-os-name="openSUSE" \
|
|
|
|
--with-os-vendor="SUSE LINUX" \
|
2010-03-23 14:24:35 +01:00
|
|
|
--with-fontrootdir="/usr/share/fonts" \
|
2006-12-18 15:48:26 +01:00
|
|
|
--with-xkb-path="/usr/share/X11/xkb" \
|
2011-07-11 12:25:51 +02:00
|
|
|
--with-xkb-output="/var/lib/xkb/compiled" \
|
|
|
|
--with-default-font-path="/usr/share/fonts/misc:unscaled,\
|
|
|
|
/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 "*.la" | \
|
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
|
|
|
|
ln -snf ../../../usr/bin/Xorg %{buildroot}%{_localstatedir}/lib/X11/X
|
|
|
|
ln -snf ../../var/lib/X11/X %{buildroot}%{_bindir}/X
|
|
|
|
%if 0%{?suse_version} > 1120
|
2011-07-11 12:25:51 +02:00
|
|
|
%ifnarch s390 s390x
|
2012-04-20 11:32:05 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
|
|
|
|
cp %{buildroot}/%{_datadir}/X11/xorg.conf.d/10-evdev.conf %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
|
2011-07-11 12:25:51 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
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
|
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
|
2012-04-20 11:32:05 +02:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/X11/10-evdev.conf
|
2008-10-28 00:46:27 +01:00
|
|
|
make -C hw/xfree86/parser
|
2012-04-20 11:32:05 +02:00
|
|
|
mkdir -p %{buildroot}%{_includedir}/xorg \
|
|
|
|
%{buildroot}%{_libdir}
|
2008-10-28 00:46:27 +01:00
|
|
|
install -m 644 hw/xfree86/parser/{xf86Parser.h,xf86Optrec.h} \
|
2012-04-20 11:32:05 +02:00
|
|
|
%{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
|
2011-11-28 19:06:42 +01:00
|
|
|
if [ -f hw/xfree86/parser/.libs/libxf86config.a ] ; then
|
|
|
|
install -m 644 hw/xfree86/parser/.libs/libxf86config.a \
|
2012-04-20 11:32:05 +02:00
|
|
|
%{buildroot}//usr/%{_lib}
|
2011-11-28 19:06:42 +01:00
|
|
|
else
|
|
|
|
install -m 644 hw/xfree86/parser/libxf86config.a \
|
2012-04-20 11:32:05 +02:00
|
|
|
%{buildroot}//usr/%{_lib}
|
2011-11-28 19:06:42 +01:00
|
|
|
fi
|
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
|
|
|
|
install -D xorg-x11-server.macros %{buildroot}%{_sysconfdir}/rpm/macros.xorg-server
|
2006-12-18 15:48:26 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%ifnarch s390 s390x
|
2009-01-19 02:20:48 +01:00
|
|
|
%{fillup_only -an displaymanager}
|
2006-12-18 15:48:26 +01:00
|
|
|
if [ -f etc/X11/xorg.conf ]; then
|
2009-10-21 02:06:49 +02:00
|
|
|
# Document how to restore previous input driver behaviour in xorg.conf files created
|
|
|
|
# on openSUSE <= 11.1
|
2009-09-16 23:20:07 +02:00
|
|
|
if ! grep -q "will be disabled unless 'Option \"AutoAddDevices\" \"off\"'" etc/X11/xorg.conf; then
|
2009-10-21 02:06:49 +02:00
|
|
|
if ! grep -q "\"AutoAddDevices\" \"off\"" etc/X11/xorg.conf; then
|
2009-09-16 23:20:07 +02:00
|
|
|
sed -i '
|
|
|
|
/Section "ServerFlags"/{
|
|
|
|
h
|
|
|
|
g
|
|
|
|
a\
|
2009-10-21 02:06:49 +02:00
|
|
|
# Uncomment the following option to reenable kbd/mouse driver input sections. \
|
|
|
|
# Otherwise evdev driver is used. \
|
|
|
|
#Option "AutoAddDevices" "off"
|
2009-09-16 23:20:07 +02:00
|
|
|
}
|
|
|
|
' etc/X11/xorg.conf
|
2009-10-21 02:06:49 +02:00
|
|
|
fi
|
2009-09-16 23:20:07 +02:00
|
|
|
fi
|
2006-12-18 15:48:26 +01:00
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%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
|
|
|
|
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-evdev.conf
|
2011-07-11 12:25:51 +02:00
|
|
|
%dir %{_datadir}/X11/xorg.conf.d
|
|
|
|
%{_datadir}/X11/xorg.conf.d/10-evdev.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
|
2012-04-20 11:32:05 +02:00
|
|
|
%{_bindir}/X
|
|
|
|
%{_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
|
2010-04-13 21:08:40 +02:00
|
|
|
%endif
|
2012-04-20 11:32:05 +02:00
|
|
|
%{_bindir}/Xvfb
|
|
|
|
%{_bindir}/xorg-backtrace
|
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/
|
|
|
|
%{_libdir}/*.a
|
2008-10-28 00:46:27 +01:00
|
|
|
%ifnarch s390 s390x
|
2012-04-20 11:32:05 +02:00
|
|
|
%exclude %{_libdir}/libxf86config.la
|
|
|
|
%{_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
|
|
|
|
2007-02-19 23:30:37 +01:00
|
|
|
%changelog
|