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