1 |
#global gitdate 20151027 |
2 |
# temporary build fix: |
3 |
%define _python_bytecompile_build 0 |
4 |
|
5 |
%bcond_with debug |
6 |
%define enable_builddocs 0 |
7 |
|
8 |
# Need this for shared objects that reference X Server, or other modules symbols |
9 |
%define _disable_ld_no_undefined 1 |
10 |
|
11 |
# Alternatives priority for standard libglx.so and mesa libs |
12 |
%define priority 500 |
13 |
|
14 |
%define rel 4 |
15 |
|
16 |
%global __provides_exclude_from %{_datadir}/%{name}-source |
17 |
%global __requires_exclude_from %{_datadir}/%{name}-source |
18 |
|
19 |
# Released ABI versions. Have to keep these manually in sync with the |
20 |
# source because rpm is a terrible language. |
21 |
%global ansic_major 0 |
22 |
%global ansic_minor 4 |
23 |
%global videodrv_major 24 |
24 |
%global videodrv_minor 0 |
25 |
%global xinput_major 24 |
26 |
%global xinput_minor 1 |
27 |
%global extension_major 10 |
28 |
%global extension_minor 0 |
29 |
|
30 |
%global pkgname xorg-server |
31 |
|
32 |
Name: x11-server |
33 |
Version: 1.20.0 |
34 |
Release: %mkrel %rel%{?gitdate:.%{gitdate}} |
35 |
Summary: X11 servers |
36 |
Group: System/X11 |
37 |
URL: http://xorg.freedesktop.org |
38 |
%if 0%{?gitdate} |
39 |
Source0: xorg-server-%{gitdate}.tar.xz |
40 |
%else |
41 |
Source0: http://www.x.org/pub/individual/xserver/%{pkgname}-%{version}.tar.bz2 |
42 |
Source1: gitignore |
43 |
%endif |
44 |
Source4: 10-quirks.conf |
45 |
Source5: mageia-setup-keyboard-udev |
46 |
Source6: 61-x11-input.rules |
47 |
Source10: xserver.pamd |
48 |
# from RH/FC: |
49 |
# "useful" xvfb-run script |
50 |
Source20: http://svn.exactcode.de/t2/trunk/package/xorg/xorg-server/xvfb-run.sh |
51 |
Source21: http://svn.exactcode.de/t2/trunk/package/xorg/xorg-server/xvfb-run.1 |
52 |
# for requires generation in drivers |
53 |
Source30: xserver-sdk-abi-requires.release |
54 |
# for finding & loading nvidia and flgrx drivers: |
55 |
Source90: 00-modules.conf |
56 |
License: GPLv2+ and MIT |
57 |
|
58 |
# Instructions to setup your repository clone |
59 |
# git://anongit.freedesktop.org/git/xorg/xserver |
60 |
# git checkout origin/server-1.7-branch |
61 |
# git checkout -b mdv-1.7-cherry-picks |
62 |
# git am ../03??-*.patch |
63 |
# git checkout -b mdv-1.7-redhat |
64 |
# git am ../04??-*.patch |
65 |
# git checkout -b mdv-1.7-patches |
66 |
# git am ../09??-*.patch |
67 |
|
68 |
# Sync with server-1.20-branch |
69 |
# git format-patch --start-number 100 xorg-server-1.19.0..server-1.19-branch |
70 |
|
71 |
# Fedora Patches |
72 |
|
73 |
# XXX needs rebase, but also va_gl should probably just be the default |
74 |
# Patch3: 0001-xf86-dri2-Use-va_gl-as-vdpau_driver-for-Intel-i965-G.patch |
75 |
|
76 |
Patch4: 0001-Always-install-vbe-and-int10-sdk-headers.patch |
77 |
|
78 |
# Submitted upstream, but not going anywhere |
79 |
Patch5: 0001-autobind-GPUs-to-the-screen.patch |
80 |
|
81 |
# because the display-managers are not ready yet, do not upstream |
82 |
Patch6: 0001-Fedora-hack-Make-the-suid-root-wrapper-always-start-.patch |
83 |
|
84 |
# new test fixes for RHBZ#1579067 |
85 |
Patch7: xserver-1-2-glamor-Always-return-0-from-glamor_fds_from_pixmap-on-error.patch |
86 |
Patch8: xserver-2-2-glamor-Propagate-glamor_fds_from_pixmap-error-in-glamor_fd_from_pixmap.patch |
87 |
|
88 |
# Mageia patches |
89 |
# git format-patch --start-number 900 mdv-1.6.4-redhat..mdv-1.6.4-patches |
90 |
Patch900: 0900-Use-a-X-wrapper-that-uses-pam-and-consolehelper-to-g.patch |
91 |
Patch901: 0901-Don-t-print-information-about-X-Server-being-a-pre-r.patch |
92 |
Patch902: 0902-Take-width-into-account-when-choosing-default-mode.patch |
93 |
Patch903: 0903-LED-behavior-fixes.patch |
94 |
Patch906: 0906-xfree86-need-to-press-Ctrl-Alt-Bksp-twice-to-termina.patch |
95 |
|
96 |
# Candidates for dropping: |
97 |
# 902: by pixel, so that X11 choose the best resolution with a better algorithm |
98 |
# 903: Input subsystem has changed *a lot* since this patch was written... I |
99 |
# fear it might break things now |
100 |
# 906: All this patch does is force users to hit ctrl+alt+bksp twice (with |
101 |
# an annoying sound) IF the hotkey is enabled. If the user chooses to |
102 |
# enable ctrk+alt+bksp, why force him to hit twice? OTOH, the sound is |
103 |
# annoying, and it should teach users to not use ctrl+alt+bksp =D |
104 |
|
105 |
# Do not crash if Xv is not initialized (patch from xorg-devel ML) |
106 |
# The crash happened when v4l was loaded and xv was not registered, |
107 |
# for example on RV610 with radeon driver |
108 |
Patch4001: 1001-do-not-crash-if-xv-not-initialized.patch |
109 |
|
110 |
# (cg) Point the user at the journal rather than a logfile at /dev/null |
111 |
Patch5001: point-user-at-journal-rather-than-dev-null.patch |
112 |
|
113 |
# from Suse |
114 |
Patch5009: N_Disable-HW-Cursor-for-cirrus-and-mgag200-kernel-modules.patch |
115 |
Source5010: u_os-connections-Check-for-stale-FDs.patch |
116 |
|
117 |
# Security fixes |
118 |
|
119 |
Requires: %{name}-xorg |
120 |
Requires: %{name}-xdmx |
121 |
Requires: %{name}-xnest |
122 |
Requires: %{name}-xvfb |
123 |
|
124 |
# This should be removed when any of the vnc packages provide x11-server-xvnc: |
125 |
Obsoletes: %{name}-xvnc < %{version}-%{release} |
126 |
|
127 |
Obsoletes: %{name}-xfake < %{version}-%{release} |
128 |
|
129 |
# temp force new gcc |
130 |
BuildRequires: gcc >= 5.4.0-2 |
131 |
# temp force new glibc |
132 |
BuildRequires: glibc >= 6:2.27-2 |
133 |
|
134 |
BuildRequires: git |
135 |
BuildRequires: libpam-devel |
136 |
BuildRequires: pkgconfig(egl) |
137 |
BuildRequires: pkgconfig(fontutil) >= 1.1 |
138 |
BuildRequires: pkgconfig(gbm) |
139 |
BuildRequires: pkgconfig(gl) >= 7.1 |
140 |
BuildRequires: pkgconfig(libudev) |
141 |
BuildRequires: pkgconfig(pciaccess) |
142 |
BuildRequires: pkgconfig(pixman-1) >= 0.9.5 |
143 |
BuildRequires: pkgconfig(systemd) |
144 |
BuildRequires: pkgconfig(xau) >= 1.0.0 |
145 |
BuildRequires: pkgconfig(xaw7) >= 1.0.1 |
146 |
BuildRequires: pkgconfig(xdmcp) >= 1.0.0 |
147 |
BuildRequires: pkgconfig(xext) >= 1.1 |
148 |
BuildRequires: pkgconfig(xfixes) |
149 |
BuildRequires: pkgconfig(xfont2) |
150 |
BuildRequires: pkgconfig(xi) >= 1.1.3 |
151 |
BuildRequires: pkgconfig(xkbfile) >= 1.0.4 |
152 |
BuildRequires: pkgconfig(xmu) >= 1.0.0 |
153 |
BuildRequires: pkgconfig(xorg-macros) >= 1.10 |
154 |
BuildRequires: pkgconfig(xpm) >= 3.5.4.2 |
155 |
BuildRequires: pkgconfig(xrender) >= 0.9.4 |
156 |
BuildRequires: pkgconfig(xres) >= 1.0.0 |
157 |
BuildRequires: pkgconfig(xtrans) >= 1.3.5 |
158 |
BuildRequires: pkgconfig(xv) |
159 |
BuildRequires: x11-proto-devel >= 7.7-11 |
160 |
|
161 |
# for ./hw/xwin/glx/gen_gl_wrappers.py: |
162 |
%define _python_bytecompile_errors_terminate_build 0 |
163 |
|
164 |
# Probably only needed if we change .l or .y files, but let's have them anyway: |
165 |
BuildRequires: byacc |
166 |
BuildRequires: flex |
167 |
|
168 |
# for xkbcomp patch |
169 |
BuildRequires: pkgconfig(libcrypto) |
170 |
|
171 |
|
172 |
BuildRequires: pkgconfig(dbus-1) |
173 |
|
174 |
BuildRequires: pkgconfig(dmx) |
175 |
BuildRequires: pkgconfig(xtst) >= 1.1 |
176 |
|
177 |
BuildRequires: pkgconfig(wayland-client) >= 1.3.0 |
178 |
BuildRequires: pkgconfig(wayland-eglstream-protocols) |
179 |
BuildRequires: pkgconfig(wayland-protocols) |
180 |
BuildRequires: pkgconfig(epoxy) |
181 |
BuildRequires: pkgconfig(xshmfence) >= 1.1 |
182 |
|
183 |
BuildRequires: pkgconfig(libunwind) |
184 |
|
185 |
BuildRequires: pkgconfig(xcb-aux) pkgconfig(xcb-image) pkgconfig(xcb-icccm) |
186 |
BuildRequires: pkgconfig(xcb-keysyms) pkgconfig(xcb-renderutil) |
187 |
|
188 |
%if %{enable_builddocs} |
189 |
BuildRequires: doxygen |
190 |
BuildRequires: fop |
191 |
BuildRequires: xmlto |
192 |
BuildRequires: pkgconfig(xorg-sgml-doctools) |
193 |
%endif |
194 |
|
195 |
%description |
196 |
X.Org X11 X server |
197 |
|
198 |
|
199 |
%package common |
200 |
Summary: Xorg server common files |
201 |
Group: System/X11 |
202 |
License: MIT |
203 |
Provides: XFree86 = 7.0.0 |
204 |
Requires: rgb |
205 |
# for 'fixed' and 'cursor' fonts |
206 |
Requires: x11-font-misc-misc |
207 |
Requires: x11-font-cursor-misc |
208 |
Requires: x11-font-alias |
209 |
Requires: x11-data-xkbdata |
210 |
Requires: xkbcomp |
211 |
Requires: udev |
212 |
# else modesetting fails on minimal install: |
213 |
Requires: %{mklibname mesaegl 1} |
214 |
Requires(post): update-alternatives |
215 |
Requires(postun): update-alternatives |
216 |
# nvidia-71xx does not support X.org server >= 1.5 |
217 |
Conflicts: x11-driver-video-nvidia71xx < 71.86.09-2 |
218 |
# old fglrx does not support X.org server >= 1.7 |
219 |
Conflicts: x11-driver-video-fglrx < 8.720 |
220 |
# Fix: missing conflicts to allow upgrade from 2008.0 to cooker |
221 |
# http://qa.mandriva.com/show_bug.cgi?id=36651 |
222 |
Conflicts: x11-driver-video-nvidia-current <= 100.14.19 |
223 |
|
224 |
|
225 |
Provides: xserver-abi(ansic-%{ansic_major}) = %{ansic_minor} |
226 |
Provides: xserver-abi(videodrv-%{videodrv_major}) = %{videodrv_minor} |
227 |
Provides: xserver-abi(xinput-%{xinput_major}) = %{xinput_minor} |
228 |
Provides: xserver-abi(extension-%{extension_major}) = %{extension_minor} |
229 |
# For proprietary drivers that can support multiple videodrv versions: |
230 |
Provides: xserver-abi(videodrv) = %{videodrv_major}.%{videodrv_minor} |
231 |
|
232 |
%description common |
233 |
X server common files |
234 |
|
235 |
%package xorg |
236 |
Summary: Xorg X server |
237 |
Group: System/X11 |
238 |
License: MIT |
239 |
Requires: x11-server-common = %{version}-%{release} |
240 |
Requires: x11-data-xkbdata > 1.3-5 |
241 |
Requires: x11-font-alias |
242 |
Requires: libx11-common |
243 |
Requires: x11-driver-input-libinput |
244 |
|
245 |
# minimum libxfont needed for xserver-1.9: |
246 |
Requires: libxfont >= 1.4.2 |
247 |
|
248 |
%rename glamor |
249 |
%rename x11-driver-video-modesetting |
250 |
|
251 |
%description xorg |
252 |
X.org X11 is an open source implementation of the X Window System. It |
253 |
provides the basic low level functionality which full fledged |
254 |
graphical user interfaces (GUIs) such as GNOME and KDE are designed |
255 |
upon. |
256 |
|
257 |
|
258 |
%package xnest |
259 |
Summary: A nested server |
260 |
Group: System/X11 |
261 |
License: MIT |
262 |
Requires: x11-server-common = %{version}-%{release} |
263 |
|
264 |
%description xnest |
265 |
Xnest is an X server which has been implemented as an ordinary |
266 |
X application. It runs in a window just like other X applications, |
267 |
but it is an X server itself in which you can run other software. It |
268 |
is a very useful tool for developers who wish to test their |
269 |
applications without running them on their real X server. |
270 |
|
271 |
|
272 |
%package xdmx |
273 |
Summary: Distributed Multihead X Server and utilities |
274 |
Group: System/X11 |
275 |
License: MIT |
276 |
Requires: x11-server-common = %{version}-%{release} |
277 |
|
278 |
%description xdmx |
279 |
Xdmx is a proxy X server that provides multi-head support for multiple displays |
280 |
attached to different machines (each of which is running a typical X server). |
281 |
When Xinerama is used with Xdmx, the multiple displays on multiple machines |
282 |
are presented to the user as a single unified screen. A simple application |
283 |
for Xdmx would be to provide multi-head support using two desktop machines, |
284 |
each of which has a single display device attached to it. A complex |
285 |
application for Xdmx would be to unify a 4 by 4 grid of 1280x1024 displays |
286 |
(each attached to one of 16 computers) into a unified 5120x4096 display. |
287 |
|
288 |
|
289 |
%package xvfb |
290 |
Summary: A X Windows System virtual framebuffer X server |
291 |
Group: System/X11 |
292 |
# xvfb-run is GPLv2, rest is MIT |
293 |
License: MIT and GPLv2 |
294 |
Requires: x11-server-common = %{version}-%{release} |
295 |
Requires: xauth |
296 |
|
297 |
|
298 |
%description xvfb |
299 |
Xvfb (X Virtual Frame Buffer) is an X server that is able to run on |
300 |
machines with no display hardware and no physical input devices. |
301 |
Xvfb simulates a dumb framebuffer using virtual memory. Xvfb does |
302 |
not open any devices, but behaves otherwise as an X display. Xvfb |
303 |
is normally used for testing servers. |
304 |
|
305 |
|
306 |
%package xephyr |
307 |
Summary: A nested server |
308 |
Group: System/X11 |
309 |
License: MIT |
310 |
Requires: x11-server-common = %{version}-%{release} |
311 |
|
312 |
%description xephyr |
313 |
Xephyr is an X server which has been implemented as an ordinary |
314 |
X application. It runs in a window just like other X applications, |
315 |
but it is an X server itself in which you can run other software. It |
316 |
is a very useful tool for developers who wish to test their |
317 |
applications without running them on their real X server. Unlike |
318 |
Xnest, Xephyr renders to an X image rather than relaying the |
319 |
X protocol, and therefore supports the newer X extensions like |
320 |
Render and Composite. |
321 |
|
322 |
|
323 |
%package xwayland |
324 |
Summary: Wayland X Server |
325 |
Group: System/X11 |
326 |
License: MIT |
327 |
Requires: x11-server-common = %{version}-%{release} |
328 |
|
329 |
%description xwayland |
330 |
Xwayland is an X server for running X clients under Wayland. |
331 |
|
332 |
%package devel |
333 |
Summary: SDK for X server driver module development |
334 |
Group: Development/X11 |
335 |
License: MIT |
336 |
|
337 |
%define oldxorgnamedevel %mklibname xorg-x11 |
338 |
Requires: libpixman-1-devel |
339 |
Requires: libpciaccess-devel |
340 |
Requires: libxkbfile-devel |
341 |
Requires: libxext-devel >= 1.1 |
342 |
Requires: pkgconfig(xfont2) |
343 |
# pkgconfig file needs dri.pc: |
344 |
Requires: GL-devel |
345 |
|
346 |
%description devel |
347 |
The SDK package provides the development files which are necessary for |
348 |
developing X server driver modules, and for compiling driver modules |
349 |
outside of the standard X11 source code tree. Developers writing video |
350 |
drivers, input drivers, or other X modules should install this package. |
351 |
|
352 |
|
353 |
%package source |
354 |
Summary: Xserver source code required to build VNC server (Xvnc) |
355 |
Group: Development/X11 |
356 |
License: MIT |
357 |
BuildArch: noarch |
358 |
|
359 |
%description source |
360 |
Xserver source code needed to build VNC server (Xvnc) |
361 |
|
362 |
|
363 |
%prep |
364 |
%autosetup -N -n %{pkgname}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} |
365 |
rm -rf .git |
366 |
cp %{SOURCE1} .gitignore |
367 |
# ick |
368 |
%global __scm git |
369 |
%{expand:%__scm_setup_git -q} |
370 |
%autopatch |
371 |
|
372 |
# check the ABI in the source against what we expect. |
373 |
getmajor() { |
374 |
grep -i ^#define.ABI.$1_VERSION hw/xfree86/common/xf86Module.h | |
375 |
tr '(),' ' ' | awk '{ print $4 }' |
376 |
} |
377 |
|
378 |
getminor() { |
379 |
grep -i ^#define.ABI.$1_VERSION hw/xfree86/common/xf86Module.h | |
380 |
tr '(),' ' ' | awk '{ print $5 }' |
381 |
} |
382 |
|
383 |
test `getmajor ansic` == %{ansic_major} |
384 |
test `getminor ansic` == %{ansic_minor} |
385 |
test `getmajor videodrv` == %{videodrv_major} |
386 |
test `getminor videodrv` == %{videodrv_minor} |
387 |
test `getmajor xinput` == %{xinput_major} |
388 |
test `getminor xinput` == %{xinput_minor} |
389 |
test `getmajor extension` == %{extension_major} |
390 |
test `getminor extension` == %{extension_minor} |
391 |
|
392 |
|
393 |
%build |
394 |
|
395 |
%ifnarch %{ix86} x86_64 |
396 |
%global no_int10 --disable-vbe --disable-int10-module |
397 |
%endif |
398 |
%global kdrive --enable-kdrive --enable-xephyr |
399 |
%global xservers --enable-xvfb --enable-xnest %{kdrive} --enable-xorg |
400 |
%global default_font_path "catalogue:/etc/X11/fontpath.d,built-ins" |
401 |
%global dri_flags --enable-dri2 --enable-dri3 --enable-suid-wrapper --enable-glamor |
402 |
%global bodhi_flags --with-vendor-name="%_vendor" |
403 |
|
404 |
%if %with debug |
405 |
CFLAGS='-DBUILDDEBUG -O0 -g3' \ |
406 |
%endif |
407 |
autoreconf -f -v --install || exit 1 |
408 |
%configure2_5x %{xservers} \ |
409 |
--with-log-dir=%{_logdir} \ |
410 |
--enable-dependency-tracking \ |
411 |
--enable-xwayland-eglstream \ |
412 |
%{?no_int10} --with-int10=x86emu \ |
413 |
--with-default-font-path=%{default_font_path} \ |
414 |
--with-module-dir=%{_libdir}/xorg/modules \ |
415 |
--with-vendor-web="https://bugs.mageia.org" \ |
416 |
%if %{with debug} |
417 |
--enable-debug \ |
418 |
%else |
419 |
--disable-debug \ |
420 |
%endif |
421 |
--with-builderstring="Build ID: %{name} %{version}-%{release}" \ |
422 |
--with-os-name="$(hostname -s) $(uname -r)" \ |
423 |
--without-dtrace \ |
424 |
--disable-xselinux --enable-record --enable-present \ |
425 |
--enable-config-udev \ |
426 |
--disable-strict-compilation \ |
427 |
--enable-dpms \ |
428 |
--disable-install-setuid \ |
429 |
--enable-secure-rpc \ |
430 |
--enable-pam \ |
431 |
--enable-dmx \ |
432 |
--enable-xwayland \ |
433 |
%{dri_flags} %{?bodhi_flags} \ |
434 |
--with-sha1=libcrypto \ |
435 |
|
436 |
pushd include && make xorg-server.h dix-config.h xorg-config.h && popd |
437 |
%make |
438 |
|
439 |
%install |
440 |
%make_install |
441 |
|
442 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,input} |
443 |
|
444 |
mkdir -p %{buildroot}%{_sysconfdir}/X11/ |
445 |
ln -s %{_bindir}/Xorg %{buildroot}%{_sysconfdir}/X11/X |
446 |
ln -sf %{_libexecdir}/Xorg.wrap %{buildroot}%{_bindir}/X |
447 |
|
448 |
mkdir -p %{buildroot}%{_sysconfdir}/pam.d |
449 |
install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/xserver |
450 |
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps |
451 |
touch %{buildroot}%{_sysconfdir}/security/console.apps/xserver |
452 |
|
453 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d |
454 |
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d |
455 |
|
456 |
# make sure the (empty) /etc/X11/xorg.conf.d is there, system-setup-keyboard |
457 |
# relies on it more or less. |
458 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/xorg.conf.d |
459 |
|
460 |
mkdir -p %{buildroot}%{_sysconfdir}/X11/app-defaults |
461 |
mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d |
462 |
|
463 |
# move README.compiled outside compiled/ dir, so there won't be any problem with x11-data-xkbdata |
464 |
mv -f %{buildroot}%{_datadir}/X11/xkb/compiled/README.compiled %{buildroot}%{_datadir}/X11/xkb/ |
465 |
|
466 |
# (anssi) manage proprietary drivers |
467 |
install -d -m755 %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL |
468 |
cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL/standard.conf << EOF |
469 |
# This file is knowingly empty since the libraries are in standard search |
470 |
# path. Please do not remove this file. |
471 |
EOF |
472 |
touch %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf |
473 |
|
474 |
mkdir -p %{buildroot}/sbin |
475 |
mkdir -p %{buildroot}/lib/udev/rules.d/ |
476 |
install -m 0755 %{SOURCE5} %{buildroot}/sbin/mageia-setup-keyboard |
477 |
install -m 0644 %{SOURCE6} %{buildroot}/lib/udev/rules.d |
478 |
|
479 |
install -m 755 %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/xserver-sdk-abi-requires |
480 |
|
481 |
install -m 0755 %{SOURCE20} $RPM_BUILD_ROOT%{_bindir}/xvfb-run |
482 |
|
483 |
# Make the source package |
484 |
%global xserver_source_dir %{_datadir}/x11-server-source |
485 |
%global inst_srcdir %{buildroot}/%{xserver_source_dir} |
486 |
mkdir -p %{inst_srcdir}/{Xext,xkb,GL,hw/{xquartz/bundle,xfree86/common}} |
487 |
mkdir -p %{inst_srcdir}/{hw/dmx/doc,man,doc,hw/dmx/doxygen} |
488 |
cp {,%{inst_srcdir}/}hw/xquartz/bundle/cpprules.in |
489 |
cp {,%{inst_srcdir}/}man/Xserver.man |
490 |
cp {,%{inst_srcdir}/}doc/smartsched |
491 |
cp {,%{inst_srcdir}/}hw/dmx/doxygen/doxygen.conf.in |
492 |
cp {,%{inst_srcdir}/}xserver.ent.in |
493 |
cp {,%{inst_srcdir}/}hw/xfree86/Xorg.sh.in |
494 |
cp xkb/README.compiled %{inst_srcdir}/xkb |
495 |
cp hw/xfree86/xorgconf.cpp %{inst_srcdir}/hw/xfree86 |
496 |
|
497 |
install -m 0755 %{SOURCE21} $RPM_BUILD_ROOT%{_mandir}/man1/xvfb-run.1 |
498 |
install -m 0644 %{SOURCE90} $RPM_BUILD_ROOT/usr/share/X11/xorg.conf.d/ |
499 |
|
500 |
find . -type f | egrep '.*\.(c|h|am|ac|inc|m4|h.in|pc.in|man.pre|pl|txt)$' | |
501 |
xargs tar cf - | (cd %{inst_srcdir} && tar xf -) |
502 |
find %{inst_srcdir}/hw/xfree86 -name \*.c -delete |
503 |
|
504 |
# Remove unwanted files/dirs |
505 |
{ |
506 |
find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -f -- || : |
507 |
# wtf |
508 |
%ifnarch %{ix86} x86_64 |
509 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/lib{int10,vbe}.so |
510 |
%endif |
511 |
} |
512 |
|
513 |
%post common |
514 |
%{_sbindir}/update-alternatives \ |
515 |
--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf %{priority} |
516 |
|
517 |
# (anssi) |
518 |
%triggerun common -- %{name}-common < 1.3.0.0-17 |
519 |
[ $1 -eq 2 ] || exit 0 # do not run if downgrading |
520 |
current_glconf="$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)" |
521 |
if [ "${current_glconf#*mesa}" == "gl1.conf" ]; then |
522 |
# This an upgrade of a system with no proprietary drivers enabled, update |
523 |
# the link to point to the new standard.conf instead of libmesagl1.conf (2008.0 change). |
524 |
%{_sbindir}/update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf |
525 |
else |
526 |
# XFdrake did not set symlink to manual mode before 2008.0, so we ensure it here. |
527 |
%{_sbindir}/update-alternatives --set gl_conf "${current_glconf}" |
528 |
fi |
529 |
true |
530 |
|
531 |
%postun common |
532 |
if [ ! -f %{_sysconfdir}/ld.so.conf.d/GL/standard.conf ]; then |
533 |
/usr/sbin/update-alternatives --remove gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf |
534 |
fi |
535 |
|
536 |
%files |
537 |
|
538 |
%files common |
539 |
%dir %{_libdir}/xorg/modules |
540 |
%dir %{_sysconfdir}/X11 |
541 |
%dir %{_sysconfdir}/X11/app-defaults |
542 |
%dir %{_sysconfdir}/X11/fontpath.d |
543 |
%dir %{_sysconfdir}/ld.so.conf.d/GL |
544 |
%dir %{_sysconfdir}/X11/xorg.conf.d |
545 |
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf |
546 |
%{_sysconfdir}/ld.so.conf.d/GL/standard.conf |
547 |
%{_bindir}/gtf |
548 |
%{_bindir}/cvt |
549 |
/sbin/mageia-setup-keyboard |
550 |
/lib/udev/rules.d/61-x11-input.rules |
551 |
%{_bindir}/vdltodmx |
552 |
%{_libdir}/xorg/modules/* |
553 |
%{_libdir}/xorg/protocol.txt |
554 |
%{_datadir}/X11/xkb/README.compiled |
555 |
%{_mandir}/man1/gtf.* |
556 |
%{_mandir}/man1/cvt.* |
557 |
%{_mandir}/man1/vdltodmx.* |
558 |
%{_mandir}/man4/* |
559 |
|
560 |
%global Xorgperms %attr(4755, root, root) |
561 |
|
562 |
%files xorg |
563 |
%{_bindir}/X |
564 |
%{_bindir}/Xorg |
565 |
%{_libexecdir}/Xorg |
566 |
%{Xorgperms} %{_libexecdir}/Xorg.wrap |
567 |
%attr(4755,root,root)%{_bindir}/Xwrapper |
568 |
%{_sysconfdir}/X11/X |
569 |
%{_sysconfdir}/pam.d/xserver |
570 |
%{_sysconfdir}/security/console.apps/xserver |
571 |
%{_mandir}/man1/Xorg.1* |
572 |
%{_mandir}/man1/Xorg.wrap.1* |
573 |
%{_mandir}/man1/Xserver.1* |
574 |
%{_mandir}/man5/Xwrapper.config.5* |
575 |
%{_mandir}/man5/xorg.conf.5* |
576 |
%{_mandir}/man5/xorg.conf.d.5* |
577 |
%{_datadir}/X11/xorg.conf.d/00-modules.conf |
578 |
%{_datadir}/X11/xorg.conf.d/10-quirks.conf |
579 |
|
580 |
%files xnest |
581 |
%{_bindir}/Xnest |
582 |
%{_mandir}/man1/Xnest.1* |
583 |
|
584 |
%files xdmx |
585 |
%{_bindir}/Xdmx |
586 |
%{_bindir}/dmx* |
587 |
%{_bindir}/xdmx* |
588 |
%{_mandir}/man1/Xdmx.1* |
589 |
%{_mandir}/man1/dmxtodmx.1* |
590 |
%{_mandir}/man1/xdmxconfig.1* |
591 |
|
592 |
%files xvfb |
593 |
%{_bindir}/Xvfb |
594 |
%{_bindir}/xvfb-run |
595 |
%{_mandir}/man1/Xvfb.1* |
596 |
%{_mandir}/man1/xvfb-run.1* |
597 |
|
598 |
%files xephyr |
599 |
%{_bindir}/Xephyr |
600 |
%{_mandir}/man1/Xephyr.1* |
601 |
|
602 |
%files xwayland |
603 |
%{_bindir}/Xwayland |
604 |
|
605 |
%files devel |
606 |
%{_bindir}/xserver-sdk-abi-requires |
607 |
%{_libdir}/pkgconfig/xorg-server.pc |
608 |
%dir %{_includedir}/xorg |
609 |
%{_includedir}/xorg/*.h |
610 |
%{_datadir}/aclocal/xorg-server.m4 |
611 |
|
612 |
%files source |
613 |
%{xserver_source_dir} |