]> git.pld-linux.org Git - packages/xorg-xserver-server.git/blob - xorg-xserver-server.spec
- updated some proto versions
[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.2
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 >= 7.0.9
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 >= 0.9.3
226 Requires:       xorg-proto-videoproto-devel
227 Requires:       xorg-proto-xextproto-devel
228 Requires:       xorg-proto-xproto-devel >= 7.0.9
229 Obsoletes:      X11-Xserver-devel < 1:7.0.0
230 Obsoletes:      XFree86-Xserver-devel < 1:7.0.0
231
232 %description devel
233 Header files for X.org server.
234
235 %description devel -l pl.UTF-8
236 Pliki nagłówkowe dla serwera X.org.
237
238 %package -n xorg-xserver-libglx
239 Summary:        GLX extension library fo X.org server
240 Summary(pl.UTF-8):      Biblioteka rozszerzenia GLX dla serwera X.org
241 Group:          X11/Servers
242 Requires:       %{name} = %{version}-%{release}
243 Provides:       xorg-xserver-libglx(glapi) = %{mesa_version}
244 Provides:       xorg-xserver-modules-libglx
245 Obsoletes:      X11-OpenGL-core < 1:7.0.0
246 Obsoletes:      XFree86-OpenGL-core < 1:7.0.0
247 Conflicts:      xorg-driver-video-nvidia
248
249 %description -n xorg-xserver-libglx
250 GLX extension library fo X.org server.
251
252 %description -n xorg-xserver-libglx -l pl.UTF-8
253 Biblioteka rozszerzenia GLX dla serwera X.org.
254
255 %define xorg_xserver_server_ansic_abi           0.3
256 %define xorg_xserver_server_extension_abi       0.3
257 %define xorg_xserver_server_font_abi            0.5
258 %define xorg_xserver_server_videodrv_abi        2.0
259 %define xorg_xserver_server_xinput_abi          2.0
260
261 %prep
262 %setup -q -a1 -n xorg-server-%{version}
263 %patch0 -p1
264 %patch1 -p0
265 %ifarch %{x8664} i486
266 %patch2 -p1
267 %endif
268 %patch3 -p1
269
270 # xserver uses pixman-1 API/ABI so put that explictly here
271 sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
272
273 %build
274 if API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
275         [ $API != %{xorg_xserver_server_ansic_abi} ]; then
276         echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
277         exit 1
278 fi
279
280 if API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
281         [ $API != %{xorg_xserver_server_extension_abi} ]; then
282         echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
283         exit 1
284 fi
285
286 if API=$(awk '/#define ABI_FONT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
287         [ $API != %{xorg_xserver_server_font_abi} ]; then
288         echo "Set %%define xorg_xserver_server_font_abi to $API and rerun."
289         exit 1
290 fi
291 if API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
292         [ $API != %{xorg_xserver_server_videodrv_abi} ]; then
293         echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
294         exit 1
295 fi
296 if API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h) && \
297         [ $API != %{xorg_xserver_server_xinput_abi} ]; then
298         echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
299         exit 1
300 fi
301
302
303 %{__libtoolize}
304 %{__aclocal}
305 %{__autoconf}
306 %{__autoheader}
307 %{__automake}
308 %configure \
309         --with-os-name="PLD/Linux" \
310         --with-os-vendor="PLD/Team" \
311         --enable-aiglx \
312         --enable-builddocs \
313         --enable-dga \
314         --enable-dmx \
315         --enable-glx-tls \
316         --enable-lbx \
317         --enable-xevie \
318         --enable-xprint \
319         --with-dri-driver-path=%{_libdir}/xorg/modules/dri \
320         --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
321         --with-mesa-source="`pwd`/Mesa-%{mesa_version}" \
322         --with-xkb-output=/var/lib/xkb
323
324 %{__make}
325
326 %install
327 rm -rf $RPM_BUILD_ROOT
328
329 %{__make} install \
330         DESTDIR=$RPM_BUILD_ROOT
331
332 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
333 install -d $RPM_BUILD_ROOT/etc/security/console.apps
334 install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
335 install hw/xfree86/parser/xf86Parser.h $RPM_BUILD_ROOT%{_includedir}/xorg/xf86Parser.h
336 install hw/xfree86/parser/xf86Optrec.h $RPM_BUILD_ROOT%{_includedir}/xorg/xf86Optrec.h
337 install hw/xfree86/parser/libxf86config.a $RPM_BUILD_ROOT%{_libdir}/libxf86config.a
338 :> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
339 :> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
340
341 rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a}
342
343 %clean
344 rm -rf $RPM_BUILD_ROOT
345
346 %files
347 %defattr(644,root,root,755)
348 %doc COPYING
349 %attr(755,root,root) %{_bindir}/X
350 %attr(755,root,root) %{_bindir}/Xorg
351 %attr(4755,root,root) %{_bindir}/Xwrapper
352 %attr(755,root,root) %{_bindir}/cvt
353 %attr(755,root,root) %{_bindir}/gtf
354 %attr(755,root,root) %{_bindir}/in[bwl]
355 %attr(755,root,root) %{_bindir}/ioport
356 %attr(755,root,root) %{_bindir}/out[bwl]
357 %attr(755,root,root) %{_bindir}/pcitweak
358 %attr(755,root,root) %{_bindir}/scanpci
359 %attr(755,root,root) %{_bindir}/xorgconfig
360 %{_libdir}/X11/Cards
361 %{_libdir}/X11/Options
362 %dir %{_libdir}/xorg
363 %dir %{_libdir}/xorg/modules
364 %dir %{_libdir}/xorg/modules/dri
365 %dir %{_libdir}/xorg/modules/drivers
366 %dir %{_libdir}/xorg/modules/extensions
367 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libGLcore.so
368 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdbe.so
369 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri.so
370 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libextmod.so
371 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/librecord.so
372 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libxtrap.so
373 %dir %{_libdir}/xorg/modules/fonts
374 %attr(755,root,root) %{_libdir}/xorg/modules/fonts/lib*.so
375 %dir %{_libdir}/xorg/modules/input
376 %dir %{_libdir}/xorg/modules/linux
377 %attr(755,root,root) %{_libdir}/xorg/modules/linux/libfbdevhw.so
378 %dir %{_libdir}/xorg/modules/multimedia
379 %attr(755,root,root) %{_libdir}/xorg/modules/multimedia/*.so
380 %attr(755,root,root) %{_libdir}/xorg/modules/lib*.so
381 %dir %{_libdir}/xserver
382 %{_libdir}/xserver/SecurityPolicy
383 %dir /var/lib/xkb
384 /var/lib/xkb/README.compiled
385 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xserver
386 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xserver
387 %config(missingok) /etc/security/console.apps/xserver
388 %{_mandir}/man1/Xorg.1x*
389 %{_mandir}/man1/Xserver.1x*
390 %{_mandir}/man1/cvt.1*
391 %{_mandir}/man1/gtf.1x*
392 %{_mandir}/man1/pcitweak.1x*
393 %{_mandir}/man1/scanpci.1x*
394 %{_mandir}/man1/xorgconfig.1*
395 %{_mandir}/man4/exa.4*
396 %{_mandir}/man4/fbdevhw.4*
397 %{_mandir}/man5/xorg.conf.5x*
398 %{_mandir}/man5/SecurityPolicy.5x*
399
400 %files -n xorg-xserver-Xdmx
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/Xdmx
403 %attr(755,root,root) %{_bindir}/dmxaddinput
404 %attr(755,root,root) %{_bindir}/dmxaddscreen
405 %attr(755,root,root) %{_bindir}/dmxreconfig
406 %attr(755,root,root) %{_bindir}/dmxresize
407 %attr(755,root,root) %{_bindir}/dmxrminput
408 %attr(755,root,root) %{_bindir}/dmxrmscreen
409 %attr(755,root,root) %{_bindir}/dmxtodmx
410 %attr(755,root,root) %{_bindir}/dmxwininfo
411 %attr(755,root,root) %{_bindir}/vdltodmx
412 %attr(755,root,root) %{_bindir}/xdmx
413 %attr(755,root,root) %{_bindir}/xdmxconfig
414 %{_mandir}/man1/Xdmx.1x*
415 %{_mandir}/man1/dmxtodmx.1x*
416 %{_mandir}/man1/vdltodmx.1x*
417 %{_mandir}/man1/xdmxconfig.1x*
418
419 %files -n xorg-xserver-Xnest
420 %defattr(644,root,root,755)
421 %attr(755,root,root) %{_bindir}/Xnest
422 %{_mandir}/man1/Xnest.1x*
423
424 %files -n xorg-xserver-Xprt
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_bindir}/Xprt
427 %{_libdir}/X11/xserver
428 %{_mandir}/man1/Xprt.1x*
429
430 %files -n xorg-xserver-Xvfb
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_bindir}/Xvfb
433 %{_mandir}/man1/Xvfb.1x*
434
435 %files devel
436 %defattr(644,root,root,755)
437 %{_includedir}/xorg
438 %{_libdir}/libxf86config.a
439 %{_aclocaldir}/xorg-server.m4
440 %{_pkgconfigdir}/xorg-server.pc
441
442 %files -n xorg-xserver-libglx
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so
This page took 0.056489 seconds and 4 git commands to generate.