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