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