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