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