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