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