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