/[packages]/updates/8/x11-server/current/SPECS/x11-server.spec
ViewVC logotype

Annotation of /updates/8/x11-server/current/SPECS/x11-server.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30