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