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