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