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