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