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