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