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