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