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
7 %bcond_with record # RECORD extension
8 %bcond_with xtrap # XTrap extension (deprecated)
10 # ABI versions, see hw/xfree86/common/xf86Module.h
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
18 Summary(pl.UTF-8): Serwer X.org
19 Name: xorg-xserver-server
21 Release: 1%{?with_multigl:.mgl}
24 Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
25 # Source0-md5: 9a817e5f7374d45b4dbe64b21bc0fb61
27 Patch0: %{name}-ncurses.patch
28 Patch1: %{name}-xwrapper.patch
29 Patch2: %{name}-glyph.patch
30 URL: http://xorg.freedesktop.org/
31 BuildRequires: Mesa-libGL-devel >= 7.1
33 BuildRequires: OpenGL-GLX-devel
34 BuildRequires: autoconf >= 2.57
35 BuildRequires: automake
38 BuildRequires: dbus-devel
39 BuildRequires: hal-devel
41 BuildRequires: libdrm-devel >= 2.3.1
42 BuildRequires: libtool
43 BuildRequires: ncurses-devel
44 BuildRequires: pam-devel
45 BuildRequires: perl-base
46 BuildRequires: pixman-devel >= 0.9.5
47 BuildRequires: pkgconfig >= 1:0.19
48 BuildRequires: xorg-app-mkfontscale
49 BuildRequires: xorg-lib-libX11-devel
50 BuildRequires: xorg-lib-libXau-devel
51 BuildRequires: xorg-lib-libXaw-devel
52 BuildRequires: xorg-lib-libXdmcp-devel
53 BuildRequires: xorg-lib-libXext-devel
54 BuildRequires: xorg-lib-libXfont-devel
55 BuildRequires: xorg-lib-libXi-devel
56 BuildRequires: xorg-lib-libXmu-devel
57 BuildRequires: xorg-lib-libXpm-devel
58 BuildRequires: xorg-lib-libXrender-devel
59 BuildRequires: xorg-lib-libXres-devel
60 BuildRequires: xorg-lib-libXt-devel >= 1.0.0
61 BuildRequires: xorg-lib-libXtst-devel
62 BuildRequires: xorg-lib-libXxf86dga-devel
63 BuildRequires: xorg-lib-libXxf86misc-devel
64 BuildRequires: xorg-lib-libXxf86vm-devel
65 BuildRequires: xorg-lib-libdmx-devel
66 BuildRequires: xorg-lib-libfontenc-devel
67 BuildRequires: xorg-lib-libpciaccess-devel
68 BuildRequires: xorg-lib-libxkbfile-devel
69 BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
70 BuildRequires: xorg-lib-xtrans-devel
71 BuildRequires: xorg-proto-bigreqsproto-devel
72 BuildRequires: xorg-proto-compositeproto-devel >= 0.4
73 BuildRequires: xorg-proto-damageproto-devel >= 1.1
74 BuildRequires: xorg-proto-dmxproto-devel
75 BuildRequires: xorg-proto-evieext-devel
76 BuildRequires: xorg-proto-fixesproto-devel >= 4.0
77 BuildRequires: xorg-proto-fontcacheproto-devel
78 BuildRequires: xorg-proto-fontsproto-devel
79 BuildRequires: xorg-proto-glproto-devel >= 1.4.8
80 BuildRequires: xorg-proto-inputproto-devel >= 1.4.2
81 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
82 BuildRequires: xorg-proto-printproto-devel
83 BuildRequires: xorg-proto-randrproto-devel >= 1.2
84 %{?with_record:BuildRequires: xorg-proto-recordproto-devel}
85 BuildRequires: xorg-proto-renderproto-devel >= 0.9.3
86 BuildRequires: xorg-proto-resourceproto-devel
87 BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
88 %{?with_xtrap:BuildRequires: xorg-proto-trapproto-devel}
89 BuildRequires: xorg-proto-videoproto-devel
90 BuildRequires: xorg-proto-xcmiscproto-devel
91 BuildRequires: xorg-proto-xextproto-devel
92 BuildRequires: xorg-proto-xf86bigfontproto-devel
93 BuildRequires: xorg-proto-xf86dgaproto-devel
94 BuildRequires: xorg-proto-xf86driproto-devel >= 2.0.4
95 BuildRequires: xorg-proto-xf86miscproto-devel
96 BuildRequires: xorg-proto-xf86vidmodeproto-devel
97 BuildRequires: xorg-proto-xineramaproto-devel
98 BuildRequires: xorg-proto-xproto-devel >= 7.0.9
99 BuildRequires: xorg-util-util-macros >= 0.99.2
100 #BR: xcalibrateproto, tslib (for KDRIVE only)
101 #BR: glitz-devel >= 0.4.3 (for XGL and EGL only)
102 Requires(triggerpostun): sed >= 4.0
103 Requires: pixman >= 0.9.5
104 Requires: xkeyboard-config
106 Requires: xorg-app-rgb >= 0.99.3
107 Requires: xorg-app-xkbcomp
108 # xserver requires fixed and cursor fonts
109 Requires: xorg-font-font-alias
110 Requires: xorg-font-font-cursor-misc
111 Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
112 Provides: xorg-xserver-server(ansic-abi) = %{xorg_xserver_server_ansic_abi}
113 Provides: xorg-xserver-server(extension-abi) = %{xorg_xserver_server_extension_abi}
114 Provides: xorg-xserver-server(font-abi) = %{xorg_xserver_server_font_abi}
115 Provides: xorg-xserver-server(videodrv-abi) = %{xorg_xserver_server_videodrv_abi}
116 Provides: xorg-xserver-server(xinput-abi) = %{xorg_xserver_server_xinput_abi}
117 Obsoletes: X11-Xserver < 1:7.0.0
118 Obsoletes: X11-driver-i2c < 1:7.0.0
119 Obsoletes: X11-modules < 1:7.0.0
120 Obsoletes: X11-setup < 1:7.0.0
121 Obsoletes: XFree86-Xserver < 1:7.0.0
122 Obsoletes: XFree86-modules < 1:7.0.0
123 Obsoletes: XFree86-setup < 1:7.0.0
125 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
127 # avoid self-dependencies on included modules
128 %define _noautoreq libscanpci.so libxf1bpp.so
131 Xorg server is a generally used X server which uses display hardware.
132 It requires proper driver for your display hardware.
134 %description -l pl.UTF-8
135 Serwer Xorg to podstawowy serwer X wyświetlający obraz na karcie
136 graficznej. Do działania wymaga odpowiedniego sterownika.
138 %package -n xorg-xserver-Xdmx
139 Summary: Xdmx - distributed multi-head X server
140 Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X
143 %description -n xorg-xserver-Xdmx
144 Xdmx - distributed multi-head X server.
146 %description -n xorg-xserver-Xdmx -l pl.UTF-8
147 Xdmx - rozproszony, wielomonitorowy serwer X.
149 %package -n xorg-xserver-Xnest
150 Summary: Xnest - nested X server
151 Summary(pl.UTF-8): Xnest - zagnieżdżony serwer X
153 Obsoletes: X11-Xnest < 1:7.0.0
154 Obsoletes: XFree86-Xnest < 1:7.0.0
155 Obsoletes: Xserver-Xnest
157 %description -n xorg-xserver-Xnest
158 Xnest is an X Window System server which runs in an X window. Xnest is
159 a 'nested' window server, actually a client of the real X server,
160 which manages windows and graphics requests for Xnest, while Xnest
161 manages the windows and graphics requests for its own clients.
163 %description -n xorg-xserver-Xnest -l pl.UTF-8
164 Xnest jest serwerem X uruchamianym w okienku innego serwera X. Xnest
165 zachowuje się jak klient X w stosunku do prawdziwego serwera X, a jak
166 serwer X dla własnych klientów.
168 %description -n xorg-xserver-Xnest -l ru.UTF-8
169 Xnest - это сервер X Window System, который работает в окне X. На
170 самом деле это клиент реального X-сервера, который управляет окнами и
171 графическими запросами для Xnest в то время, как Xnest управляет
172 окнами и графическими запросами для своих собственных клиентов.
174 %description -n xorg-xserver-Xnest -l uk.UTF-8
175 Xnest - це сервер X Window System, який працює у вікні X. Фактично це
176 клієнт реального X-сервера, який керує вікнами та графічними запитами
177 для Xnest в той час, як Xnest керує вікнами та графічними запитами для
178 своїх власних клієнтів.
180 %package -n xorg-xserver-Xprt
181 Summary: Xprt - Xprint server for X
182 Summary(pl.UTF-8): Xprt - serwer Xprint dla X
184 Obsoletes: X11-Xprt < 1:7.0.0
185 Obsoletes: XFree86-Xprt < 1:7.0.0
187 %description -n xorg-xserver-Xprt
188 Xprt is the Xprint print server for X Window System for non display
189 devices such as printers and fax machines.
191 %description -n xorg-xserver-Xprt -l pl.UTF-8
192 Xprt to serwer wydruków Xprint dla X Window System dla urządzeń nie
193 wyświetlających, takich jak drukarki czy faksy.
195 %package -n xorg-xserver-Xvfb
196 Summary: Xvfb - virtual framebuffer X server
197 Summary(pl.UTF-8): Xvfb - serwer X z wirtualnym framebufferem
199 # requires fixed and cursor fonts
200 Requires: xorg-font-font-alias
201 Requires: xorg-font-font-cursor-misc
202 Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
203 Obsoletes: X11-Xvfb < 1:7.0.0
204 Obsoletes: XFree86-Xvfb < 1:7.0.0
206 %description -n xorg-xserver-Xvfb
207 Xvfb (X Virtual Frame Buffer) is an X Window System server that is
208 capable of running on machines with no display hardware and no
209 physical input devices. Xvfb emulates a dumb framebuffer using virtual
210 memory. Xvfb doesn't open any devices, but behaves otherwise as an X
211 display. Xvfb is normally used for testing servers. Using Xvfb, the
212 mfb or cfb code for any depth can be exercised without using real
213 hardware that supports the desired depths. Xvfb has also been used to
214 test X clients against unusual depths and screen configurations, to do
215 batch processing with Xvfb as a background rendering engine, to do
216 load testing, to help with porting an X server to a new platform, and
217 to provide an unobtrusive way of running applications which really
218 don't need an X server but insist on having one.
220 %description -n xorg-xserver-Xvfb -l pl.UTF-8
221 Xvfb (X Virtual Frame Buffer) jest serwerem X, który można uruchamiać
222 na maszynach bez urządzeń wyświetlających ani fizycznych urządzeń
223 wejściowych. Xvfb emuluje prosty framebuffer w pamięci. Zwykle jest
224 używany do testowania serwerów X, może też być używany do testowania
225 klientów X w rzadko używanych konfiguracjach ekranu. Można też użyć
226 Xvfb do uruchomienia aplikacji, które w rzeczywistości nie wymagają
227 serwera X, ale odmawiają uruchomienia bez niego.
230 Summary: Header files for X.org server
231 Summary(pl.UTF-8): Pliki nagłówkowe dla servera X.org
232 Group: X11/Development/Libraries
233 Requires: libdrm-devel >= 2.3.0
234 Requires: pixman-devel >= 0.9.5
235 Requires: xorg-proto-fontsproto-devel
236 Requires: xorg-proto-renderproto-devel >= 0.9.3
237 Requires: xorg-proto-videoproto-devel
238 Requires: xorg-proto-xextproto-devel
239 Requires: xorg-proto-xproto-devel >= 7.0.9
240 Obsoletes: X11-Xserver-devel < 1:7.0.0
241 Obsoletes: XFree86-Xserver-devel < 1:7.0.0
244 Header files for X.org server.
246 %description devel -l pl.UTF-8
247 Pliki nagłówkowe dla serwera X.org.
250 Summary: xorgcfg - graphical configuration tool for X.org server
251 Summary(pl.UTF-8): xorgcfg - graficzne narzędzie konfiguracyjne dla serwera X.org
253 Requires: %{name} = %{version}-%{release}
254 # just for %{_includedir}/bitmaps dir?
255 Requires: xorg-data-xbitmaps
256 # for new app-defaults location
257 Requires: xorg-lib-libXt >= 1.0.0
258 Requires: xorg-lib-libxkbui >= 1.0.2
261 xorgcfg is a tool to configure X.org server, and can be used to either
262 write the initial configuration file or make customizations to the
263 current configuration.
265 %description xorgcfg -l pl.UTF-8
266 xorgcfg to narzędzie do konfiguracji serwera X.org. Można go użyć do
267 utworzenia początkowego pliku konfiguracyjnego lub dokonania
268 modyfikacji istniejącej konfiguracji.
270 %package -n xorg-xserver-libglx
271 Summary: GLX extension library fo X.org server
272 Summary(pl.UTF-8): Biblioteka rozszerzenia GLX dla serwera X.org
274 Requires: %{name} = %{version}-%{release}
275 # Mesa version glapi tables in glx/ dir come from
276 Provides: xorg-xserver-libglx(glapi) = 7.1.0
277 Provides: xorg-xserver-modules-libglx
278 Obsoletes: X11-OpenGL-core < 1:7.0.0
279 Obsoletes: XFree86-OpenGL-core < 1:7.0.0
280 %if %{without multigl}
281 Conflicts: xorg-driver-video-nvidia
284 %description -n xorg-xserver-libglx
285 GLX extension library fo X.org server.
287 %description -n xorg-xserver-libglx -l pl.UTF-8
288 Biblioteka rozszerzenia GLX dla serwera X.org.
291 %setup -q -n xorg-server-%{version}
296 # xserver uses pixman-1 API/ABI so put that explictly here
297 sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
300 API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
301 if [ $API != %{xorg_xserver_server_ansic_abi} ]; then
302 echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
306 API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
307 if [ $API != %{xorg_xserver_server_extension_abi} ]; then
308 echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
312 API=$(awk '/#define ABI_FONT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
313 if [ $API != %{xorg_xserver_server_font_abi} ]; then
314 echo "Set %%define xorg_xserver_server_font_abi to $API and rerun."
317 API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
318 if [ $API != %{xorg_xserver_server_videodrv_abi} ]; then
319 echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
322 API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
323 if [ $API != %{xorg_xserver_server_xinput_abi} ]; then
324 echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
334 --with-os-name="PLD/Linux" \
335 --with-os-vendor="PLD/Team" \
336 --disable-builtin-fonts \
337 %{!?with_hal:--disable-config-hal} \
343 --enable-install-libxf86config \
344 %{?with_record:--enable-record} \
345 --enable-secure-rpc \
348 %{?with_xtrap:--enable-xtrap} \
349 --%{?with_dri2:en}%{!?with_dri2:dis}able-dri2 \
350 --%{?with_xprint:en}%{!?with_xprint:dis}able-xprint \
351 --with-dri-driver-path=%{_libdir}/xorg/modules/dri \
352 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
353 --with-xkb-output=/var/lib/xkb
358 rm -rf $RPM_BUILD_ROOT
361 DESTDIR=$RPM_BUILD_ROOT
363 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
364 install -d $RPM_BUILD_ROOT/etc/security/console.apps
365 install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
366 :> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
367 :> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
369 rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a}
372 cd $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions
373 mv -f libglx.so libglx.so.%{version}
374 ln -sf libglx.so.%{version} libglx.so
378 rm -rf $RPM_BUILD_ROOT
381 %post -n xorg-xserver-libglx
382 if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then
383 ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so
387 %triggerpostun -- xorg-xserver-server < 1.5.0
388 if [ -f /etc/X11/xorg.conf ]; then
389 sed -i -e 's/^\s*RgbPath.*$/#& # obsolete option/' /etc/X11/xorg.conf
390 sed -i -e 's/^\s*Load\s*"type1".*$/#& # obsolete module/' /etc/X11/xorg.conf
391 %if %{without record}
392 sed -i -e 's/^\s*Load\s*"record".*$/#& # module disabled in this build/' /etc/X11/xorg.conf
395 sed -i -e 's/^\s*Load\s*"xtrap".*$/#& # deprecated module, disabled/' /etc/X11/xorg.conf
400 %defattr(644,root,root,755)
401 %doc COPYING ChangeLog
402 %attr(755,root,root) %{_bindir}/X
403 %attr(755,root,root) %{_bindir}/Xorg
404 %attr(4755,root,root) %{_bindir}/Xwrapper
405 %attr(755,root,root) %{_bindir}/cvt
406 %attr(755,root,root) %{_bindir}/gtf
407 %attr(755,root,root) %{_bindir}/in[bwl]
408 %attr(755,root,root) %{_bindir}/ioport
409 %attr(755,root,root) %{_bindir}/out[bwl]
410 %attr(755,root,root) %{_bindir}/xorgconfig
412 %{_libdir}/X11/Options
414 %{_libdir}/xorg/protocol.txt
415 %dir %{_libdir}/xorg/modules
416 %dir %{_libdir}/xorg/modules/dri
417 %dir %{_libdir}/xorg/modules/drivers
418 %dir %{_libdir}/xorg/modules/extensions
419 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdbe.so
420 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri.so
421 %{?with_dri2:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri2.so}
422 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libextmod.so
423 %{?with_record:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/librecord.so}
424 %{?with_xtrap:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libxtrap.so}
425 %dir %{_libdir}/xorg/modules/fonts
426 %attr(755,root,root) %{_libdir}/xorg/modules/fonts/lib*.so
427 %dir %{_libdir}/xorg/modules/input
428 %dir %{_libdir}/xorg/modules/linux
429 %attr(755,root,root) %{_libdir}/xorg/modules/linux/libfbdevhw.so
430 %dir %{_libdir}/xorg/modules/multimedia
431 %attr(755,root,root) %{_libdir}/xorg/modules/multimedia/*.so
432 %attr(755,root,root) %{_libdir}/xorg/modules/lib*.so
434 /var/lib/xkb/README.compiled
435 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xserver
436 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xserver
437 %config(missingok) /etc/security/console.apps/xserver
438 %{_mandir}/man1/Xorg.1x*
439 %{_mandir}/man1/Xserver.1x*
440 %{_mandir}/man1/cvt.1*
441 %{_mandir}/man1/gtf.1x*
442 %{_mandir}/man1/xorgconfig.1*
443 %{_mandir}/man4/exa.4*
444 %{_mandir}/man4/fbdevhw.4*
445 %{_mandir}/man5/xorg.conf.5x*
447 %files -n xorg-xserver-Xdmx
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_bindir}/Xdmx
450 %attr(755,root,root) %{_bindir}/dmxaddinput
451 %attr(755,root,root) %{_bindir}/dmxaddscreen
452 %attr(755,root,root) %{_bindir}/dmxreconfig
453 %attr(755,root,root) %{_bindir}/dmxresize
454 %attr(755,root,root) %{_bindir}/dmxrminput
455 %attr(755,root,root) %{_bindir}/dmxrmscreen
456 %attr(755,root,root) %{_bindir}/dmxtodmx
457 %attr(755,root,root) %{_bindir}/dmxwininfo
458 %attr(755,root,root) %{_bindir}/vdltodmx
459 %attr(755,root,root) %{_bindir}/xdmx
460 %attr(755,root,root) %{_bindir}/xdmxconfig
461 %{_mandir}/man1/Xdmx.1x*
462 %{_mandir}/man1/dmxtodmx.1x*
463 %{_mandir}/man1/vdltodmx.1x*
464 %{_mandir}/man1/xdmxconfig.1x*
466 %files -n xorg-xserver-Xnest
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_bindir}/Xnest
469 %{_mandir}/man1/Xnest.1x*
472 %files -n xorg-xserver-Xprt
473 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_bindir}/Xprt
475 %{_libdir}/X11/xserver
476 %{_mandir}/man1/Xprt.1x*
479 %files -n xorg-xserver-Xvfb
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_bindir}/Xvfb
482 %{_mandir}/man1/Xvfb.1x*
485 %defattr(644,root,root,755)
487 %{_libdir}/libxf86config.a
488 %{_aclocaldir}/xorg-server.m4
489 %{_pkgconfigdir}/xorg-server.pc
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_bindir}/xorgcfg
494 %{_includedir}/X11/bitmaps/*
495 %{_includedir}/X11/pixmaps
496 %{_datadir}/X11/app-defaults/XOrgCfg
497 %{_mandir}/man1/xorgcfg.1x*
499 %files -n xorg-xserver-libglx
500 %defattr(644,root,root,755)
502 %ghost %{_libdir}/xorg/modules/extensions/libglx.so
503 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.%{version}
505 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so