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