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