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