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