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