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