]> git.pld-linux.org Git - packages/xorg-xserver-server.git/blame - xorg-xserver-server.spec
- initial
[packages/xorg-xserver-server.git] / xorg-xserver-server.spec
CommitLineData
bbcc87fb
JB
1#
2# Conditional build:
bbcc87fb 3%bcond_with multigl # package libglx.so in a way allowing concurrent install with nvidia/fglrx drivers
e53b8c11 4%bcond_without dri2 # DRI2 support
24335308 5%bcond_with dbus # D-BUS support
40be6fd2
AM
6%bcond_with hal # HAL support
7%bcond_without udev # UDEV support
abb55911 8%bcond_without dmx # DMX support
1bbb6133 9%bcond_without record # RECORD extension
bbcc87fb 10#
2d8f5fc8 11# ABI versions, see hw/xfree86/common/xf86Module.h
f54375a7 12%define xorg_xserver_server_ansic_abi 0.4
156d8c26 13%define xorg_xserver_server_extension_abi 4.0
f54375a7 14%define xorg_xserver_server_font_abi 0.6
156d8c26
AM
15%define xorg_xserver_server_videodrv_abi 8.0
16%define xorg_xserver_server_xinput_abi 11.0
2d8f5fc8 17
d5f7074e 18%define rel 1
ef5a4e65 19Summary: X.org server
46c7e5bc 20Summary(pl.UTF-8): Serwer X.org
ef5a4e65 21Name: xorg-xserver-server
7685326e 22Version: 1.9.0
1314be65 23Release: %{rel}%{?with_multigl:.mgl}
ef5a4e65 24License: MIT
5cd265ab 25Group: X11/Servers
8b7817a0 26Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
7685326e 27# Source0-md5: ba1173998a5a4216fd7b40eded96697e
841de661 28Source1: 10-quirks.conf
3edafdd8 29Source2: xserver.pamd
8405354a
AM
30Patch0: %{name}-xwrapper.patch
31Patch1: %{name}-pic-libxf86config.patch
32Patch2: %{name}-fb-size.patch
24335308 33Patch3: %{name}-less-acpi-brokenness.patch
1bbb6133 34Patch4: %{name}-builtin-SHA1.patch
ef5a4e65 35URL: http://xorg.freedesktop.org/
0f34aee7 36BuildRequires: Mesa-libGL-devel >= 7.8.1
ce1773fa 37# for glx headers
f6f4cf9a 38BuildRequires: OpenGL-GLX-devel
ff624999 39BuildRequires: autoconf >= 2.57
ef5a4e65 40BuildRequires: automake
ff624999 41BuildRequires: cpp
17e710cb 42#BuildRequires: doxygen >= 1.6.1
6d8f95e3 43%if %{with hal} || %{with dbus}
17e710cb 44BuildRequires: dbus-devel >= 1.0
a780f2e4 45%endif
eaa63dee 46# Note: fop is invoked by xmlto. It is not a dependency of xmlto, because it is
47# quite rare usecase, and it is very "havy" dependency (requires Java, %post
48# scripts execytes long time). So we need to add it here.
49BuildRequires: fop
6d8f95e3 50%{?with_hal:BuildRequires: hal-devel}
1082f031 51BuildRequires: libdrm-devel >= 2.4.5
ff624999 52BuildRequires: libtool
ec5b0b88 53BuildRequires: ncurses-devel
934be85d 54BuildRequires: pam-devel
ff624999 55BuildRequires: perl-base
7282d6e2 56BuildRequires: pixman-devel >= 0.16.0
e768ee3c 57BuildRequires: pkgconfig >= 1:0.19
17e710cb
JB
58BuildRequires: udev-devel >= 1:143
59BuildRequires: xmlto >= 0.0.20
c8331d8e 60BuildRequires: xorg-app-mkfontscale
dc39fa8d 61BuildRequires: xorg-font-font-util >= 1.1
30a17203 62BuildRequires: xorg-lib-libX11-devel
ef5a4e65 63BuildRequires: xorg-lib-libXau-devel
64BuildRequires: xorg-lib-libXaw-devel
a439cdb6 65BuildRequires: xorg-lib-libXdamage-devel
ff624999 66BuildRequires: xorg-lib-libXdmcp-devel
17e710cb
JB
67BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
68BuildRequires: xorg-lib-libXfont-devel >= 1.4.2
69BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1
88e91f7d
JB
70BuildRequires: xorg-lib-libXmu-devel
71BuildRequires: xorg-lib-libXpm-devel
30a17203 72BuildRequires: xorg-lib-libXrender-devel
ff624999 73BuildRequires: xorg-lib-libXres-devel
62bc11ce 74BuildRequires: xorg-lib-libXt-devel >= 1.0.0
fe717025 75BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2
6a6e8cee 76BuildRequires: xorg-lib-libXv-devel
ef5a4e65 77BuildRequires: xorg-lib-libXxf86dga-devel
78BuildRequires: xorg-lib-libXxf86misc-devel
79BuildRequires: xorg-lib-libXxf86vm-devel
fe717025 80%{?with_dmx:BuildRequires: xorg-lib-libdmx-devel >= 1.0.99.1}
ff624999 81BuildRequires: xorg-lib-libfontenc-devel
17e710cb 82BuildRequires: xorg-lib-libpciaccess-devel >= 0.8.0
ef5a4e65 83BuildRequires: xorg-lib-libxkbfile-devel
88e91f7d 84BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
8405354a 85BuildRequires: xorg-lib-xtrans-devel >= 1.2.2
7282d6e2 86BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
779e221e 87BuildRequires: xorg-proto-compositeproto-devel >= 0.4
2ce56491 88BuildRequires: xorg-proto-damageproto-devel >= 1.1
17e710cb
JB
89%{?with_dmx:BuildRequires: xorg-proto-dmxproto-devel >= 2.2.99.1}
90%{?with_dri2:BuildRequires: xorg-proto-dri2proto-devel >= 2.3}
01b2bb08 91BuildRequires: xorg-proto-fixesproto-devel >= 4.1
14d9b23d 92BuildRequires: xorg-proto-fontcacheproto-devel
ef5a4e65 93BuildRequires: xorg-proto-fontsproto-devel
17e710cb 94BuildRequires: xorg-proto-glproto-devel >= 1.4.10
7282d6e2 95BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902
88e91f7d 96BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
ff624999 97BuildRequires: xorg-proto-printproto-devel
65c7d32a 98BuildRequires: xorg-proto-randrproto-devel >= 1.2.99.3
17e710cb 99%{?with_record:BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1}
7282d6e2 100BuildRequires: xorg-proto-renderproto-devel >= 0.11
ef5a4e65 101BuildRequires: xorg-proto-resourceproto-devel
507f68f4 102BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
ef5a4e65 103BuildRequires: xorg-proto-videoproto-devel
7282d6e2
AM
104BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
105BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3
17e710cb
JB
106BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0
107BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1
108BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0
ef5a4e65 109BuildRequires: xorg-proto-xf86miscproto-devel
17e710cb 110BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
ef5a4e65 111BuildRequires: xorg-proto-xineramaproto-devel
17e710cb 112BuildRequires: xorg-proto-xproto-devel >= 7.0.17
841de661 113BuildRequires: xorg-sgml-doctools >= 1.5
17e710cb 114BuildRequires: xorg-util-util-macros >= 1.10
755588c8 115#BR: glitz-devel >= 0.4.3 (for XGL and EGL only)
841de661 116#BR: xcalibrateproto, tslib (for KDRIVE only)
94cbcc0b 117Requires(triggerpostun): sed >= 4.0
7282d6e2 118Requires: pixman >= 0.16.0
4f014ff9 119Requires: xkeyboard-config
ceb929ad 120# for rgb.txt
b7331c94 121Requires: xorg-app-rgb >= 0.99.3
72a92456 122Requires: xorg-app-xkbcomp
17e710cb 123%{?with_hal:Suggests: dbus >= 1.0}
46c26eb0 124%{?with_hal:Suggests: hal}
1314be65 125Suggests: udev-acl
841de661 126%{?with_udev:Suggests: udev-core >= 1:143}
ffe418a4 127Suggests: xorg-driver-input-evdev
121316a6 128# xserver requires fixed and cursor fonts
0e75ca25
PS
129Requires: xorg-font-font-alias
130Requires: xorg-font-font-cursor-misc
9d193532 131Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
7d452154 132Suggests: xkeyboard-config
4f014ff9
JB
133Provides: xorg-xserver-server(ansic-abi) = %{xorg_xserver_server_ansic_abi}
134Provides: xorg-xserver-server(extension-abi) = %{xorg_xserver_server_extension_abi}
135Provides: xorg-xserver-server(font-abi) = %{xorg_xserver_server_font_abi}
136Provides: xorg-xserver-server(videodrv-abi) = %{xorg_xserver_server_videodrv_abi}
137Provides: xorg-xserver-server(xinput-abi) = %{xorg_xserver_server_xinput_abi}
765b36a9 138Obsoletes: X11-Xserver < 1:7.0.0
48cfc6a7 139Obsoletes: X11-driver-i2c < 1:7.0.0
765b36a9 140Obsoletes: X11-modules < 1:7.0.0
8be992d1 141Obsoletes: X11-setup < 1:7.0.0
765b36a9
AM
142Obsoletes: XFree86-Xserver < 1:7.0.0
143Obsoletes: XFree86-modules < 1:7.0.0
8be992d1 144Obsoletes: XFree86-setup < 1:7.0.0
236ed19c 145Obsoletes: Xserver
e53b8c11 146Obsoletes: xorg-xserver-server-xorgcfg
ef5a4e65 147BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
148
855976cb
JB
149# avoid self-dependencies on included modules
150%define _noautoreq libscanpci.so libxf1bpp.so
151
ef5a4e65 152%description
5cd265ab
JB
153Xorg server is a generally used X server which uses display hardware.
154It requires proper driver for your display hardware.
ef5a4e65 155
60cc86be
JR
156%description -l pl.UTF-8
157Serwer Xorg to podstawowy serwer X wyświetlający obraz na karcie
158graficznej. Do działania wymaga odpowiedniego sterownika.
5cd265ab
JB
159
160%package -n xorg-xserver-Xdmx
161Summary: Xdmx - distributed multi-head X server
46c7e5bc 162Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X
5cd265ab
JB
163Group: X11/Servers
164
165%description -n xorg-xserver-Xdmx
166Xdmx - distributed multi-head X server.
167
60cc86be 168%description -n xorg-xserver-Xdmx -l pl.UTF-8
5cd265ab
JB
169Xdmx - rozproszony, wielomonitorowy serwer X.
170
171%package -n xorg-xserver-Xnest
172Summary: Xnest - nested X server
46c7e5bc 173Summary(pl.UTF-8): Xnest - zagnieżdżony serwer X
5cd265ab 174Group: X11/Servers
765b36a9
AM
175Obsoletes: X11-Xnest < 1:7.0.0
176Obsoletes: XFree86-Xnest < 1:7.0.0
236ed19c 177Obsoletes: Xserver-Xnest
5cd265ab
JB
178
179%description -n xorg-xserver-Xnest
180Xnest is an X Window System server which runs in an X window. Xnest is
181a 'nested' window server, actually a client of the real X server,
182which manages windows and graphics requests for Xnest, while Xnest
183manages the windows and graphics requests for its own clients.
184
60cc86be 185%description -n xorg-xserver-Xnest -l pl.UTF-8
5cd265ab 186Xnest jest serwerem X uruchamianym w okienku innego serwera X. Xnest
60cc86be
JR
187zachowuje się jak klient X w stosunku do prawdziwego serwera X, a jak
188serwer X dla własnych klientów.
5cd265ab 189
60cc86be
JR
190%description -n xorg-xserver-Xnest -l ru.UTF-8
191Xnest - это сервер X Window System, который работает в окне X. На
192самом деле это клиент реального X-сервера, который управляет окнами и
193графическими запросами для Xnest в то время, как Xnest управляет
194окнами и графическими запросами для своих собственных клиентов.
5cd265ab 195
60cc86be
JR
196%description -n xorg-xserver-Xnest -l uk.UTF-8
197Xnest - це сервер X Window System, який працює у вікні X. Фактично це
198клієнт реального X-сервера, який керує вікнами та графічними запитами
199для Xnest в той час, як Xnest керує вікнами та графічними запитами для
200своїх власних клієнтів.
5cd265ab 201
6d8f95e3
JR
202%package -n xorg-xserver-Xephyr
203Summary: Xephyr - nested X server
204Summary(pl.UTF-8): Xephyr - zagnieżdżony serwer X
5cd265ab 205Group: X11/Servers
28572f2a 206Requires: pixman >= 0.15.0
5cd265ab 207
6d8f95e3
JR
208%description -n xorg-xserver-Xephyr
209Xephyr is a a kdrive server that outputs to a window on a pre-existing
210'host' X display. Think Xnest but with support for modern extensions
211like composite, damage and randr.
5cd265ab 212
ffe418a4
ER
213Unlike Xnest which is an X proxy, i.e. limited to the capabilities of
214the host X server, Xephyr is a real X server which uses the host X
215server window as "framebuffer" via fast SHM XImages.
6d8f95e3
JR
216
217It also has support for 'visually' debugging what the server is
218painting.
219
220%description -n xorg-xserver-Xephyr -l pl.UTF-8
221Xephyr jest serwerem opartym na kdrive wyświetlającym w oknie na
ffe418a4
ER
222istniejącym ekranie X. Można o nim myśleć jako o Xnest ze wsparciem do
223wspólczesnych rozszerzeń jak composite, damage i randr.
6d8f95e3
JR
224
225%package -n xorg-xserver-Xfbdev
226Summary: Xfbdev - Linux framebuffer device X server
227Summary(pl.UTF-8): Xfbdev - serwer X dla framebuffera
228Group: X11/Servers
229
230%description -n xorg-xserver-Xfbdev
ffe418a4
ER
231Xfbdev is a Linux framebuffer device X server based on the kdrive X
232server.
6d8f95e3
JR
233
234%description -n xorg-xserver-Xfbdev -l pl.UTF-8
235Xfbdev jest serwerem X dla framebuffera opartym na kdrive.
5cd265ab
JB
236
237%package -n xorg-xserver-Xvfb
238Summary: Xvfb - virtual framebuffer X server
46c7e5bc 239Summary(pl.UTF-8): Xvfb - serwer X z wirtualnym framebufferem
5cd265ab 240Group: X11/Servers
121316a6
JB
241# requires fixed and cursor fonts
242Requires: xorg-font-font-alias
243Requires: xorg-font-font-cursor-misc
244Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
765b36a9
AM
245Obsoletes: X11-Xvfb < 1:7.0.0
246Obsoletes: XFree86-Xvfb < 1:7.0.0
5cd265ab
JB
247
248%description -n xorg-xserver-Xvfb
249Xvfb (X Virtual Frame Buffer) is an X Window System server that is
250capable of running on machines with no display hardware and no
251physical input devices. Xvfb emulates a dumb framebuffer using virtual
252memory. Xvfb doesn't open any devices, but behaves otherwise as an X
253display. Xvfb is normally used for testing servers. Using Xvfb, the
254mfb or cfb code for any depth can be exercised without using real
255hardware that supports the desired depths. Xvfb has also been used to
256test X clients against unusual depths and screen configurations, to do
257batch processing with Xvfb as a background rendering engine, to do
258load testing, to help with porting an X server to a new platform, and
259to provide an unobtrusive way of running applications which really
260don't need an X server but insist on having one.
261
60cc86be
JR
262%description -n xorg-xserver-Xvfb -l pl.UTF-8
263Xvfb (X Virtual Frame Buffer) jest serwerem X, który można uruchamiać
264na maszynach bez urządzeń wyświetlających ani fizycznych urządzeń
265wejściowych. Xvfb emuluje prosty framebuffer w pamięci. Zwykle jest
266używany do testowania serwerów X, może też być używany do testowania
267klientów X w rzadko używanych konfiguracjach ekranu. Można też użyć
268Xvfb do uruchomienia aplikacji, które w rzeczywistości nie wymagają
269serwera X, ale odmawiają uruchomienia bez niego.
ef5a4e65 270
0796e6da 271%package devel
272Summary: Header files for X.org server
598a8139 273Summary(pl.UTF-8): Pliki nagłówkowe dla serwera X.org
0796e6da 274Group: X11/Development/Libraries
1082f031 275Requires: libdrm-devel >= 2.4.5
7282d6e2 276Requires: pixman-devel >= 0.16.0
17e710cb 277Requires: xorg-lib-libpciaccess-devel >= 0.8.0
f03f355d 278Requires: xorg-lib-libxkbfile-devel
17e710cb 279Requires: xorg-proto-dri2proto-devel >= 2.3
7cab8652 280Requires: xorg-proto-fontsproto-devel
b966d626 281Requires: xorg-proto-inputproto-devel >= 1.9.99.902
17e710cb 282Requires: xorg-proto-kbproto-devel >= 1.0.3
b3d605ad 283Requires: xorg-proto-randrproto-devel >= 1.2.99.3
17e710cb 284Requires: xorg-proto-renderproto-devel >= 0.11
7cab8652 285Requires: xorg-proto-videoproto-devel
7282d6e2 286Requires: xorg-proto-xextproto-devel >= 1:7.0.99.3
17e710cb 287Requires: xorg-proto-xproto-devel >= 7.0.17
765b36a9 288Obsoletes: X11-Xserver-devel < 1:7.0.0
855976cb 289Obsoletes: XFree86-Xserver-devel < 1:7.0.0
0796e6da 290
291%description devel
292Header files for X.org server.
293
60cc86be
JR
294%description devel -l pl.UTF-8
295Pliki nagłówkowe dla serwera X.org.
0796e6da 296
87c08961 297%package -n xorg-xserver-libdri
0da6b14d 298Summary: DRI extension library for X.org server
87c08961
PG
299Summary(pl.UTF-8): Biblioteka rozszerzenia DRI dla serwera X.org
300Group: X11/Servers
301Requires: %{name} = %{version}-%{release}
7a411c00 302Provides: xorg-xserver-module(dri)
87c08961 303%if %{without multigl}
a00bf511 304Conflicts: xorg-driver-video-fglrx
ffe418a4 305Conflicts: xorg-driver-video-nvidia
87c08961
PG
306%endif
307
308%description -n xorg-xserver-libdri
0da6b14d 309DRI extension library for X.org server.
87c08961
PG
310
311%description -n xorg-xserver-libdri -l pl.UTF-8
312Biblioteka rozszerzenia DRI dla serwera X.org.
313
f6f4cf9a 314%package -n xorg-xserver-libglx
0da6b14d 315Summary: GLX extension library for X.org server
46c7e5bc 316Summary(pl.UTF-8): Biblioteka rozszerzenia GLX dla serwera X.org
f6f4cf9a 317Group: X11/Servers
927af2d7 318Requires: %{name} = %{version}-%{release}
68092a9e 319Requires: xorg-xserver-libdri = %{version}-%{release}
88fe49de
JB
320# Mesa version glapi tables in glx/ dir come from
321Provides: xorg-xserver-libglx(glapi) = 7.1.0
7a411c00 322Provides: xorg-xserver-module(glx)
855976cb
JB
323Obsoletes: X11-OpenGL-core < 1:7.0.0
324Obsoletes: XFree86-OpenGL-core < 1:7.0.0
16097b2e 325%if %{without multigl}
a00bf511 326Conflicts: xorg-driver-video-fglrx
ffe418a4 327Conflicts: xorg-driver-video-nvidia
6494c988 328%endif
f6f4cf9a
PS
329
330%description -n xorg-xserver-libglx
0da6b14d 331GLX extension library for X.org server.
f6f4cf9a 332
60cc86be 333%description -n xorg-xserver-libglx -l pl.UTF-8
f6f4cf9a
PS
334Biblioteka rozszerzenia GLX dla serwera X.org.
335
ef5a4e65 336%prep
f54375a7 337%setup -q -n xorg-server-%{version}
8405354a
AM
338%patch0 -p0
339%patch1 -p1
d0315416 340%patch2 -p1
24335308 341%patch3 -p1
c3a4ef53 342%patch4 -p1
ef5a4e65 343
762073cc
AM
344# xserver uses pixman-1 API/ABI so put that explictly here
345sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
346
ef5a4e65 347%build
16097b2e
ER
348API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
349if [ $API != %{xorg_xserver_server_ansic_abi} ]; then
350 echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
351 exit 1
0345b66a
AM
352fi
353
16097b2e
ER
354API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
355if [ $API != %{xorg_xserver_server_extension_abi} ]; then
356 echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
357 exit 1
0345b66a
AM
358fi
359
16097b2e
ER
360API=$(awk '/#define ABI_FONT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
361if [ $API != %{xorg_xserver_server_font_abi} ]; then
362 echo "Set %%define xorg_xserver_server_font_abi to $API and rerun."
363 exit 1
0345b66a 364fi
16097b2e
ER
365API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
366if [ $API != %{xorg_xserver_server_videodrv_abi} ]; then
367 echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
368 exit 1
0345b66a 369fi
16097b2e
ER
370API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
371if [ $API != %{xorg_xserver_server_xinput_abi} ]; then
372 echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
373 exit 1
0345b66a
AM
374fi
375
ff624999 376%{__libtoolize}
7282d6e2 377%{__aclocal} -I m4
ef5a4e65 378%{__autoconf}
379%{__autoheader}
380%{__automake}
381%configure \
06015eac
AM
382 --with-os-name="PLD/Linux" \
383 --with-os-vendor="PLD/Team" \
6d8f95e3 384 --%{?with_dbus:en}%{!?with_dbus:dis}able-config-dbus \
5438c31a 385 %{!?with_hal:--disable-config-hal} \
51ee8cb5 386 --%{?with_udev:en}%{!?with_udev:dis}able-config-udev \
6118b827 387 --enable-aiglx \
da97cb2c 388 --enable-builddocs \
4f014ff9 389 --enable-dga \
8b73c5c3 390 %{?with_dmx:--enable-dmx} \
4f014ff9 391 --enable-glx-tls \
da5d13b0 392 --enable-install-libxf86config \
5438c31a 393 %{?with_record:--enable-record} \
6d8f95e3
JR
394 --enable-kdrive \
395 --enable-xephyr \
396 --enable-xfbdev \
4d289119 397 --enable-glx-tls \
6d8f95e3
JR
398 --disable-xsdl \
399 --disable-xfake \
a1e1d009 400 --enable-secure-rpc \
f815c9e0 401 --%{?with_dri2:en}%{!?with_dri2:dis}able-dri2 \
8d40fd8d 402 --with-dri-driver-path=%{_libdir}/xorg/modules/dri \
f161e7b1 403 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
27d22b31 404 --with-xkb-output=/var/lib/xkb
be25dd56 405
ef5a4e65 406%{__make}
407
408%install
409rm -rf $RPM_BUILD_ROOT
410
411%{__make} install \
30a17203 412 DESTDIR=$RPM_BUILD_ROOT
ef5a4e65 413
3edafdd8 414install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
feb53d4a 415install -d $RPM_BUILD_ROOT/etc/{security/console.apps,X11/xorg.conf.d}
a15a709b 416install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
3d2be38e
AM
417install -d $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
418
3edafdd8
JB
419:> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
420:> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
421
944f790e 422rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a}
0796e6da 423
3d2be38e 424install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/10-quirks.conf
40be6fd2 425
e8fc790d
JR
426%if %{with multigl}
427cd $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions
428mv -f libglx.so libglx.so.%{version}
429ln -sf libglx.so.%{version} libglx.so
430%endif
431
ef5a4e65 432%clean
433rm -rf $RPM_BUILD_ROOT
434
8b8de5c8
JR
435%if %{with multigl}
436%post -n xorg-xserver-libglx
437if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then
438 ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so
439fi
440%endif
441
94cbcc0b
JB
442%triggerpostun -- xorg-xserver-server < 1.5.0
443if [ -f /etc/X11/xorg.conf ]; then
444 sed -i -e 's/^\s*RgbPath.*$/#& # obsolete option/' /etc/X11/xorg.conf
445 sed -i -e 's/^\s*Load\s*"type1".*$/#& # obsolete module/' /etc/X11/xorg.conf
446%if %{without record}
447 sed -i -e 's/^\s*Load\s*"record".*$/#& # module disabled in this build/' /etc/X11/xorg.conf
448%endif
47cbce9c 449 sed -i -e 's/^\s*Load\s*"xtrap".*$/#& # obsolete module/' /etc/X11/xorg.conf
94cbcc0b
JB
450fi
451
ef5a4e65 452%files
453%defattr(644,root,root,755)
17e710cb 454%doc COPYING ChangeLog README
5cd265ab 455%attr(755,root,root) %{_bindir}/X
934be85d
PS
456%attr(755,root,root) %{_bindir}/Xorg
457%attr(4755,root,root) %{_bindir}/Xwrapper
507f68f4 458%attr(755,root,root) %{_bindir}/cvt
5cd265ab 459%attr(755,root,root) %{_bindir}/gtf
944f790e 460%dir %{_libdir}/xorg
a1e1d009 461%{_libdir}/xorg/protocol.txt
944f790e 462%dir %{_libdir}/xorg/modules
a15a709b 463%dir %{_libdir}/xorg/modules/dri
79e47f41 464%dir %{_libdir}/xorg/modules/drivers
944f790e 465%dir %{_libdir}/xorg/modules/extensions
30a17203 466%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdbe.so
f815c9e0 467%{?with_dri2:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri2.so}
30a17203 468%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libextmod.so
5438c31a 469%{?with_record:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/librecord.so}
79e47f41 470%dir %{_libdir}/xorg/modules/input
944f790e
JB
471%dir %{_libdir}/xorg/modules/multimedia
472%attr(755,root,root) %{_libdir}/xorg/modules/multimedia/*.so
79e47f41 473%attr(755,root,root) %{_libdir}/xorg/modules/lib*.so
27d22b31
JB
474%dir /var/lib/xkb
475/var/lib/xkb/README.compiled
3edafdd8
JB
476%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xserver
477%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xserver
478%config(missingok) /etc/security/console.apps/xserver
ffe418a4 479%{?with_dbus:/etc/dbus-1/system.d/xorg-server.conf}
feb53d4a 480%dir /etc/X11/xorg.conf.d
3d2be38e
AM
481%dir %{_datadir}/X11/xorg.conf.d
482# overwrite these settings with local configs in /etc/X11/xorg.conf.d
483%verify(not md5 mtime size) %{_datadir}/X11/xorg.conf.d/*.conf
30a17203 484%{_mandir}/man1/Xorg.1x*
5cd265ab 485%{_mandir}/man1/Xserver.1x*
507f68f4 486%{_mandir}/man1/cvt.1*
30a17203 487%{_mandir}/man1/gtf.1x*
88e91f7d 488%{_mandir}/man4/exa.4*
30a17203 489%{_mandir}/man4/fbdevhw.4*
5cd265ab
JB
490%{_mandir}/man5/xorg.conf.5x*
491
8b73c5c3 492%if %{with dmx}
5cd265ab
JB
493%files -n xorg-xserver-Xdmx
494%defattr(644,root,root,755)
495%attr(755,root,root) %{_bindir}/Xdmx
496%attr(755,root,root) %{_bindir}/dmxaddinput
497%attr(755,root,root) %{_bindir}/dmxaddscreen
858a8fe0 498%attr(755,root,root) %{_bindir}/dmxinfo
5cd265ab
JB
499%attr(755,root,root) %{_bindir}/dmxreconfig
500%attr(755,root,root) %{_bindir}/dmxresize
501%attr(755,root,root) %{_bindir}/dmxrminput
502%attr(755,root,root) %{_bindir}/dmxrmscreen
503%attr(755,root,root) %{_bindir}/dmxtodmx
504%attr(755,root,root) %{_bindir}/dmxwininfo
505%attr(755,root,root) %{_bindir}/vdltodmx
5cd265ab 506%attr(755,root,root) %{_bindir}/xdmxconfig
30a17203
JB
507%{_mandir}/man1/Xdmx.1x*
508%{_mandir}/man1/dmxtodmx.1x*
509%{_mandir}/man1/vdltodmx.1x*
510%{_mandir}/man1/xdmxconfig.1x*
8b73c5c3 511%endif
5cd265ab
JB
512
513%files -n xorg-xserver-Xnest
514%defattr(644,root,root,755)
515%attr(755,root,root) %{_bindir}/Xnest
30a17203 516%{_mandir}/man1/Xnest.1x*
5cd265ab 517
6d8f95e3
JR
518%files -n xorg-xserver-Xephyr
519%defattr(644,root,root,755)
520%attr(755,root,root) %{_bindir}/Xephyr
521%{_mandir}/man1/Xephyr.1x*
522
523%files -n xorg-xserver-Xfbdev
524%defattr(644,root,root,755)
525%attr(755,root,root) %{_bindir}/Xfbdev
526
5cd265ab
JB
527%files -n xorg-xserver-Xvfb
528%defattr(644,root,root,755)
529%attr(755,root,root) %{_bindir}/Xvfb
30a17203 530%{_mandir}/man1/Xvfb.1x*
0796e6da 531
532%files devel
533%defattr(644,root,root,755)
dd313435 534%doc doc/xml/{Xserver-spec.html,xorg.css}
0796e6da 535%{_includedir}/xorg
e27e2be3 536%{_libdir}/libxf86config.a
565bbfd3 537%{_aclocaldir}/xorg-server.m4
0796e6da 538%{_pkgconfigdir}/xorg-server.pc
f6f4cf9a 539
87c08961
PG
540%files -n xorg-xserver-libdri
541%defattr(644,root,root,755)
542%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri.so
543
f6f4cf9a 544%files -n xorg-xserver-libglx
0a2e6c9d 545%defattr(644,root,root,755)
e8fc790d
JR
546%if %{with multigl}
547%ghost %{_libdir}/xorg/modules/extensions/libglx.so
548%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.%{version}
549%else
f6f4cf9a 550%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so
e8fc790d 551%endif
This page took 0.172067 seconds and 4 git commands to generate.