]> git.pld-linux.org Git - packages/xorg-xserver-server.git/blame - xorg-xserver-server.spec
- Up to 1.20.4.
[packages/xorg-xserver-server.git] / xorg-xserver-server.spec
CommitLineData
8fe9672d 1# TODO
5cf95a8f 2# - use epoxy >= 1.4.4 when available
887adac8 3# - consider XSELINUX by default
8fe9672d 4# - Xvfb initscript runs Xvfb as root! add user there!
bbcc87fb
JB
5#
6# Conditional build:
623aff58
JB
7%bcond_with dbus # D-BUS support for configuration (if no udev)
8%bcond_with hal # HAL support for configuration (if no udev)
9%bcond_without udev # UDEV support for configuration
eccd867f 10%bcond_without dri2 # DRI2 extension
f2dfad6a 11%bcond_without dri3 # DRI3 extension
623aff58
JB
12%bcond_without record # RECORD extension
13%bcond_with xcsecurity # XC-SECURITY extension (deprecated)
14%bcond_with xf86bigfont # XF86BigFont extension
15%bcond_with xselinux # SELinux extension
887adac8
JB
16%bcond_without dmx # DMX DDX (Xdmx server)
17%bcond_without wayland # Wayland DDX (Xwayland server)
7b29f511 18%bcond_with eglstream # XWayland eglstream support
887adac8
JB
19%bcond_without glamor # glamor dix module
20%bcond_without systemtap # systemtap/dtrace probes
2c00f60d 21%bcond_without libunwind # use libunwind for backtracing
bbcc87fb 22#
2d8f5fc8 23# ABI versions, see hw/xfree86/common/xf86Module.h
f54375a7 24%define xorg_xserver_server_ansic_abi 0.4
8fe92ee4 25%define xorg_xserver_server_extension_abi 10.0
df1f92e0 26%define xorg_xserver_server_videodrv_abi 24.0
8fe92ee4 27%define xorg_xserver_server_xinput_abi 24.1
8fe9672d 28
ac811b82 29%define pixman_ver 0.30.0
2d8f5fc8 30
2c00f60d
JR
31%ifarch x32
32%undefine with_libunwind
33%endif
34
ef5a4e65 35Summary: X.org server
46c7e5bc 36Summary(pl.UTF-8): Serwer X.org
ef5a4e65 37Name: xorg-xserver-server
34eb1791 38Version: 1.20.4
7702f2b1 39Release: 1
ef5a4e65 40License: MIT
5cd265ab 41Group: X11/Servers
8b7817a0 42Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
34eb1791 43# Source0-md5: c4841cc24b79420205d082fe82e0a650
841de661 44Source1: 10-quirks.conf
3edafdd8 45Source2: xserver.pamd
c3f56cd8 46Source10: %{name}-Xvfb.init
47Source11: %{name}-Xvfb.sysconfig
542e9210 48Source12: xvfb-run.sh
ca47a6d2 49Patch1: %{name}-xwrapper-pam.patch
b02f7441 50
1bbb6133 51Patch4: %{name}-builtin-SHA1.patch
f75b822f 52
1ce4cc3d 53Patch6: 110_nvidia_slowdow_fix.patch
ef5a4e65 54URL: http://xorg.freedesktop.org/
0f34aee7 55BuildRequires: Mesa-libGL-devel >= 7.8.1
887adac8
JB
56%{?with_dri2:BuildRequires: Mesa-libGL-devel >= 9.2.0}
57%{?with_glamor:BuildRequires: Mesa-libgbm-devel >= 10.2.0}
ce1773fa 58# for glx headers
f6f4cf9a 59BuildRequires: OpenGL-GLX-devel
623aff58 60%{?with_xselinux:BuildRequires: audit-libs-devel}
bacc2406 61BuildRequires: autoconf >= 2.60
ef5a4e65 62BuildRequires: automake
ff624999 63BuildRequires: cpp
7f08e7c0 64BuildRequires: docbook-dtd43-xml
0e90bd5c 65#BuildRequires: doxygen >= 1.6.1
6d8f95e3 66%if %{with hal} || %{with dbus}
17e710cb 67BuildRequires: dbus-devel >= 1.0
a780f2e4 68%endif
7b29f511 69%{?with_eglstream:BuildRequires: egl-wayland-devel >= 1.0.2}
6d8f95e3 70%{?with_hal:BuildRequires: hal-devel}
df1f92e0 71BuildRequires: libdrm-devel >= 2.4.89
887adac8 72%if %{with glamor} || %{with wayland}
5cf95a8f 73BuildRequires: libepoxy-devel # >= 1.4.4
7b29f511 74%{?with_eglstream:BuildRequires: libepoxy-devel >= 1.5.0}
887adac8 75%endif
623aff58 76%{?with_xselinux:BuildRequires: libselinux-devel >= 2.0.86}
887adac8 77BuildRequires: libtool >= 2:2.2
2c00f60d 78%{?with_libunwind:BuildRequires: libunwind-devel}
5cf95a8f 79BuildRequires: libxcb-devel >= 1.9.3
934be85d 80BuildRequires: pam-devel
ff624999 81BuildRequires: perl-base
e410c9f5 82BuildRequires: pixman-devel >= %{pixman_ver}
e768ee3c 83BuildRequires: pkgconfig >= 1:0.19
eccd867f 84%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
5cf95a8f 85BuildRequires: systemd-devel >= 1:209
17e710cb 86BuildRequires: udev-devel >= 1:143
887adac8
JB
87# wayland-client
88%{?with_wayland:BuildRequires: wayland-devel >= 1.3.0}
df1f92e0 89%{?with_wayland:BuildRequires: wayland-protocols >= 1.10}
7c986742
JB
90BuildRequires: xcb-util-devel
91BuildRequires: xcb-util-image-devel
92BuildRequires: xcb-util-keysyms-devel
b12ef85f 93BuildRequires: xcb-util-renderutil-devel
485c1146 94BuildRequires: xcb-util-wm-devel
17e710cb 95BuildRequires: xmlto >= 0.0.20
c8331d8e 96BuildRequires: xorg-app-mkfontscale
34cafe42 97BuildRequires: xorg-font-font-util >= 1.1
7c986742 98BuildRequires: xorg-lib-libX11-devel >= 1.6
ef5a4e65 99BuildRequires: xorg-lib-libXau-devel
887adac8 100%{?with_dmx:BuildRequires: xorg-lib-libXaw-devel}
a439cdb6 101BuildRequires: xorg-lib-libXdamage-devel
ff624999 102BuildRequires: xorg-lib-libXdmcp-devel
17e710cb 103BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
7c986742 104BuildRequires: xorg-lib-libXfixes-devel
44c12f24 105BuildRequires: xorg-lib-libXfont2-devel >= 2.0.0
17e710cb 106BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1
887adac8
JB
107%{?with_dmx:BuildRequires: xorg-lib-libXmu-devel}
108%{?with_dmx:BuildRequires: xorg-lib-libXpm-devel}
30a17203 109BuildRequires: xorg-lib-libXrender-devel
ff624999 110BuildRequires: xorg-lib-libXres-devel
887adac8 111%{?with_dmx:BuildRequires: xorg-lib-libXt-devel >= 1.0.0}
fe717025 112BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2
6a6e8cee 113BuildRequires: xorg-lib-libXv-devel
ef5a4e65 114BuildRequires: xorg-lib-libXxf86dga-devel
115BuildRequires: xorg-lib-libXxf86misc-devel
116BuildRequires: xorg-lib-libXxf86vm-devel
fe717025 117%{?with_dmx:BuildRequires: xorg-lib-libdmx-devel >= 1.0.99.1}
ff624999 118BuildRequires: xorg-lib-libfontenc-devel
f3d1597c 119BuildRequires: xorg-lib-libpciaccess-devel >= 0.12.901
ef5a4e65 120BuildRequires: xorg-lib-libxkbfile-devel
7c986742 121BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
8cec3bb4 122BuildRequires: xorg-lib-xtrans-devel >= 1.3.5
7282d6e2 123BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
779e221e 124BuildRequires: xorg-proto-compositeproto-devel >= 0.4
2ce56491 125BuildRequires: xorg-proto-damageproto-devel >= 1.1
17e710cb 126%{?with_dmx:BuildRequires: xorg-proto-dmxproto-devel >= 2.2.99.1}
625eb32f 127%{?with_dri2:BuildRequires: xorg-proto-dri2proto-devel >= 2.8}
df1f92e0 128BuildRequires: xorg-proto-dri3proto-devel >= 1.2
f7f29637 129BuildRequires: xorg-proto-fixesproto-devel >= 5.0
14d9b23d 130BuildRequires: xorg-proto-fontcacheproto-devel
887adac8 131BuildRequires: xorg-proto-fontsproto-devel >= 2.1.3
7c986742 132BuildRequires: xorg-proto-glproto-devel >= 1.4.17
c9e134cd 133BuildRequires: xorg-proto-inputproto-devel >= 2.3
88e91f7d 134BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
5cf95a8f 135BuildRequires: xorg-proto-presentproto-devel >= 1.1
ff624999 136BuildRequires: xorg-proto-printproto-devel
df1f92e0 137BuildRequires: xorg-proto-randrproto-devel >= 1.6.0
17e710cb 138%{?with_record:BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1}
7282d6e2 139BuildRequires: xorg-proto-renderproto-devel >= 0.11
2bd168d8 140BuildRequires: xorg-proto-resourceproto-devel >= 1.2.0
d3b3c9c3 141BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1
ef5a4e65 142BuildRequires: xorg-proto-videoproto-devel
7282d6e2 143BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
485c1146 144BuildRequires: xorg-proto-xextproto-devel >= 1:7.3.0
623aff58 145%{?with_xf86bigfont:BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0}
17e710cb
JB
146BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1
147BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0
ef5a4e65 148BuildRequires: xorg-proto-xf86miscproto-devel
17e710cb 149BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
ef5a4e65 150BuildRequires: xorg-proto-xineramaproto-devel
44c12f24 151BuildRequires: xorg-proto-xproto-devel >= 7.0.31
f7f29637
JB
152BuildRequires: xorg-sgml-doctools >= 1.8
153BuildRequires: xorg-util-util-macros >= 1.14
f3d1597c 154#BR: tslib (for KDRIVE only)
94cbcc0b 155Requires(triggerpostun): sed >= 4.0
887adac8 156%{?with_glamor:Requires: Mesa-libgbm >= 10.2.0}
df1f92e0 157Requires: libdrm >= 2.4.89
5cf95a8f 158Requires: libepoxy # >= 1.4.4
e410c9f5 159Requires: pixman >= %{pixman_ver}
7c986742 160Requires: udev-libs >= 1:143
4f014ff9 161Requires: xkeyboard-config
ceb929ad 162# for rgb.txt
b7331c94 163Requires: xorg-app-rgb >= 0.99.3
72a92456 164Requires: xorg-app-xkbcomp
44c12f24 165Requires: xorg-lib-libXfont2 >= 2.0.0
7c986742
JB
166Requires: xorg-lib-libpciaccess >= 0.12.901
167Requires: xorg-lib-libxshmfence >= 1.1
623aff58 168Suggests: dbus-x11 >= 1.0
7c986742
JB
169%{?with_hal:Suggests: hal}
170Suggests: udev-acl >= 1:143
171%{?with_udev:Suggests: udev-core >= 1:143}
7d452154 172Suggests: xkeyboard-config
44c12f24 173Suggests: xorg-driver-input-libinput
b8f0d045 174# Usual desktop setups need least one video driver to run, see xorg.log which one exactly
f88328c9 175Suggests: xorg-driver-video
d4d07677 176Provides: xorg-driver-video-modesetting
8c56722d
ER
177Provides: xorg-xserver-libdri = %{version}-%{release}
178Provides: xorg-xserver-module(dri)
4f014ff9
JB
179Provides: xorg-xserver-server(ansic-abi) = %{xorg_xserver_server_ansic_abi}
180Provides: xorg-xserver-server(extension-abi) = %{xorg_xserver_server_extension_abi}
4f014ff9
JB
181Provides: xorg-xserver-server(videodrv-abi) = %{xorg_xserver_server_videodrv_abi}
182Provides: xorg-xserver-server(xinput-abi) = %{xorg_xserver_server_xinput_abi}
765b36a9 183Obsoletes: X11-Xserver < 1:7.0.0
48cfc6a7 184Obsoletes: X11-driver-i2c < 1:7.0.0
765b36a9 185Obsoletes: X11-modules < 1:7.0.0
8be992d1 186Obsoletes: X11-setup < 1:7.0.0
765b36a9
AM
187Obsoletes: XFree86-Xserver < 1:7.0.0
188Obsoletes: XFree86-modules < 1:7.0.0
8be992d1 189Obsoletes: XFree86-setup < 1:7.0.0
236ed19c 190Obsoletes: Xserver
887adac8 191%{?with_glamor:Obsoletes: glamor}
c113a98d 192Obsoletes: xorg-xserver-libdri
8c56722d 193Obsoletes: xorg-xserver-server-xorgcfg
fc866b7f 194Obsoletes: xorg-driver-video-modesetting
ef5a4e65 195BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
196
197%description
5cd265ab
JB
198Xorg server is a generally used X server which uses display hardware.
199It requires proper driver for your display hardware.
ef5a4e65 200
60cc86be
JR
201%description -l pl.UTF-8
202Serwer Xorg to podstawowy serwer X wyświetlający obraz na karcie
203graficznej. Do działania wymaga odpowiedniego sterownika.
5cd265ab
JB
204
205%package -n xorg-xserver-Xdmx
206Summary: Xdmx - distributed multi-head X server
46c7e5bc 207Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X
5cd265ab 208Group: X11/Servers
7c986742
JB
209Requires: pixman >= %{pixman_ver}
210Requires: xorg-lib-libX11 >= 1.6
211Requires: xorg-lib-libXext >= 1.0.99.4
44c12f24 212Requires: xorg-lib-libXfont2 >= 2.0.0
7c986742
JB
213Requires: xorg-lib-libXi >= 1.2.99.1
214Requires: xorg-lib-libdmx >= 1.0.99.1
5cd265ab
JB
215
216%description -n xorg-xserver-Xdmx
217Xdmx - distributed multi-head X server.
218
60cc86be 219%description -n xorg-xserver-Xdmx -l pl.UTF-8
5cd265ab
JB
220Xdmx - rozproszony, wielomonitorowy serwer X.
221
222%package -n xorg-xserver-Xnest
223Summary: Xnest - nested X server
46c7e5bc 224Summary(pl.UTF-8): Xnest - zagnieżdżony serwer X
5cd265ab 225Group: X11/Servers
7c986742
JB
226Requires: pixman >= %{pixman_ver}
227Requires: xorg-lib-libXext >= 1.0.99.4
44c12f24 228Requires: xorg-lib-libXfont2 >= 2.0.0
765b36a9
AM
229Obsoletes: X11-Xnest < 1:7.0.0
230Obsoletes: XFree86-Xnest < 1:7.0.0
236ed19c 231Obsoletes: Xserver-Xnest
5cd265ab
JB
232
233%description -n xorg-xserver-Xnest
234Xnest is an X Window System server which runs in an X window. Xnest is
235a 'nested' window server, actually a client of the real X server,
236which manages windows and graphics requests for Xnest, while Xnest
237manages the windows and graphics requests for its own clients.
238
60cc86be 239%description -n xorg-xserver-Xnest -l pl.UTF-8
5cd265ab 240Xnest jest serwerem X uruchamianym w okienku innego serwera X. Xnest
60cc86be
JR
241zachowuje się jak klient X w stosunku do prawdziwego serwera X, a jak
242serwer X dla własnych klientów.
5cd265ab 243
60cc86be
JR
244%description -n xorg-xserver-Xnest -l ru.UTF-8
245Xnest - это сервер X Window System, который работает в окне X. На
246самом деле это клиент реального X-сервера, который управляет окнами и
247графическими запросами для Xnest в то время, как Xnest управляет
248окнами и графическими запросами для своих собственных клиентов.
5cd265ab 249
60cc86be
JR
250%description -n xorg-xserver-Xnest -l uk.UTF-8
251Xnest - це сервер X Window System, який працює у вікні X. Фактично це
252клієнт реального X-сервера, який керує вікнами та графічними запитами
253для Xnest в той час, як Xnest керує вікнами та графічними запитами для
254своїх власних клієнтів.
5cd265ab 255
6d8f95e3
JR
256%package -n xorg-xserver-Xephyr
257Summary: Xephyr - nested X server
258Summary(pl.UTF-8): Xephyr - zagnieżdżony serwer X
5cd265ab 259Group: X11/Servers
7c986742 260Requires: Mesa-libGL >= 7.1.0
5cf95a8f
JB
261Requires: libepoxy # >= 1.4.4
262Requires: libxcb >= 1.9.3
e410c9f5 263Requires: pixman >= %{pixman_ver}
44c12f24 264Requires: xorg-lib-libXfont2 >= 2.0.0
5cd265ab 265
6d8f95e3 266%description -n xorg-xserver-Xephyr
887adac8 267Xephyr is a kdrive server that outputs to a window on a pre-existing
6d8f95e3
JR
268'host' X display. Think Xnest but with support for modern extensions
269like composite, damage and randr.
5cd265ab 270
ffe418a4
ER
271Unlike Xnest which is an X proxy, i.e. limited to the capabilities of
272the host X server, Xephyr is a real X server which uses the host X
273server window as "framebuffer" via fast SHM XImages.
6d8f95e3
JR
274
275It also has support for 'visually' debugging what the server is
276painting.
277
278%description -n xorg-xserver-Xephyr -l pl.UTF-8
279Xephyr jest serwerem opartym na kdrive wyświetlającym w oknie na
ffe418a4
ER
280istniejącym ekranie X. Można o nim myśleć jako o Xnest ze wsparciem do
281wspólczesnych rozszerzeń jak composite, damage i randr.
6d8f95e3 282
5cd265ab
JB
283%package -n xorg-xserver-Xvfb
284Summary: Xvfb - virtual framebuffer X server
46c7e5bc 285Summary(pl.UTF-8): Xvfb - serwer X z wirtualnym framebufferem
5cd265ab 286Group: X11/Servers
7c986742 287Requires: Mesa-libGL >= 7.1.0
81ae70c4 288Requires: mktemp
7c986742 289Requires: pixman >= %{pixman_ver}
81ae70c4
ER
290Requires: util-linux
291Requires: which
8fe9672d 292Requires: xkeyboard-config
81ae70c4 293Requires: xorg-app-xauth
8edf202a 294Requires: xorg-app-xkbcomp
44c12f24 295Requires: xorg-lib-libXfont2 >= 2.0.0
765b36a9
AM
296Obsoletes: X11-Xvfb < 1:7.0.0
297Obsoletes: XFree86-Xvfb < 1:7.0.0
5cd265ab
JB
298
299%description -n xorg-xserver-Xvfb
300Xvfb (X Virtual Frame Buffer) is an X Window System server that is
301capable of running on machines with no display hardware and no
302physical input devices. Xvfb emulates a dumb framebuffer using virtual
303memory. Xvfb doesn't open any devices, but behaves otherwise as an X
304display. Xvfb is normally used for testing servers. Using Xvfb, the
305mfb or cfb code for any depth can be exercised without using real
306hardware that supports the desired depths. Xvfb has also been used to
307test X clients against unusual depths and screen configurations, to do
308batch processing with Xvfb as a background rendering engine, to do
309load testing, to help with porting an X server to a new platform, and
310to provide an unobtrusive way of running applications which really
311don't need an X server but insist on having one.
312
60cc86be
JR
313%description -n xorg-xserver-Xvfb -l pl.UTF-8
314Xvfb (X Virtual Frame Buffer) jest serwerem X, który można uruchamiać
315na maszynach bez urządzeń wyświetlających ani fizycznych urządzeń
316wejściowych. Xvfb emuluje prosty framebuffer w pamięci. Zwykle jest
317używany do testowania serwerów X, może też być używany do testowania
318klientów X w rzadko używanych konfiguracjach ekranu. Można też użyć
319Xvfb do uruchomienia aplikacji, które w rzeczywistości nie wymagają
320serwera X, ale odmawiają uruchomienia bez niego.
ef5a4e65 321
c3f56cd8 322%package -n xorg-xserver-Xvfb-init
323Summary: Init scripts for Xvfb
324Summary(pl.UTF-8): Skrypty startowe dla Xvfb
325Group: X11/Servers
326Requires: xorg-xserver-Xvfb
327
328%description -n xorg-xserver-Xvfb-init
329This package contains init scripts for Xvfb and registers Xvfb as
330system service.
331
332%description -n xorg-xserver-Xvfb-init -l pl.UTF-8
333Ten pakiet zawiera skrypty startowe dla Xvfb oraz rejestruje Xvfb jako
334usługę systemową.
335
8edf202a
AM
336%package -n xorg-xserver-Xwayland
337Summary: Xwayland - X server integrated into a Wayland window system
338Summary(pl.UTF-8): Xwayland - serwer X integrowalny w Wayland
339Group: X11/Servers
7b29f511
JB
340%{?with_eglstream:Requires: egl-wayland >= 1.0.2}
341%if %{with eglstream}
342Requires: libepoxy >= 1.5.0
343%else
5cf95a8f 344Requires: libepoxy # >= 1.4.4
7b29f511 345%endif
8edf202a
AM
346Requires: pixman >= %{pixman_ver}
347Requires: xorg-lib-libX11 >= 1.6
348Requires: xorg-lib-libXext >= 1.0.99.4
44c12f24 349Requires: xorg-lib-libXfont2 >= 2.0.0
8edf202a
AM
350Requires: xorg-lib-libXi >= 1.2.99.1
351
352%description -n xorg-xserver-Xwayland
353Xwayland - server integrated into a Wayland window system.
354
355%description -n xorg-xserver-Xwayland -l pl.UTF-8
356Xwayland - serwer X integrowalny w Wayland.
357
0796e6da 358%package devel
359Summary: Header files for X.org server
598a8139 360Summary(pl.UTF-8): Pliki nagłówkowe dla serwera X.org
0796e6da 361Group: X11/Development/Libraries
7c986742 362Requires: Mesa-libGL-devel >= 7.8.0
df1f92e0 363Requires: libdrm-devel >= 2.4.89
e410c9f5 364Requires: pixman-devel >= %{pixman_ver}
44c12f24 365Requires: xorg-lib-libXfont2-devel >= 2.0.0
f3d1597c 366Requires: xorg-lib-libpciaccess-devel >= 0.12.901
f03f355d 367Requires: xorg-lib-libxkbfile-devel
2bd168d8 368%{?with_dri2:Requires: xorg-proto-dri2proto-devel >= 2.8}
b8d14a59 369%{?with_dri3:Requires: xorg-proto-dri3proto-devel >= 1.0}
7c986742 370Requires: xorg-proto-dri3proto-devel >= 1.0
887adac8 371Requires: xorg-proto-fontsproto-devel >= 2.1.3
7c986742 372Requires: xorg-proto-glproto-devel >= 1.4.17
c9e134cd 373Requires: xorg-proto-inputproto-devel >= 2.3
17e710cb 374Requires: xorg-proto-kbproto-devel >= 1.0.3
5cf95a8f 375Requires: xorg-proto-presentproto-devel >= 1.1
df1f92e0 376Requires: xorg-proto-randrproto-devel >= 1.6.0
17e710cb 377Requires: xorg-proto-renderproto-devel >= 0.11
2bd168d8
JB
378Requires: xorg-proto-resourceproto-devel >= 1.2.0
379Requires: xorg-proto-scrnsaverproto-devel >= 1.1
7cab8652 380Requires: xorg-proto-videoproto-devel
7c986742 381Requires: xorg-proto-xextproto-devel >= 1:7.3.0
b8d2c3ee 382Requires: xorg-proto-xf86driproto-devel >= 2.1.0
3e754325 383Requires: xorg-proto-xineramaproto-devel
44c12f24 384Requires: xorg-proto-xproto-devel >= 7.0.31
765b36a9 385Obsoletes: X11-Xserver-devel < 1:7.0.0
855976cb 386Obsoletes: XFree86-Xserver-devel < 1:7.0.0
887adac8 387%{?with_glamor:Obsoletes: glamor-devel}
0796e6da 388
389%description devel
390Header files for X.org server.
391
60cc86be
JR
392%description devel -l pl.UTF-8
393Pliki nagłówkowe dla serwera X.org.
0796e6da 394
63af4daa
JR
395%package source
396Summary: X.org server source code
397Summary(pl.UTF-8): Pliki źródłowe dla serwera X.org
398Group: X11/Development/Libraries
399
400%description source
401X.org server source code.
402
403%description source -l pl.UTF-8
404Pliki źródłowe dla serwera X.org.
405
f6f4cf9a 406%package -n xorg-xserver-libglx
0da6b14d 407Summary: GLX extension library for X.org server
46c7e5bc 408Summary(pl.UTF-8): Biblioteka rozszerzenia GLX dla serwera X.org
f6f4cf9a 409Group: X11/Servers
927af2d7 410Requires: %{name} = %{version}-%{release}
7c986742 411Requires: Mesa-libGL >= 7.1.0
887adac8 412%{?with_dri2:Requires: Mesa-libGL >= 9.2.0}
88fe49de
JB
413# Mesa version glapi tables in glx/ dir come from
414Provides: xorg-xserver-libglx(glapi) = 7.1.0
7a411c00 415Provides: xorg-xserver-module(glx)
855976cb
JB
416Obsoletes: X11-OpenGL-core < 1:7.0.0
417Obsoletes: XFree86-OpenGL-core < 1:7.0.0
f6f4cf9a
PS
418
419%description -n xorg-xserver-libglx
0da6b14d 420GLX extension library for X.org server.
f6f4cf9a 421
60cc86be 422%description -n xorg-xserver-libglx -l pl.UTF-8
f6f4cf9a
PS
423Biblioteka rozszerzenia GLX dla serwera X.org.
424
ef5a4e65 425%prep
f54375a7 426%setup -q -n xorg-server-%{version}
ca47a6d2 427%patch1 -p1
b02f7441 428
c3a4ef53 429%patch4 -p1
f75b822f 430
0c36d11c 431%patch6 -p1
ef5a4e65 432
762073cc
AM
433# xserver uses pixman-1 API/ABI so put that explictly here
434sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
435
be38bc52
JB
436# support __filemansuffix__ with "x" suffix (per FHS 2.3)
437%{__sed} -i -e 's,\.so man__filemansuffix__/,.so man5/,' hw/xfree86/man/*.man
438
ef5a4e65 439%build
16097b2e 440API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
17b439fd 441if [ "$API" != "%{xorg_xserver_server_ansic_abi}" ]; then
16097b2e
ER
442 echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
443 exit 1
0345b66a
AM
444fi
445
16097b2e 446API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
17b439fd 447if [ "$API" != "%{xorg_xserver_server_extension_abi}" ]; then
16097b2e
ER
448 echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
449 exit 1
0345b66a
AM
450fi
451
16097b2e 452API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
17b439fd 453if [ "$API" != "%{xorg_xserver_server_videodrv_abi}" ]; then
16097b2e
ER
454 echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
455 exit 1
0345b66a 456fi
16097b2e 457API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
17b439fd 458if [ "$API" != "%{xorg_xserver_server_xinput_abi}" ]; then
16097b2e
ER
459 echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
460 exit 1
0345b66a
AM
461fi
462
ff624999 463%{__libtoolize}
7282d6e2 464%{__aclocal} -I m4
ef5a4e65 465%{__autoconf}
466%{__autoheader}
467%{__automake}
468%configure \
daf93c5d 469 --libexecdir=%{_libdir}/xorg \
06015eac
AM
470 --with-os-name="PLD/Linux" \
471 --with-os-vendor="PLD/Team" \
be38bc52
JB
472 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
473 --with-xkb-output=/var/lib/xkb \
485c1146
AM
474 --disable-linux-acpi \
475 --disable-linux-apm \
623aff58
JB
476 %{?with_dbus:--enable-config-dbus} \
477 --enable-config-hal%{!?with_hal:=no} \
478 --enable-config-udev%{!?with_udev:=no} \
4f014ff9 479 --enable-dga \
8b73c5c3 480 %{?with_dmx:--enable-dmx} \
be38bc52 481 --enable-dri2%{!?with_dri2:=no} \
f2dfad6a 482 --enable-dri3%{!?with_dri3:=no} \
887adac8 483 %{?with_glamor:--enable-glamor} \
6d8f95e3 484 --enable-kdrive \
2c00f60d 485 %{?with_libunwind:--enable-libunwind} \
be38bc52
JB
486 %{?with_record:--enable-record} \
487 --enable-secure-rpc \
623aff58 488 %{?with_xcsecurity:--enable-xcsecurity} \
6d8f95e3 489 --enable-xephyr \
623aff58 490 %{?with_xf86bigfont:--enable-xf86bigfont} \
887adac8
JB
491 %{?with_xselinux:--enable-xselinux} \
492 %{?with_wayland:--enable-xwayland} \
7b29f511 493 %{?with_eglstream:--enable-xwayland-eglstream} \
887adac8
JB
494 %{!?with_systemtap:--without-dtrace} \
495 --without-fop \
daf93c5d 496 --enable-suid-wrapper \
887adac8 497 --with-systemd-daemon
be25dd56 498
d8eedd60 499%{__make} -j1
ef5a4e65 500
501%install
502rm -rf $RPM_BUILD_ROOT
503
55802b22
JK
504%if "%{_libdir}" != "%{_exec_prefix}/lib"
505install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/xorg/modules/dri
506%endif
507
ef5a4e65 508%{__make} install \
30a17203 509 DESTDIR=$RPM_BUILD_ROOT
ef5a4e65 510
e349fe9e 511install -Dp %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
feb53d4a 512install -d $RPM_BUILD_ROOT/etc/{security/console.apps,X11/xorg.conf.d}
a15a709b 513install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
3d2be38e 514install -d $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
542e9210 515install -p %{SOURCE12} $RPM_BUILD_ROOT%{_bindir}/xvfb-run
3d2be38e 516
3edafdd8
JB
517:> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
518:> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
519
be38bc52 520%{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.la
0796e6da 521
e349fe9e 522cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/10-quirks.conf
40be6fd2 523
c3f56cd8 524install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
525install -d $RPM_BUILD_ROOT/etc/sysconfig
e349fe9e
ER
526install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/Xvfb
527cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/sysconfig/Xvfb
c3f56cd8 528
ca47a6d2
JB
529# Xorg.wrap config
530cat >$RPM_BUILD_ROOT/etc/X11/Xwrapper.config <<EOF
531# allowed values: rootonly console anybody pam
532allowed_users = pam
533
534# set to yes if hardware or console access requires root rights (and Xwrapper fails to detect it)
535#needs_root_rights = yes
536EOF
537
daf93c5d 538# compatibility with old xwrapper
5284be3c 539ln -s %{_libdir}/xorg/Xorg.wrap $RPM_BUILD_ROOT%{_bindir}/Xwrapper
daf93c5d 540
3b863f89 541# prepare source package
63af4daa
JR
542install -d $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}
543cp -a * $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}
544cd $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}
545%{__make} distclean
546find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
4a108bd7 547find -name '*.h' | xargs chmod a-x
63af4daa 548
3b863f89
JB
549%if %{with systemtap}
550%{__rm} $RPM_BUILD_ROOT%{_docdir}/xorg-server/Xserver-DTrace.*
551%endif
552
ef5a4e65 553%clean
554rm -rf $RPM_BUILD_ROOT
555
94cbcc0b
JB
556%triggerpostun -- xorg-xserver-server < 1.5.0
557if [ -f /etc/X11/xorg.conf ]; then
558 sed -i -e 's/^\s*RgbPath.*$/#& # obsolete option/' /etc/X11/xorg.conf
559 sed -i -e 's/^\s*Load\s*"type1".*$/#& # obsolete module/' /etc/X11/xorg.conf
560%if %{without record}
561 sed -i -e 's/^\s*Load\s*"record".*$/#& # module disabled in this build/' /etc/X11/xorg.conf
562%endif
47cbce9c 563 sed -i -e 's/^\s*Load\s*"xtrap".*$/#& # obsolete module/' /etc/X11/xorg.conf
94cbcc0b
JB
564fi
565
c3f56cd8 566%post -n xorg-xserver-Xvfb-init
567/sbin/chkconfig --add Xvfb
568%service Xvfb restart
569
570%preun -n xorg-xserver-Xvfb-init
571if [ "$1" = "0" ]; then
572 %service -q Xvfb stop
573 /sbin/chkconfig --del Xvfb
574fi
575
ef5a4e65 576%files
577%defattr(644,root,root,755)
34eb1791 578%doc COPYING ChangeLog
5cd265ab 579%attr(755,root,root) %{_bindir}/X
934be85d
PS
580%attr(755,root,root) %{_bindir}/Xorg
581%attr(4755,root,root) %{_bindir}/Xwrapper
507f68f4 582%attr(755,root,root) %{_bindir}/cvt
5cd265ab 583%attr(755,root,root) %{_bindir}/gtf
944f790e 584%dir %{_libdir}/xorg
a1e1d009 585%{_libdir}/xorg/protocol.txt
daf93c5d
AM
586%attr(755,root,root) %{_libdir}/xorg/Xorg
587%attr(4755,root,root) %{_libdir}/xorg/Xorg.wrap
944f790e 588%dir %{_libdir}/xorg/modules
887adac8
JB
589%attr(755,root,root) %{_libdir}/xorg/modules/libexa.so
590%attr(755,root,root) %{_libdir}/xorg/modules/libfb.so
591%attr(755,root,root) %{_libdir}/xorg/modules/libfbdevhw.so
592%{?with_glamor:%attr(755,root,root) %{_libdir}/xorg/modules/libglamoregl.so}
593%attr(755,root,root) %{_libdir}/xorg/modules/libint10.so
594%attr(755,root,root) %{_libdir}/xorg/modules/libshadow.so
595%attr(755,root,root) %{_libdir}/xorg/modules/libshadowfb.so
596%attr(755,root,root) %{_libdir}/xorg/modules/libvbe.so
597%attr(755,root,root) %{_libdir}/xorg/modules/libvgahw.so
598%attr(755,root,root) %{_libdir}/xorg/modules/libwfb.so
a15a709b 599%dir %{_libdir}/xorg/modules/dri
79e47f41 600%dir %{_libdir}/xorg/modules/drivers
fc866b7f 601%attr(755,root,root) %{_libdir}/xorg/modules/drivers/modesetting_drv.so
944f790e 602%dir %{_libdir}/xorg/modules/extensions
79e47f41 603%dir %{_libdir}/xorg/modules/input
55802b22
JK
604%if "%{_libdir}" != "%{_exec_prefix}/lib"
605%dir %{_exec_prefix}/lib/xorg
606%dir %{_exec_prefix}/lib/xorg/modules
607%dir %{_exec_prefix}/lib/xorg/modules/dri
608%endif
27d22b31
JB
609%dir /var/lib/xkb
610/var/lib/xkb/README.compiled
3edafdd8
JB
611%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xserver
612%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xserver
613%config(missingok) /etc/security/console.apps/xserver
ffe418a4 614%{?with_dbus:/etc/dbus-1/system.d/xorg-server.conf}
feb53d4a 615%dir /etc/X11/xorg.conf.d
ca47a6d2 616%config(noreplace) %verify(not md5 mtime size) /etc/X11/Xwrapper.config
3d2be38e
AM
617%dir %{_datadir}/X11/xorg.conf.d
618# overwrite these settings with local configs in /etc/X11/xorg.conf.d
887adac8 619%verify(not md5 mtime size) %{_datadir}/X11/xorg.conf.d/10-quirks.conf
f354c11f 620%{_mandir}/man1/Xorg.1*
daf93c5d 621%{_mandir}/man1/Xorg.wrap.1*
f354c11f 622%{_mandir}/man1/Xserver.1*
507f68f4 623%{_mandir}/man1/cvt.1*
f354c11f 624%{_mandir}/man1/gtf.1*
88e91f7d 625%{_mandir}/man4/exa.4*
30a17203 626%{_mandir}/man4/fbdevhw.4*
fc866b7f 627%{_mandir}/man4/modesetting.4*
daf93c5d 628%{_mandir}/man5/Xwrapper.config.5*
f354c11f 629%{_mandir}/man5/xorg.conf.5*
be38bc52 630%{_mandir}/man5/xorg.conf.d.5*
5cd265ab 631
8b73c5c3 632%if %{with dmx}
5cd265ab
JB
633%files -n xorg-xserver-Xdmx
634%defattr(644,root,root,755)
635%attr(755,root,root) %{_bindir}/Xdmx
636%attr(755,root,root) %{_bindir}/dmxaddinput
637%attr(755,root,root) %{_bindir}/dmxaddscreen
858a8fe0 638%attr(755,root,root) %{_bindir}/dmxinfo
5cd265ab
JB
639%attr(755,root,root) %{_bindir}/dmxreconfig
640%attr(755,root,root) %{_bindir}/dmxresize
641%attr(755,root,root) %{_bindir}/dmxrminput
642%attr(755,root,root) %{_bindir}/dmxrmscreen
643%attr(755,root,root) %{_bindir}/dmxtodmx
644%attr(755,root,root) %{_bindir}/dmxwininfo
645%attr(755,root,root) %{_bindir}/vdltodmx
5cd265ab 646%attr(755,root,root) %{_bindir}/xdmxconfig
f354c11f
AM
647%{_mandir}/man1/Xdmx.1*
648%{_mandir}/man1/dmxtodmx.1*
649%{_mandir}/man1/vdltodmx.1*
650%{_mandir}/man1/xdmxconfig.1*
8b73c5c3 651%endif
5cd265ab
JB
652
653%files -n xorg-xserver-Xnest
654%defattr(644,root,root,755)
655%attr(755,root,root) %{_bindir}/Xnest
f354c11f 656%{_mandir}/man1/Xnest.1*
5cd265ab 657
6d8f95e3
JR
658%files -n xorg-xserver-Xephyr
659%defattr(644,root,root,755)
660%attr(755,root,root) %{_bindir}/Xephyr
f354c11f 661%{_mandir}/man1/Xephyr.1*
6d8f95e3 662
5cd265ab
JB
663%files -n xorg-xserver-Xvfb
664%defattr(644,root,root,755)
665%attr(755,root,root) %{_bindir}/Xvfb
542e9210 666%attr(755,root,root) %{_bindir}/xvfb-run
f354c11f 667%{_mandir}/man1/Xvfb.1*
0796e6da 668
c3f56cd8 669%files -n xorg-xserver-Xvfb-init
670%defattr(644,root,root,755)
671%attr(754,root,root) /etc/rc.d/init.d/Xvfb
672%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/Xvfb
673
887adac8 674%if %{with wayland}
8edf202a
AM
675%files -n xorg-xserver-Xwayland
676%defattr(644,root,root,755)
677%attr(755,root,root) %{_bindir}/Xwayland
887adac8 678%endif
8edf202a 679
0796e6da 680%files devel
681%defattr(644,root,root,755)
eccd867f 682%doc doc/{Xinput,Xserver-spec}.html %{?with_systemtap:doc/dtrace/Xserver-DTrace.html}
0796e6da 683%{_includedir}/xorg
565bbfd3 684%{_aclocaldir}/xorg-server.m4
0796e6da 685%{_pkgconfigdir}/xorg-server.pc
f6f4cf9a 686
63af4daa 687%files source
14b28b85
ER
688%defattr(644,root,root,755)
689# keep file perms from install time, but have default defattr to keep adapter happy
90e45216 690%defattr(-,root,root,755)
63af4daa
JR
691%{_usrsrc}/%{name}-%{version}
692
f6f4cf9a 693%files -n xorg-xserver-libglx
0a2e6c9d 694%defattr(644,root,root,755)
f6f4cf9a 695%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so
This page took 0.266122 seconds and 4 git commands to generate.