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