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