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