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