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