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