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
8 # ABI versions, see hw/xfree86/common/xf86Module.h
9 %define xorg_xserver_server_ansic_abi 0.4
10 %define xorg_xserver_server_extension_abi 1.1
11 %define xorg_xserver_server_font_abi 0.6
12 %define xorg_xserver_server_videodrv_abi 4.1
13 %define xorg_xserver_server_xinput_abi 2.1
16 Summary(pl.UTF-8): Serwer X.org
17 Name: xorg-xserver-server
19 Release: 1%{?with_multigl:.mgl}
22 Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
23 # Source0-md5: 9a817e5f7374d45b4dbe64b21bc0fb61
25 Patch0: %{name}-ncurses.patch
26 Patch1: %{name}-xwrapper.patch
27 Patch2: %{name}-glyph.patch
28 URL: http://xorg.freedesktop.org/
29 BuildRequires: Mesa-libGL-devel >= 7.1
31 BuildRequires: OpenGL-GLX-devel
32 BuildRequires: autoconf >= 2.57
33 BuildRequires: automake
36 BuildRequires: dbus-devel
37 BuildRequires: hal-devel
39 BuildRequires: libdrm-devel >= 2.3.1
40 BuildRequires: libtool
41 BuildRequires: ncurses-devel
42 BuildRequires: pam-devel
43 BuildRequires: perl-base
44 BuildRequires: pixman-devel >= 0.9.5
45 BuildRequires: pkgconfig >= 1:0.19
46 BuildRequires: xorg-app-mkfontscale
47 BuildRequires: xorg-lib-libX11-devel
48 BuildRequires: xorg-lib-libXau-devel
49 BuildRequires: xorg-lib-libXaw-devel
50 BuildRequires: xorg-lib-libXdmcp-devel
51 BuildRequires: xorg-lib-libXext-devel
52 BuildRequires: xorg-lib-libXfont-devel
53 BuildRequires: xorg-lib-libXi-devel
54 BuildRequires: xorg-lib-libXmu-devel
55 BuildRequires: xorg-lib-libXpm-devel
56 BuildRequires: xorg-lib-libXrender-devel
57 BuildRequires: xorg-lib-libXres-devel
58 BuildRequires: xorg-lib-libXt-devel >= 1.0.0
59 BuildRequires: xorg-lib-libXtst-devel
60 BuildRequires: xorg-lib-libXxf86dga-devel
61 BuildRequires: xorg-lib-libXxf86misc-devel
62 BuildRequires: xorg-lib-libXxf86vm-devel
63 BuildRequires: xorg-lib-libdmx-devel
64 BuildRequires: xorg-lib-libfontenc-devel
65 BuildRequires: xorg-lib-libpciaccess-devel
66 BuildRequires: xorg-lib-libxkbfile-devel
67 BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
68 BuildRequires: xorg-lib-xtrans-devel
69 BuildRequires: xorg-proto-bigreqsproto-devel
70 BuildRequires: xorg-proto-compositeproto-devel >= 0.4
71 BuildRequires: xorg-proto-damageproto-devel >= 1.1
72 BuildRequires: xorg-proto-dmxproto-devel
73 BuildRequires: xorg-proto-evieext-devel
74 BuildRequires: xorg-proto-fixesproto-devel >= 4.0
75 BuildRequires: xorg-proto-fontcacheproto-devel
76 BuildRequires: xorg-proto-fontsproto-devel
77 BuildRequires: xorg-proto-glproto-devel >= 1.4.8
78 BuildRequires: xorg-proto-inputproto-devel >= 1.4.2
79 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
80 BuildRequires: xorg-proto-printproto-devel
81 BuildRequires: xorg-proto-randrproto-devel >= 1.2
82 BuildRequires: xorg-proto-recordproto-devel
83 BuildRequires: xorg-proto-renderproto-devel >= 0.9.3
84 BuildRequires: xorg-proto-resourceproto-devel
85 BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
86 BuildRequires: xorg-proto-trapproto-devel
87 BuildRequires: xorg-proto-videoproto-devel
88 BuildRequires: xorg-proto-xcmiscproto-devel
89 BuildRequires: xorg-proto-xextproto-devel
90 BuildRequires: xorg-proto-xf86bigfontproto-devel
91 BuildRequires: xorg-proto-xf86dgaproto-devel
92 BuildRequires: xorg-proto-xf86driproto-devel >= 2.0.4
93 BuildRequires: xorg-proto-xf86miscproto-devel
94 BuildRequires: xorg-proto-xf86vidmodeproto-devel
95 BuildRequires: xorg-proto-xineramaproto-devel
96 BuildRequires: xorg-proto-xproto-devel >= 7.0.9
97 BuildRequires: xorg-util-util-macros >= 0.99.2
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
101 Requires: xkeyboard-config
103 Requires: xorg-app-rgb >= 0.99.3
104 Requires: xorg-app-xkbcomp
105 # xserver requires fixed and cursor fonts
106 Requires: xorg-font-font-alias
107 Requires: xorg-font-font-cursor-misc
108 Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
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}
114 Obsoletes: X11-Xserver < 1:7.0.0
115 Obsoletes: X11-driver-i2c < 1:7.0.0
116 Obsoletes: X11-modules < 1:7.0.0
117 Obsoletes: X11-setup < 1:7.0.0
118 Obsoletes: XFree86-Xserver < 1:7.0.0
119 Obsoletes: XFree86-modules < 1:7.0.0
120 Obsoletes: XFree86-setup < 1:7.0.0
122 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
124 # avoid self-dependencies on included modules
125 %define _noautoreq libscanpci.so libxf1bpp.so
128 Xorg server is a generally used X server which uses display hardware.
129 It requires proper driver for your display hardware.
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.
135 %package -n xorg-xserver-Xdmx
136 Summary: Xdmx - distributed multi-head X server
137 Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X
140 %description -n xorg-xserver-Xdmx
141 Xdmx - distributed multi-head X server.
143 %description -n xorg-xserver-Xdmx -l pl.UTF-8
144 Xdmx - rozproszony, wielomonitorowy serwer X.
146 %package -n xorg-xserver-Xnest
147 Summary: Xnest - nested X server
148 Summary(pl.UTF-8): Xnest - zagnieżdżony serwer X
150 Obsoletes: X11-Xnest < 1:7.0.0
151 Obsoletes: XFree86-Xnest < 1:7.0.0
152 Obsoletes: Xserver-Xnest
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.
160 %description -n xorg-xserver-Xnest -l pl.UTF-8
161 Xnest jest serwerem X uruchamianym w okienku innego serwera X. Xnest
162 zachowuje się jak klient X w stosunku do prawdziwego serwera X, a jak
163 serwer X dla własnych klientów.
165 %description -n xorg-xserver-Xnest -l ru.UTF-8
166 Xnest - это сервер X Window System, который работает в окне X. На
167 самом деле это клиент реального X-сервера, который управляет окнами и
168 графическими запросами для Xnest в то время, как Xnest управляет
169 окнами и графическими запросами для своих собственных клиентов.
171 %description -n xorg-xserver-Xnest -l uk.UTF-8
172 Xnest - це сервер X Window System, який працює у вікні X. Фактично це
173 клієнт реального X-сервера, який керує вікнами та графічними запитами
174 для Xnest в той час, як Xnest керує вікнами та графічними запитами для
175 своїх власних клієнтів.
177 %package -n xorg-xserver-Xprt
178 Summary: Xprt - Xprint server for X
179 Summary(pl.UTF-8): Xprt - serwer Xprint dla X
181 Obsoletes: X11-Xprt < 1:7.0.0
182 Obsoletes: XFree86-Xprt < 1:7.0.0
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.
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.
192 %package -n xorg-xserver-Xvfb
193 Summary: Xvfb - virtual framebuffer X server
194 Summary(pl.UTF-8): Xvfb - serwer X z wirtualnym framebufferem
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
200 Obsoletes: X11-Xvfb < 1:7.0.0
201 Obsoletes: XFree86-Xvfb < 1:7.0.0
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.
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.
227 Summary: Header files for X.org server
228 Summary(pl.UTF-8): Pliki nagłówkowe dla servera X.org
229 Group: X11/Development/Libraries
230 Requires: libdrm-devel >= 2.3.0
231 Requires: pixman-devel >= 0.9.5
232 Requires: xorg-proto-fontsproto-devel
233 Requires: xorg-proto-renderproto-devel >= 0.9.3
234 Requires: xorg-proto-videoproto-devel
235 Requires: xorg-proto-xextproto-devel
236 Requires: xorg-proto-xproto-devel >= 7.0.9
237 Obsoletes: X11-Xserver-devel < 1:7.0.0
238 Obsoletes: XFree86-Xserver-devel < 1:7.0.0
241 Header files for X.org server.
243 %description devel -l pl.UTF-8
244 Pliki nagłówkowe dla serwera X.org.
247 Summary: xorgcfg - graphical configuration tool for X.org server
248 Summary(pl.UTF-8): xorgcfg - graficzne narzędzie konfiguracyjne dla serwera X.org
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
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.
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.
267 %package -n xorg-xserver-libglx
268 Summary: GLX extension library fo X.org server
269 Summary(pl.UTF-8): Biblioteka rozszerzenia GLX dla serwera X.org
271 Requires: %{name} = %{version}-%{release}
272 # Mesa-dri-driver-swrast replaces libGLcore.so
273 Requires: xorg-xserver-libglx(glapi)
274 Provides: xorg-xserver-modules-libglx
275 Obsoletes: X11-OpenGL-core < 1:7.0.0
276 Obsoletes: XFree86-OpenGL-core < 1:7.0.0
277 %if %{without multigl}
278 Conflicts: xorg-driver-video-nvidia
281 %description -n xorg-xserver-libglx
282 GLX extension library fo X.org server.
284 %description -n xorg-xserver-libglx -l pl.UTF-8
285 Biblioteka rozszerzenia GLX dla serwera X.org.
288 %setup -q -n xorg-server-%{version}
293 # xserver uses pixman-1 API/ABI so put that explictly here
294 sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
297 API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
298 if [ $API != %{xorg_xserver_server_ansic_abi} ]; then
299 echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
303 API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
304 if [ $API != %{xorg_xserver_server_extension_abi} ]; then
305 echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
309 API=$(awk '/#define ABI_FONT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
310 if [ $API != %{xorg_xserver_server_font_abi} ]; then
311 echo "Set %%define xorg_xserver_server_font_abi to $API and rerun."
314 API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
315 if [ $API != %{xorg_xserver_server_videodrv_abi} ]; then
316 echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
319 API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
320 if [ $API != %{xorg_xserver_server_xinput_abi} ]; then
321 echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
331 --with-os-name="PLD/Linux" \
332 --with-os-vendor="PLD/Team" \
333 --disable-builtin-fonts \
334 %{?!with_hal:--disable-config-hal} \
341 --enable-secure-rpc \
343 --%{?with_dri2:en}%{!?with_dri2:dis}able-dri2 \
344 --%{?with_xprint:en}%{!?with_xprint:dis}able-xprint \
345 --with-dri-driver-path=%{_libdir}/xorg/modules/dri \
346 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
347 --with-xkb-output=/var/lib/xkb
352 rm -rf $RPM_BUILD_ROOT
355 DESTDIR=$RPM_BUILD_ROOT
357 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
358 install -d $RPM_BUILD_ROOT/etc/security/console.apps
359 install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
360 install hw/xfree86/parser/xf86Parser.h $RPM_BUILD_ROOT%{_includedir}/xorg/xf86Parser.h
361 install hw/xfree86/parser/xf86Optrec.h $RPM_BUILD_ROOT%{_includedir}/xorg/xf86Optrec.h
362 install hw/xfree86/parser/libxf86config.a $RPM_BUILD_ROOT%{_libdir}/libxf86config.a
363 :> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
364 :> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
366 rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a}
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
375 rm -rf $RPM_BUILD_ROOT
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
385 %defattr(644,root,root,755)
386 %doc COPYING ChangeLog
387 %attr(755,root,root) %{_bindir}/X
388 %attr(755,root,root) %{_bindir}/Xorg
389 %attr(4755,root,root) %{_bindir}/Xwrapper
390 %attr(755,root,root) %{_bindir}/cvt
391 %attr(755,root,root) %{_bindir}/gtf
392 %attr(755,root,root) %{_bindir}/in[bwl]
393 %attr(755,root,root) %{_bindir}/ioport
394 %attr(755,root,root) %{_bindir}/out[bwl]
395 %attr(755,root,root) %{_bindir}/xorgconfig
397 %{_libdir}/X11/Options
399 %{_libdir}/xorg/protocol.txt
400 %dir %{_libdir}/xorg/modules
401 %dir %{_libdir}/xorg/modules/dri
402 %dir %{_libdir}/xorg/modules/drivers
403 %dir %{_libdir}/xorg/modules/extensions
404 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdbe.so
405 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri.so
406 %{?with_dri2:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri2.so}
407 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libextmod.so
408 %dir %{_libdir}/xorg/modules/fonts
409 %attr(755,root,root) %{_libdir}/xorg/modules/fonts/lib*.so
410 %dir %{_libdir}/xorg/modules/input
411 %dir %{_libdir}/xorg/modules/linux
412 %attr(755,root,root) %{_libdir}/xorg/modules/linux/libfbdevhw.so
413 %dir %{_libdir}/xorg/modules/multimedia
414 %attr(755,root,root) %{_libdir}/xorg/modules/multimedia/*.so
415 %attr(755,root,root) %{_libdir}/xorg/modules/lib*.so
417 /var/lib/xkb/README.compiled
418 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xserver
419 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xserver
420 %config(missingok) /etc/security/console.apps/xserver
421 %{_mandir}/man1/Xorg.1x*
422 %{_mandir}/man1/Xserver.1x*
423 %{_mandir}/man1/cvt.1*
424 %{_mandir}/man1/gtf.1x*
425 %{_mandir}/man1/xorgconfig.1*
426 %{_mandir}/man4/exa.4*
427 %{_mandir}/man4/fbdevhw.4*
428 %{_mandir}/man5/xorg.conf.5x*
430 %files -n xorg-xserver-Xdmx
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_bindir}/Xdmx
433 %attr(755,root,root) %{_bindir}/dmxaddinput
434 %attr(755,root,root) %{_bindir}/dmxaddscreen
435 %attr(755,root,root) %{_bindir}/dmxreconfig
436 %attr(755,root,root) %{_bindir}/dmxresize
437 %attr(755,root,root) %{_bindir}/dmxrminput
438 %attr(755,root,root) %{_bindir}/dmxrmscreen
439 %attr(755,root,root) %{_bindir}/dmxtodmx
440 %attr(755,root,root) %{_bindir}/dmxwininfo
441 %attr(755,root,root) %{_bindir}/vdltodmx
442 %attr(755,root,root) %{_bindir}/xdmx
443 %attr(755,root,root) %{_bindir}/xdmxconfig
444 %{_mandir}/man1/Xdmx.1x*
445 %{_mandir}/man1/dmxtodmx.1x*
446 %{_mandir}/man1/vdltodmx.1x*
447 %{_mandir}/man1/xdmxconfig.1x*
449 %files -n xorg-xserver-Xnest
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_bindir}/Xnest
452 %{_mandir}/man1/Xnest.1x*
455 %files -n xorg-xserver-Xprt
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_bindir}/Xprt
458 %{_libdir}/X11/xserver
459 %{_mandir}/man1/Xprt.1x*
462 %files -n xorg-xserver-Xvfb
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_bindir}/Xvfb
465 %{_mandir}/man1/Xvfb.1x*
468 %defattr(644,root,root,755)
470 %{_libdir}/libxf86config.a
471 %{_aclocaldir}/xorg-server.m4
472 %{_pkgconfigdir}/xorg-server.pc
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_bindir}/xorgcfg
477 %{_includedir}/X11/bitmaps/*
478 %{_includedir}/X11/pixmaps
479 %{_datadir}/X11/app-defaults/XOrgCfg
480 %{_mandir}/man1/xorgcfg.1x*
482 %files -n xorg-xserver-libglx
483 %defattr(644,root,root,755)
485 %ghost %{_libdir}/xorg/modules/extensions/libglx.so
486 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.%{version}
488 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so