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