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