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
10 Summary(pl.UTF-8): Serwer X.org
11 Name: xorg-xserver-server
16 Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
17 # Source0-md5: a06d9fe4f9f1d459ae02657f9ce64220
18 %define mesa_version 7.0.1
19 Source1: http://dl.sourceforge.net/mesa3d/MesaLib-%{mesa_version}.tar.bz2
20 # Source1-md5: c056abd763e899114bf745c9eedbf9ad
22 Patch0: %{name}-ncurses.patch
23 Patch1: %{name}-xwrapper.patch
24 # nasty hack for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30052
25 Patch2: %{name}-gcc-x86_64-workaround.patch
26 Patch3: %{name}-link.patch
27 Patch4: %{name}-dbus.patch
28 URL: http://xorg.freedesktop.org/
30 BuildRequires: OpenGL-GLX-devel
31 BuildRequires: autoconf >= 2.57
32 BuildRequires: automake
34 BuildRequires: dbus-devel
35 BuildRequires: hal-devel
36 BuildRequires: libdrm-devel >= 2.3.0
37 BuildRequires: libtool
38 BuildRequires: ncurses-devel
39 BuildRequires: pam-devel
40 BuildRequires: perl-base
41 BuildRequires: pixman-devel >= 0.9.5
42 BuildRequires: pkgconfig >= 1:0.19
43 BuildRequires: xorg-app-mkfontscale
44 BuildRequires: xorg-lib-libX11-devel
45 BuildRequires: xorg-lib-libXau-devel
46 BuildRequires: xorg-lib-libXaw-devel
47 BuildRequires: xorg-lib-libXdmcp-devel
48 BuildRequires: xorg-lib-libXext-devel
49 BuildRequires: xorg-lib-libXfont-devel
50 BuildRequires: xorg-lib-libXi-devel
51 BuildRequires: xorg-lib-libXmu-devel
52 BuildRequires: xorg-lib-libXpm-devel
53 BuildRequires: xorg-lib-libXrender-devel
54 BuildRequires: xorg-lib-libXres-devel
55 BuildRequires: xorg-lib-libXt-devel >= 1.0.0
56 BuildRequires: xorg-lib-libXtst-devel
57 BuildRequires: xorg-lib-libXxf86dga-devel
58 BuildRequires: xorg-lib-libXxf86misc-devel
59 BuildRequires: xorg-lib-libXxf86vm-devel
60 BuildRequires: xorg-lib-libdmx-devel
61 BuildRequires: xorg-lib-libfontenc-devel
62 BuildRequires: xorg-lib-liblbxutil-devel
63 BuildRequires: xorg-lib-libxkbfile-devel
64 BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
65 BuildRequires: xorg-lib-xtrans-devel
66 BuildRequires: xorg-proto-bigreqsproto-devel
67 BuildRequires: xorg-proto-compositeproto-devel >= 0.4
68 BuildRequires: xorg-proto-damageproto-devel >= 1.1
69 BuildRequires: xorg-proto-dmxproto-devel
70 BuildRequires: xorg-proto-evieext-devel
71 BuildRequires: xorg-proto-fixesproto-devel >= 4.0
72 BuildRequires: xorg-proto-fontcacheproto-devel
73 BuildRequires: xorg-proto-fontsproto-devel
74 BuildRequires: xorg-proto-glproto-devel >= 1.4.8
75 BuildRequires: xorg-proto-inputproto-devel >= 1.4.2
76 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
77 BuildRequires: xorg-proto-printproto-devel
78 BuildRequires: xorg-proto-randrproto-devel >= 1.2
79 BuildRequires: xorg-proto-recordproto-devel
80 BuildRequires: xorg-proto-renderproto-devel >= 0.9.3
81 BuildRequires: xorg-proto-resourceproto-devel
82 BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
83 BuildRequires: xorg-proto-trapproto-devel
84 BuildRequires: xorg-proto-videoproto-devel
85 BuildRequires: xorg-proto-xcmiscproto-devel
86 BuildRequires: xorg-proto-xextproto-devel
87 BuildRequires: xorg-proto-xf86bigfontproto-devel
88 BuildRequires: xorg-proto-xf86dgaproto-devel
89 BuildRequires: xorg-proto-xf86driproto-devel
90 BuildRequires: xorg-proto-xf86miscproto-devel
91 BuildRequires: xorg-proto-xf86vidmodeproto-devel
92 BuildRequires: xorg-proto-xineramaproto-devel
93 BuildRequires: xorg-proto-xproto-devel >= 7.0.9
94 BuildRequires: xorg-util-util-macros >= 0.99.2
95 #BR: xcalibrateproto, tslib (for KDRIVE only)
96 #BR: glitz-devel >= 0.4.3 (for XGL and EGL only)
97 Requires: pixman >= 0.9.5
98 Requires: xkeyboard-config
100 Requires: xorg-app-rgb >= 0.99.3
101 Requires: xorg-app-xkbcomp
102 # xserver requires fixed and cursor fonts
103 Requires: xorg-font-font-alias
104 Requires: xorg-font-font-cursor-misc
105 Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
106 Provides: xorg-xserver-server(ansic-abi) = %{xorg_xserver_server_ansic_abi}
107 Provides: xorg-xserver-server(extension-abi) = %{xorg_xserver_server_extension_abi}
108 Provides: xorg-xserver-server(font-abi) = %{xorg_xserver_server_font_abi}
109 Provides: xorg-xserver-server(videodrv-abi) = %{xorg_xserver_server_videodrv_abi}
110 Provides: xorg-xserver-server(xinput-abi) = %{xorg_xserver_server_xinput_abi}
111 Obsoletes: X11-Xserver < 1:7.0.0
112 Obsoletes: X11-driver-i2c < 1:7.0.0
113 Obsoletes: X11-modules < 1:7.0.0
114 Obsoletes: X11-setup < 1:7.0.0
115 Obsoletes: XFree86-Xserver < 1:7.0.0
116 Obsoletes: XFree86-modules < 1:7.0.0
117 Obsoletes: XFree86-setup < 1:7.0.0
119 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
121 # avoid self-dependencies on included modules
122 %define _noautoreq libscanpci.so libxf1bpp.so
125 Xorg server is a generally used X server which uses display hardware.
126 It requires proper driver for your display hardware.
128 %description -l pl.UTF-8
129 Serwer Xorg to podstawowy serwer X wyświetlający obraz na karcie
130 graficznej. Do działania wymaga odpowiedniego sterownika.
132 %package -n xorg-xserver-Xdmx
133 Summary: Xdmx - distributed multi-head X server
134 Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X
137 %description -n xorg-xserver-Xdmx
138 Xdmx - distributed multi-head X server.
140 %description -n xorg-xserver-Xdmx -l pl.UTF-8
141 Xdmx - rozproszony, wielomonitorowy serwer X.
143 %package -n xorg-xserver-Xnest
144 Summary: Xnest - nested X server
145 Summary(pl.UTF-8): Xnest - zagnieżdżony serwer X
147 Obsoletes: X11-Xnest < 1:7.0.0
148 Obsoletes: XFree86-Xnest < 1:7.0.0
149 Obsoletes: Xserver-Xnest
151 %description -n xorg-xserver-Xnest
152 Xnest is an X Window System server which runs in an X window. Xnest is
153 a 'nested' window server, actually a client of the real X server,
154 which manages windows and graphics requests for Xnest, while Xnest
155 manages the windows and graphics requests for its own clients.
157 %description -n xorg-xserver-Xnest -l pl.UTF-8
158 Xnest jest serwerem X uruchamianym w okienku innego serwera X. Xnest
159 zachowuje się jak klient X w stosunku do prawdziwego serwera X, a jak
160 serwer X dla własnych klientów.
162 %description -n xorg-xserver-Xnest -l ru.UTF-8
163 Xnest - это сервер X Window System, который работает в окне X. На
164 самом деле это клиент реального X-сервера, который управляет окнами и
165 графическими запросами для Xnest в то время, как Xnest управляет
166 окнами и графическими запросами для своих собственных клиентов.
168 %description -n xorg-xserver-Xnest -l uk.UTF-8
169 Xnest - це сервер X Window System, який працює у вікні X. Фактично це
170 клієнт реального X-сервера, який керує вікнами та графічними запитами
171 для Xnest в той час, як Xnest керує вікнами та графічними запитами для
172 своїх власних клієнтів.
174 %package -n xorg-xserver-Xprt
175 Summary: Xprt - Xprint server for X
176 Summary(pl.UTF-8): Xprt - serwer Xprint dla X
178 Obsoletes: X11-Xprt < 1:7.0.0
179 Obsoletes: XFree86-Xprt < 1:7.0.0
181 %description -n xorg-xserver-Xprt
182 Xprt is the Xprint print server for X Window System for non display
183 devices such as printers and fax machines.
185 %description -n xorg-xserver-Xprt -l pl.UTF-8
186 Xprt to serwer wydruków Xprint dla X Window System dla urządzeń nie
187 wyświetlających, takich jak drukarki czy faksy.
189 %package -n xorg-xserver-Xvfb
190 Summary: Xvfb - virtual framebuffer X server
191 Summary(pl.UTF-8): Xvfb - serwer X z wirtualnym framebufferem
193 # requires fixed and cursor fonts
194 Requires: xorg-font-font-alias
195 Requires: xorg-font-font-cursor-misc
196 Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
197 Obsoletes: X11-Xvfb < 1:7.0.0
198 Obsoletes: XFree86-Xvfb < 1:7.0.0
200 %description -n xorg-xserver-Xvfb
201 Xvfb (X Virtual Frame Buffer) is an X Window System server that is
202 capable of running on machines with no display hardware and no
203 physical input devices. Xvfb emulates a dumb framebuffer using virtual
204 memory. Xvfb doesn't open any devices, but behaves otherwise as an X
205 display. Xvfb is normally used for testing servers. Using Xvfb, the
206 mfb or cfb code for any depth can be exercised without using real
207 hardware that supports the desired depths. Xvfb has also been used to
208 test X clients against unusual depths and screen configurations, to do
209 batch processing with Xvfb as a background rendering engine, to do
210 load testing, to help with porting an X server to a new platform, and
211 to provide an unobtrusive way of running applications which really
212 don't need an X server but insist on having one.
214 %description -n xorg-xserver-Xvfb -l pl.UTF-8
215 Xvfb (X Virtual Frame Buffer) jest serwerem X, który można uruchamiać
216 na maszynach bez urządzeń wyświetlających ani fizycznych urządzeń
217 wejściowych. Xvfb emuluje prosty framebuffer w pamięci. Zwykle jest
218 używany do testowania serwerów X, może też być używany do testowania
219 klientów X w rzadko używanych konfiguracjach ekranu. Można też użyć
220 Xvfb do uruchomienia aplikacji, które w rzeczywistości nie wymagają
221 serwera X, ale odmawiają uruchomienia bez niego.
224 Summary: Header files for X.org server
225 Summary(pl.UTF-8): Pliki nagłówkowe dla servera X.org
226 Group: X11/Development/Libraries
227 Requires: libdrm-devel >= 2.3.0
228 Requires: pixman-devel >= 0.9.5
229 Requires: xorg-proto-fontsproto-devel
230 Requires: xorg-proto-renderproto-devel >= 0.9.3
231 Requires: xorg-proto-videoproto-devel
232 Requires: xorg-proto-xextproto-devel
233 Requires: xorg-proto-xproto-devel >= 7.0.9
234 Obsoletes: X11-Xserver-devel < 1:7.0.0
235 Obsoletes: XFree86-Xserver-devel < 1:7.0.0
238 Header files for X.org server.
240 %description devel -l pl.UTF-8
241 Pliki nagłówkowe dla serwera X.org.
244 Summary: xorgcfg - graphical configuration tool for X.org server
245 Summary(pl.UTF-8): xorgcfg - graficzne narzędzie konfiguracyjne dla serwera X.org
247 Requires: %{name} = %{version}-%{release}
248 # just for %{_includedir}/bitmaps dir?
249 Requires: xorg-data-xbitmaps
250 # for new app-defaults location
251 Requires: xorg-lib-libXt >= 1.0.0
252 Requires: xorg-lib-libxkbui >= 1.0.2
255 xorgcfg is a tool to configure X.org server, and can be used to either
256 write the initial configuration file or make customizations to the
257 current configuration.
259 %description xorgcfg -l pl.UTF-8
260 xorgcfg to narzędzie do konfiguracji serwera X.org. Można go użyć do
261 utworzenia początkowego pliku konfiguracyjnego lub dokonania
262 modyfikacji istniejącej konfiguracji.
264 %package -n xorg-xserver-libglx
265 Summary: GLX extension library fo X.org server
266 Summary(pl.UTF-8): Biblioteka rozszerzenia GLX dla serwera X.org
268 Requires: %{name} = %{version}-%{release}
269 Provides: xorg-xserver-libglx(glapi) = %{mesa_version}
270 Provides: xorg-xserver-modules-libglx
271 Obsoletes: X11-OpenGL-core < 1:7.0.0
272 Obsoletes: XFree86-OpenGL-core < 1:7.0.0
273 Conflicts: xorg-driver-video-nvidia
275 %description -n xorg-xserver-libglx
276 GLX extension library fo X.org server.
278 %description -n xorg-xserver-libglx -l pl.UTF-8
279 Biblioteka rozszerzenia GLX dla serwera X.org.
282 %setup -q -a1 -n xorg-server-%{version}
285 %ifarch %{x8664} i486
291 # xserver uses pixman-1 API/ABI so put that explictly here
292 sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
295 if API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
296 [ $API != %{xorg_xserver_server_ansic_abi} ]; then
297 echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
301 if API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
302 [ $API != %{xorg_xserver_server_extension_abi} ]; then
303 echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
307 if API=$(awk '/#define ABI_FONT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
308 [ $API != %{xorg_xserver_server_font_abi} ]; then
309 echo "Set %%define xorg_xserver_server_font_abi to $API and rerun."
312 if API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
313 [ $API != %{xorg_xserver_server_videodrv_abi} ]; then
314 echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
317 if API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
318 [ $API != %{xorg_xserver_server_xinput_abi} ]; then
319 echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
329 --with-os-name="PLD/Linux" \
330 --with-os-vendor="PLD/Team" \
340 --with-dri-driver-path=%{_libdir}/xorg/modules/dri \
341 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
342 --with-mesa-source="`pwd`/Mesa-%{mesa_version}" \
343 --with-xkb-output=/var/lib/xkb
348 rm -rf $RPM_BUILD_ROOT
351 DESTDIR=$RPM_BUILD_ROOT
353 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
354 install -d $RPM_BUILD_ROOT/etc/security/console.apps
355 install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
356 install hw/xfree86/parser/xf86Parser.h $RPM_BUILD_ROOT%{_includedir}/xorg/xf86Parser.h
357 install hw/xfree86/parser/xf86Optrec.h $RPM_BUILD_ROOT%{_includedir}/xorg/xf86Optrec.h
358 install hw/xfree86/parser/libxf86config.a $RPM_BUILD_ROOT%{_libdir}/libxf86config.a
359 :> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
360 :> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
362 rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a}
365 rm -rf $RPM_BUILD_ROOT
368 %defattr(644,root,root,755)
369 %doc COPYING ChangeLog
370 %attr(755,root,root) %{_bindir}/X
371 %attr(755,root,root) %{_bindir}/Xorg
372 %attr(4755,root,root) %{_bindir}/Xwrapper
373 %attr(755,root,root) %{_bindir}/cvt
374 %attr(755,root,root) %{_bindir}/gtf
375 %attr(755,root,root) %{_bindir}/in[bwl]
376 %attr(755,root,root) %{_bindir}/ioport
377 %attr(755,root,root) %{_bindir}/out[bwl]
378 %attr(755,root,root) %{_bindir}/pcitweak
379 %attr(755,root,root) %{_bindir}/scanpci
380 %attr(755,root,root) %{_bindir}/xorgconfig
382 %{_libdir}/X11/Options
384 %dir %{_libdir}/xorg/modules
385 %dir %{_libdir}/xorg/modules/dri
386 %dir %{_libdir}/xorg/modules/drivers
387 %dir %{_libdir}/xorg/modules/extensions
388 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libGLcore.so
389 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdbe.so
390 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri.so
391 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libextmod.so
392 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/librecord.so
393 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libxtrap.so
394 %dir %{_libdir}/xorg/modules/fonts
395 %attr(755,root,root) %{_libdir}/xorg/modules/fonts/lib*.so
396 %dir %{_libdir}/xorg/modules/input
397 %dir %{_libdir}/xorg/modules/linux
398 %attr(755,root,root) %{_libdir}/xorg/modules/linux/libfbdevhw.so
399 %dir %{_libdir}/xorg/modules/multimedia
400 %attr(755,root,root) %{_libdir}/xorg/modules/multimedia/*.so
401 %attr(755,root,root) %{_libdir}/xorg/modules/lib*.so
402 %dir %{_libdir}/xserver
403 %{_libdir}/xserver/SecurityPolicy
405 /var/lib/xkb/README.compiled
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
409 %{_mandir}/man1/Xorg.1x*
410 %{_mandir}/man1/Xserver.1x*
411 %{_mandir}/man1/cvt.1*
412 %{_mandir}/man1/gtf.1x*
413 %{_mandir}/man1/pcitweak.1x*
414 %{_mandir}/man1/scanpci.1x*
415 %{_mandir}/man1/xorgconfig.1*
416 %{_mandir}/man4/exa.4*
417 %{_mandir}/man4/fbdevhw.4*
418 %{_mandir}/man5/xorg.conf.5x*
419 %{_mandir}/man5/SecurityPolicy.5x*
421 %files -n xorg-xserver-Xdmx
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_bindir}/Xdmx
424 %attr(755,root,root) %{_bindir}/dmxaddinput
425 %attr(755,root,root) %{_bindir}/dmxaddscreen
426 %attr(755,root,root) %{_bindir}/dmxreconfig
427 %attr(755,root,root) %{_bindir}/dmxresize
428 %attr(755,root,root) %{_bindir}/dmxrminput
429 %attr(755,root,root) %{_bindir}/dmxrmscreen
430 %attr(755,root,root) %{_bindir}/dmxtodmx
431 %attr(755,root,root) %{_bindir}/dmxwininfo
432 %attr(755,root,root) %{_bindir}/vdltodmx
433 %attr(755,root,root) %{_bindir}/xdmx
434 %attr(755,root,root) %{_bindir}/xdmxconfig
435 %{_mandir}/man1/Xdmx.1x*
436 %{_mandir}/man1/dmxtodmx.1x*
437 %{_mandir}/man1/vdltodmx.1x*
438 %{_mandir}/man1/xdmxconfig.1x*
440 %files -n xorg-xserver-Xnest
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_bindir}/Xnest
443 %{_mandir}/man1/Xnest.1x*
445 %files -n xorg-xserver-Xprt
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_bindir}/Xprt
448 %{_libdir}/X11/xserver
449 %{_mandir}/man1/Xprt.1x*
451 %files -n xorg-xserver-Xvfb
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_bindir}/Xvfb
454 %{_mandir}/man1/Xvfb.1x*
457 %defattr(644,root,root,755)
459 %{_libdir}/libxf86config.a
460 %{_aclocaldir}/xorg-server.m4
461 %{_pkgconfigdir}/xorg-server.pc
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_bindir}/xorgcfg
466 %{_includedir}/X11/bitmaps/*
467 %{_includedir}/X11/pixmaps
468 %{_datadir}/X11/app-defaults/XOrgCfg
469 %{_mandir}/man1/xorgcfg.1x*
471 %files -n xorg-xserver-libglx
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so