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