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