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