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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30