]> git.pld-linux.org Git - packages/xorg-xserver-server.git/blame_incremental - xorg-xserver-server.spec
- up to 1.9.0.902
[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_with dbus # D-BUS support
6%bcond_with hal # HAL support
7%bcond_without udev # UDEV support
8%bcond_without dmx # DMX support
9%bcond_without record # RECORD extension
10#
11# ABI versions, see hw/xfree86/common/xf86Module.h
12%define xorg_xserver_server_ansic_abi 0.4
13%define xorg_xserver_server_extension_abi 4.0
14%define xorg_xserver_server_font_abi 0.6
15%define xorg_xserver_server_videodrv_abi 8.0
16%define xorg_xserver_server_xinput_abi 11.0
17
18%define rel 3
19Summary: X.org server
20Summary(pl.UTF-8): Serwer X.org
21Name: xorg-xserver-server
22Version: 1.9.0.902
23Release: %{rel}%{?with_multigl:.mgl}
24License: MIT
25Group: X11/Servers
26Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
27# Source0-md5: 9bb3d015995150b49836dc0b89442f22
28Source1: 10-quirks.conf
29Source2: xserver.pamd
30Source10: %{name}-Xvfb.init
31Source11: %{name}-Xvfb.sysconfig
32Patch0: %{name}-xwrapper.patch
33Patch1: %{name}-pic-libxf86config.patch
34Patch2: %{name}-fb-size.patch
35Patch3: %{name}-less-acpi-brokenness.patch
36Patch4: %{name}-builtin-SHA1.patch
37URL: http://xorg.freedesktop.org/
38BuildRequires: Mesa-libGL-devel >= 7.8.1
39# for glx headers
40BuildRequires: OpenGL-GLX-devel
41BuildRequires: autoconf >= 2.57
42BuildRequires: automake
43BuildRequires: cpp
44#BuildRequires: doxygen >= 1.6.1
45%if %{with hal} || %{with dbus}
46BuildRequires: dbus-devel >= 1.0
47%endif
48# Note: fop is invoked by xmlto. It is not a dependency of xmlto, because it is
49# quite rare usecase, and it is very "havy" dependency (requires Java, %post
50# scripts execytes long time). So we need to add it here.
51BuildRequires: fop
52%{?with_hal:BuildRequires: hal-devel}
53BuildRequires: libdrm-devel >= 2.4.5
54BuildRequires: libtool
55BuildRequires: ncurses-devel
56BuildRequires: pam-devel
57BuildRequires: perl-base
58BuildRequires: pixman-devel >= 0.16.0
59BuildRequires: pkgconfig >= 1:0.19
60BuildRequires: udev-devel >= 1:143
61BuildRequires: xmlto >= 0.0.20
62BuildRequires: xorg-app-mkfontscale
63BuildRequires: xorg-font-font-util >= 1.1
64BuildRequires: xorg-lib-libX11-devel
65BuildRequires: xorg-lib-libXau-devel
66BuildRequires: xorg-lib-libXaw-devel
67BuildRequires: xorg-lib-libXdamage-devel
68BuildRequires: xorg-lib-libXdmcp-devel
69BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
70BuildRequires: xorg-lib-libXfont-devel >= 1.4.2
71BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1
72BuildRequires: xorg-lib-libXmu-devel
73BuildRequires: xorg-lib-libXpm-devel
74BuildRequires: xorg-lib-libXrender-devel
75BuildRequires: xorg-lib-libXres-devel
76BuildRequires: xorg-lib-libXt-devel >= 1.0.0
77BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2
78BuildRequires: xorg-lib-libXv-devel
79BuildRequires: xorg-lib-libXxf86dga-devel
80BuildRequires: xorg-lib-libXxf86misc-devel
81BuildRequires: xorg-lib-libXxf86vm-devel
82%{?with_dmx:BuildRequires: xorg-lib-libdmx-devel >= 1.0.99.1}
83BuildRequires: xorg-lib-libfontenc-devel
84BuildRequires: xorg-lib-libpciaccess-devel >= 0.8.0
85BuildRequires: xorg-lib-libxkbfile-devel
86BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
87BuildRequires: xorg-lib-xtrans-devel >= 1.2.2
88BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
89BuildRequires: xorg-proto-compositeproto-devel >= 0.4
90BuildRequires: xorg-proto-damageproto-devel >= 1.1
91%{?with_dmx:BuildRequires: xorg-proto-dmxproto-devel >= 2.2.99.1}
92%{?with_dri2:BuildRequires: xorg-proto-dri2proto-devel >= 2.3}
93BuildRequires: xorg-proto-fixesproto-devel >= 4.1
94BuildRequires: xorg-proto-fontcacheproto-devel
95BuildRequires: xorg-proto-fontsproto-devel
96BuildRequires: xorg-proto-glproto-devel >= 1.4.10
97BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902
98BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
99BuildRequires: xorg-proto-printproto-devel
100BuildRequires: xorg-proto-randrproto-devel >= 1.2.99.3
101%{?with_record:BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1}
102BuildRequires: xorg-proto-renderproto-devel >= 0.11
103BuildRequires: xorg-proto-resourceproto-devel
104BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
105BuildRequires: xorg-proto-videoproto-devel
106BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
107BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3
108BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0
109BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1
110BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0
111BuildRequires: xorg-proto-xf86miscproto-devel
112BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
113BuildRequires: xorg-proto-xineramaproto-devel
114BuildRequires: xorg-proto-xproto-devel >= 7.0.17
115BuildRequires: xorg-sgml-doctools >= 1.5
116BuildRequires: xorg-util-util-macros >= 1.10
117#BR: glitz-devel >= 0.4.3 (for XGL and EGL only)
118#BR: xcalibrateproto, tslib (for KDRIVE only)
119Requires(triggerpostun): sed >= 4.0
120Requires: pixman >= 0.16.0
121Requires: xkeyboard-config
122# for rgb.txt
123Requires: xorg-app-rgb >= 0.99.3
124Requires: xorg-app-xkbcomp
125%{?with_hal:Suggests: dbus >= 1.0}
126%{?with_hal:Suggests: hal}
127Suggests: udev-acl
128%{?with_udev:Suggests: udev-core >= 1:143}
129Suggests: xorg-driver-input-evdev
130# xserver requires fixed and cursor fonts
131Requires: xorg-font-font-alias
132Requires: xorg-font-font-cursor-misc
133Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
134Suggests: xkeyboard-config
135Provides: xorg-xserver-server(ansic-abi) = %{xorg_xserver_server_ansic_abi}
136Provides: xorg-xserver-server(extension-abi) = %{xorg_xserver_server_extension_abi}
137Provides: xorg-xserver-server(font-abi) = %{xorg_xserver_server_font_abi}
138Provides: xorg-xserver-server(videodrv-abi) = %{xorg_xserver_server_videodrv_abi}
139Provides: xorg-xserver-server(xinput-abi) = %{xorg_xserver_server_xinput_abi}
140Obsoletes: X11-Xserver < 1:7.0.0
141Obsoletes: X11-driver-i2c < 1:7.0.0
142Obsoletes: X11-modules < 1:7.0.0
143Obsoletes: X11-setup < 1:7.0.0
144Obsoletes: XFree86-Xserver < 1:7.0.0
145Obsoletes: XFree86-modules < 1:7.0.0
146Obsoletes: XFree86-setup < 1:7.0.0
147Obsoletes: Xserver
148Obsoletes: xorg-xserver-server-xorgcfg
149BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
150
151# avoid self-dependencies on included modules
152%define _noautoreq libscanpci.so libxf1bpp.so
153
154%description
155Xorg server is a generally used X server which uses display hardware.
156It requires proper driver for your display hardware.
157
158%description -l pl.UTF-8
159Serwer Xorg to podstawowy serwer X wyświetlający obraz na karcie
160graficznej. Do działania wymaga odpowiedniego sterownika.
161
162%package -n xorg-xserver-Xdmx
163Summary: Xdmx - distributed multi-head X server
164Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X
165Group: X11/Servers
166
167%description -n xorg-xserver-Xdmx
168Xdmx - distributed multi-head X server.
169
170%description -n xorg-xserver-Xdmx -l pl.UTF-8
171Xdmx - rozproszony, wielomonitorowy serwer X.
172
173%package -n xorg-xserver-Xnest
174Summary: Xnest - nested X server
175Summary(pl.UTF-8): Xnest - zagnieżdżony serwer X
176Group: X11/Servers
177Obsoletes: X11-Xnest < 1:7.0.0
178Obsoletes: XFree86-Xnest < 1:7.0.0
179Obsoletes: Xserver-Xnest
180
181%description -n xorg-xserver-Xnest
182Xnest is an X Window System server which runs in an X window. Xnest is
183a 'nested' window server, actually a client of the real X server,
184which manages windows and graphics requests for Xnest, while Xnest
185manages the windows and graphics requests for its own clients.
186
187%description -n xorg-xserver-Xnest -l pl.UTF-8
188Xnest jest serwerem X uruchamianym w okienku innego serwera X. Xnest
189zachowuje się jak klient X w stosunku do prawdziwego serwera X, a jak
190serwer X dla własnych klientów.
191
192%description -n xorg-xserver-Xnest -l ru.UTF-8
193Xnest - это сервер X Window System, который работает в окне X. На
194самом деле это клиент реального X-сервера, который управляет окнами и
195графическими запросами для Xnest в то время, как Xnest управляет
196окнами и графическими запросами для своих собственных клиентов.
197
198%description -n xorg-xserver-Xnest -l uk.UTF-8
199Xnest - це сервер X Window System, який працює у вікні X. Фактично це
200клієнт реального X-сервера, який керує вікнами та графічними запитами
201для Xnest в той час, як Xnest керує вікнами та графічними запитами для
202своїх власних клієнтів.
203
204%package -n xorg-xserver-Xephyr
205Summary: Xephyr - nested X server
206Summary(pl.UTF-8): Xephyr - zagnieżdżony serwer X
207Group: X11/Servers
208Requires: pixman >= 0.15.0
209
210%description -n xorg-xserver-Xephyr
211Xephyr is a a kdrive server that outputs to a window on a pre-existing
212'host' X display. Think Xnest but with support for modern extensions
213like composite, damage and randr.
214
215Unlike Xnest which is an X proxy, i.e. limited to the capabilities of
216the host X server, Xephyr is a real X server which uses the host X
217server window as "framebuffer" via fast SHM XImages.
218
219It also has support for 'visually' debugging what the server is
220painting.
221
222%description -n xorg-xserver-Xephyr -l pl.UTF-8
223Xephyr jest serwerem opartym na kdrive wyświetlającym w oknie na
224istniejącym ekranie X. Można o nim myśleć jako o Xnest ze wsparciem do
225wspólczesnych rozszerzeń jak composite, damage i randr.
226
227%package -n xorg-xserver-Xfbdev
228Summary: Xfbdev - Linux framebuffer device X server
229Summary(pl.UTF-8): Xfbdev - serwer X dla framebuffera
230Group: X11/Servers
231
232%description -n xorg-xserver-Xfbdev
233Xfbdev is a Linux framebuffer device X server based on the kdrive X
234server.
235
236%description -n xorg-xserver-Xfbdev -l pl.UTF-8
237Xfbdev jest serwerem X dla framebuffera opartym na kdrive.
238
239%package -n xorg-xserver-Xvfb
240Summary: Xvfb - virtual framebuffer X server
241Summary(pl.UTF-8): Xvfb - serwer X z wirtualnym framebufferem
242Group: X11/Servers
243# requires fixed and cursor fonts
244Requires: xorg-font-font-alias
245Requires: xorg-font-font-cursor-misc
246Requires: xorg-font-font-misc-misc-base >= 1.0.0-0.3
247Obsoletes: X11-Xvfb < 1:7.0.0
248Obsoletes: XFree86-Xvfb < 1:7.0.0
249
250%description -n xorg-xserver-Xvfb
251Xvfb (X Virtual Frame Buffer) is an X Window System server that is
252capable of running on machines with no display hardware and no
253physical input devices. Xvfb emulates a dumb framebuffer using virtual
254memory. Xvfb doesn't open any devices, but behaves otherwise as an X
255display. Xvfb is normally used for testing servers. Using Xvfb, the
256mfb or cfb code for any depth can be exercised without using real
257hardware that supports the desired depths. Xvfb has also been used to
258test X clients against unusual depths and screen configurations, to do
259batch processing with Xvfb as a background rendering engine, to do
260load testing, to help with porting an X server to a new platform, and
261to provide an unobtrusive way of running applications which really
262don't need an X server but insist on having one.
263
264%description -n xorg-xserver-Xvfb -l pl.UTF-8
265Xvfb (X Virtual Frame Buffer) jest serwerem X, który można uruchamiać
266na maszynach bez urządzeń wyświetlających ani fizycznych urządzeń
267wejściowych. Xvfb emuluje prosty framebuffer w pamięci. Zwykle jest
268używany do testowania serwerów X, może też być używany do testowania
269klientów X w rzadko używanych konfiguracjach ekranu. Można też użyć
270Xvfb do uruchomienia aplikacji, które w rzeczywistości nie wymagają
271serwera X, ale odmawiają uruchomienia bez niego.
272
273%package -n xorg-xserver-Xvfb-init
274Summary: Init scripts for Xvfb
275Summary(pl.UTF-8): Skrypty startowe dla Xvfb
276Group: X11/Servers
277Requires: xorg-xserver-Xvfb
278
279%description -n xorg-xserver-Xvfb-init
280This package contains init scripts for Xvfb and registers Xvfb as
281system service.
282
283%description -n xorg-xserver-Xvfb-init -l pl.UTF-8
284Ten pakiet zawiera skrypty startowe dla Xvfb oraz rejestruje Xvfb jako
285usługę systemową.
286
287%package devel
288Summary: Header files for X.org server
289Summary(pl.UTF-8): Pliki nagłówkowe dla serwera X.org
290Group: X11/Development/Libraries
291Requires: libdrm-devel >= 2.4.5
292Requires: pixman-devel >= 0.16.0
293Requires: xorg-lib-libpciaccess-devel >= 0.8.0
294Requires: xorg-lib-libxkbfile-devel
295Requires: xorg-proto-dri2proto-devel >= 2.3
296Requires: xorg-proto-fontsproto-devel
297Requires: xorg-proto-inputproto-devel >= 1.9.99.902
298Requires: xorg-proto-kbproto-devel >= 1.0.3
299Requires: xorg-proto-randrproto-devel >= 1.2.99.3
300Requires: xorg-proto-renderproto-devel >= 0.11
301Requires: xorg-proto-videoproto-devel
302Requires: xorg-proto-xextproto-devel >= 1:7.0.99.3
303Requires: xorg-proto-xproto-devel >= 7.0.17
304Obsoletes: X11-Xserver-devel < 1:7.0.0
305Obsoletes: XFree86-Xserver-devel < 1:7.0.0
306
307%description devel
308Header files for X.org server.
309
310%description devel -l pl.UTF-8
311Pliki nagłówkowe dla serwera X.org.
312
313%package source
314Summary: X.org server source code
315Summary(pl.UTF-8): Pliki źródłowe dla serwera X.org
316Group: X11/Development/Libraries
317
318%description source
319X.org server source code.
320
321%description source -l pl.UTF-8
322Pliki źródłowe dla serwera X.org.
323
324%package -n xorg-xserver-libdri
325Summary: DRI extension library for X.org server
326Summary(pl.UTF-8): Biblioteka rozszerzenia DRI dla serwera X.org
327Group: X11/Servers
328Requires: %{name} = %{version}-%{release}
329Provides: xorg-xserver-module(dri)
330%if %{without multigl}
331Conflicts: xorg-driver-video-fglrx
332Conflicts: xorg-driver-video-nvidia
333%endif
334
335%description -n xorg-xserver-libdri
336DRI extension library for X.org server.
337
338%description -n xorg-xserver-libdri -l pl.UTF-8
339Biblioteka rozszerzenia DRI dla serwera X.org.
340
341%package -n xorg-xserver-libglx
342Summary: GLX extension library for X.org server
343Summary(pl.UTF-8): Biblioteka rozszerzenia GLX dla serwera X.org
344Group: X11/Servers
345Requires: %{name} = %{version}-%{release}
346Requires: xorg-xserver-libdri = %{version}-%{release}
347# Mesa version glapi tables in glx/ dir come from
348Provides: xorg-xserver-libglx(glapi) = 7.1.0
349Provides: xorg-xserver-module(glx)
350Obsoletes: X11-OpenGL-core < 1:7.0.0
351Obsoletes: XFree86-OpenGL-core < 1:7.0.0
352%if %{without multigl}
353Conflicts: xorg-driver-video-fglrx
354Conflicts: xorg-driver-video-nvidia
355%endif
356
357%description -n xorg-xserver-libglx
358GLX extension library for X.org server.
359
360%description -n xorg-xserver-libglx -l pl.UTF-8
361Biblioteka rozszerzenia GLX dla serwera X.org.
362
363%prep
364%setup -q -n xorg-server-%{version}
365%patch0 -p0
366%patch1 -p1
367%patch2 -p1
368%patch3 -p1
369%patch4 -p1
370
371# xserver uses pixman-1 API/ABI so put that explictly here
372sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
373
374%build
375API=$(awk '/#define ABI_ANSIC_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
376if [ $API != %{xorg_xserver_server_ansic_abi} ]; then
377 echo "Set %%define xorg_xserver_server_ansic_abi to $API and rerun."
378 exit 1
379fi
380
381API=$(awk '/#define ABI_EXTENSION_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
382if [ $API != %{xorg_xserver_server_extension_abi} ]; then
383 echo "Set %%define xorg_xserver_server_extension_abi to $API and rerun."
384 exit 1
385fi
386
387API=$(awk '/#define ABI_FONT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
388if [ $API != %{xorg_xserver_server_font_abi} ]; then
389 echo "Set %%define xorg_xserver_server_font_abi to $API and rerun."
390 exit 1
391fi
392API=$(awk '/#define ABI_VIDEODRV_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
393if [ $API != %{xorg_xserver_server_videodrv_abi} ]; then
394 echo "Set %%define xorg_xserver_server_videodrv_abi to $API and rerun."
395 exit 1
396fi
397API=$(awk '/#define ABI_XINPUT_VERSION/ { split($0,A,/[(,)]/); printf("%d.%d",A[2], A[3]); }' hw/xfree86/common/xf86Module.h)
398if [ $API != %{xorg_xserver_server_xinput_abi} ]; then
399 echo "Set %%define xorg_xserver_server_xinput_abi to $API and rerun."
400 exit 1
401fi
402
403%{__libtoolize}
404%{__aclocal} -I m4
405%{__autoconf}
406%{__autoheader}
407%{__automake}
408%configure \
409 --with-os-name="PLD/Linux" \
410 --with-os-vendor="PLD/Team" \
411 --%{?with_dbus:en}%{!?with_dbus:dis}able-config-dbus \
412 %{!?with_hal:--disable-config-hal} \
413 --%{?with_udev:en}%{!?with_udev:dis}able-config-udev \
414 --enable-aiglx \
415 --enable-builddocs \
416 --enable-dga \
417 %{?with_dmx:--enable-dmx} \
418 --enable-glx-tls \
419 --enable-install-libxf86config \
420 %{?with_record:--enable-record} \
421 --enable-kdrive \
422 --enable-xephyr \
423 --enable-xfbdev \
424 --enable-glx-tls \
425 --disable-xsdl \
426 --disable-xfake \
427 --enable-secure-rpc \
428 --%{?with_dri2:en}%{!?with_dri2:dis}able-dri2 \
429 --with-dri-driver-path=%{_libdir}/xorg/modules/dri \
430 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
431 --with-xkb-output=/var/lib/xkb
432
433%{__make}
434
435%install
436rm -rf $RPM_BUILD_ROOT
437
438%{__make} install \
439 DESTDIR=$RPM_BUILD_ROOT
440
441install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xserver
442install -d $RPM_BUILD_ROOT/etc/{security/console.apps,X11/xorg.conf.d}
443install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{dri,drivers,input}
444install -d $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
445
446:> $RPM_BUILD_ROOT/etc/security/console.apps/xserver
447:> $RPM_BUILD_ROOT/etc/security/blacklist.xserver
448
449rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a}
450
451install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/10-quirks.conf
452
453install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
454install -d $RPM_BUILD_ROOT/etc/sysconfig
455install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/Xvfb
456install %{SOURCE11} $RPM_BUILD_ROOT/etc/sysconfig/Xvfb
457
458%if %{with multigl}
459cd $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions
460mv -f libglx.so libglx.so.%{version}
461ln -sf libglx.so.%{version} libglx.so
462%endif
463
464install -d $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}
465cp -a * $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}
466cd $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}
467%{__make} distclean
468find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
469
470%clean
471rm -rf $RPM_BUILD_ROOT
472
473%if %{with multigl}
474%post -n xorg-xserver-libglx
475if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then
476 ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so
477fi
478%endif
479
480%triggerpostun -- xorg-xserver-server < 1.5.0
481if [ -f /etc/X11/xorg.conf ]; then
482 sed -i -e 's/^\s*RgbPath.*$/#& # obsolete option/' /etc/X11/xorg.conf
483 sed -i -e 's/^\s*Load\s*"type1".*$/#& # obsolete module/' /etc/X11/xorg.conf
484%if %{without record}
485 sed -i -e 's/^\s*Load\s*"record".*$/#& # module disabled in this build/' /etc/X11/xorg.conf
486%endif
487 sed -i -e 's/^\s*Load\s*"xtrap".*$/#& # obsolete module/' /etc/X11/xorg.conf
488fi
489
490%post -n xorg-xserver-Xvfb-init
491/sbin/chkconfig --add Xvfb
492%service Xvfb restart
493
494%preun -n xorg-xserver-Xvfb-init
495if [ "$1" = "0" ]; then
496 %service -q Xvfb stop
497 /sbin/chkconfig --del Xvfb
498fi
499
500%files
501%defattr(644,root,root,755)
502%doc COPYING ChangeLog README
503%attr(755,root,root) %{_bindir}/X
504%attr(755,root,root) %{_bindir}/Xorg
505%attr(4755,root,root) %{_bindir}/Xwrapper
506%attr(755,root,root) %{_bindir}/cvt
507%attr(755,root,root) %{_bindir}/gtf
508%dir %{_libdir}/xorg
509%{_libdir}/xorg/protocol.txt
510%dir %{_libdir}/xorg/modules
511%dir %{_libdir}/xorg/modules/dri
512%dir %{_libdir}/xorg/modules/drivers
513%dir %{_libdir}/xorg/modules/extensions
514%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdbe.so
515%{?with_dri2:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri2.so}
516%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libextmod.so
517%{?with_record:%attr(755,root,root) %{_libdir}/xorg/modules/extensions/librecord.so}
518%dir %{_libdir}/xorg/modules/input
519%dir %{_libdir}/xorg/modules/multimedia
520%attr(755,root,root) %{_libdir}/xorg/modules/multimedia/*.so
521%attr(755,root,root) %{_libdir}/xorg/modules/lib*.so
522%dir /var/lib/xkb
523/var/lib/xkb/README.compiled
524%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xserver
525%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xserver
526%config(missingok) /etc/security/console.apps/xserver
527%{?with_dbus:/etc/dbus-1/system.d/xorg-server.conf}
528%dir /etc/X11/xorg.conf.d
529%dir %{_datadir}/X11/xorg.conf.d
530# overwrite these settings with local configs in /etc/X11/xorg.conf.d
531%verify(not md5 mtime size) %{_datadir}/X11/xorg.conf.d/*.conf
532%{_mandir}/man1/Xorg.1x*
533%{_mandir}/man1/Xserver.1x*
534%{_mandir}/man1/cvt.1*
535%{_mandir}/man1/gtf.1x*
536%{_mandir}/man4/exa.4*
537%{_mandir}/man4/fbdevhw.4*
538%{_mandir}/man5/xorg.conf.5x*
539
540%if %{with dmx}
541%files -n xorg-xserver-Xdmx
542%defattr(644,root,root,755)
543%attr(755,root,root) %{_bindir}/Xdmx
544%attr(755,root,root) %{_bindir}/dmxaddinput
545%attr(755,root,root) %{_bindir}/dmxaddscreen
546%attr(755,root,root) %{_bindir}/dmxinfo
547%attr(755,root,root) %{_bindir}/dmxreconfig
548%attr(755,root,root) %{_bindir}/dmxresize
549%attr(755,root,root) %{_bindir}/dmxrminput
550%attr(755,root,root) %{_bindir}/dmxrmscreen
551%attr(755,root,root) %{_bindir}/dmxtodmx
552%attr(755,root,root) %{_bindir}/dmxwininfo
553%attr(755,root,root) %{_bindir}/vdltodmx
554%attr(755,root,root) %{_bindir}/xdmxconfig
555%{_mandir}/man1/Xdmx.1x*
556%{_mandir}/man1/dmxtodmx.1x*
557%{_mandir}/man1/vdltodmx.1x*
558%{_mandir}/man1/xdmxconfig.1x*
559%endif
560
561%files -n xorg-xserver-Xnest
562%defattr(644,root,root,755)
563%attr(755,root,root) %{_bindir}/Xnest
564%{_mandir}/man1/Xnest.1x*
565
566%files -n xorg-xserver-Xephyr
567%defattr(644,root,root,755)
568%attr(755,root,root) %{_bindir}/Xephyr
569%{_mandir}/man1/Xephyr.1x*
570
571%files -n xorg-xserver-Xfbdev
572%defattr(644,root,root,755)
573%attr(755,root,root) %{_bindir}/Xfbdev
574
575%files -n xorg-xserver-Xvfb
576%defattr(644,root,root,755)
577%attr(755,root,root) %{_bindir}/Xvfb
578%{_mandir}/man1/Xvfb.1x*
579
580%files -n xorg-xserver-Xvfb-init
581%defattr(644,root,root,755)
582%attr(754,root,root) /etc/rc.d/init.d/Xvfb
583%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/Xvfb
584
585%files devel
586%defattr(644,root,root,755)
587%doc doc/xml/{Xserver-spec.html,xorg.css}
588%{_includedir}/xorg
589%{_libdir}/libxf86config.a
590%{_aclocaldir}/xorg-server.m4
591%{_pkgconfigdir}/xorg-server.pc
592
593%files source
594%defattr(-,root,root,755)
595%{_usrsrc}/%{name}-%{version}
596
597%files -n xorg-xserver-libdri
598%defattr(644,root,root,755)
599%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libdri.so
600
601%files -n xorg-xserver-libglx
602%defattr(644,root,root,755)
603%if %{with multigl}
604%ghost %{_libdir}/xorg/modules/extensions/libglx.so
605%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.%{version}
606%else
607%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so
608%endif
This page took 0.039932 seconds and 4 git commands to generate.