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