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