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