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