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