%define git 0 %define with_debug 0 %define enable_dmx 1 %define enable_xfake 1 %define enable_hal 0 %define enable_udev 1 %define enable_dbus %{enable_hal} %define enable_builddocs 0 # Do magic with .rpmsave named links %define pre_post_trans 1 # Need this for shared objects that reference X Server, or other modules symbols %define _disable_ld_no_undefined 1 # Alternatives priority for standard libglx.so and mesa libs %define priority 500 # Search for modules in extra_module_dir before the default path. # This will allow fglrx to install its modified modules in more cleaner way. %define extra_module_dir %{_libdir}/xorg/extra-modules %define xorg1_6_extra_modules %{_libdir}/xorg/xorg-1.6-extra-modules %define version 1.10.1 %define rel 1 %define subrel 2 # ABI versions. Have to keep these manually in sync with the source # because rpm is a terrible language. HTFU. %define ansic_major 0 %define ansic_minor 4 %define videodrv_major 10 %define videodrv_minor 0 %define xinput_major 12 %define xinput_minor 2 %define extension_major 5 %define extension_minor 0 Name: x11-server Version: %{version} %if %{git} Release: %mkrel 0.%{git}.%{rel} %else Release: %mkrel %{rel} %endif Summary: X11 servers Group: System/X11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot URL: http://xorg.freedesktop.org %if %{git} Source0: xorg-server-%{git}.tar.bz2 %else Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2 %endif Source1: xserver.pamd Source2: xvfb-run.sh Source3: 10-x11-keymap.fdi Source4: mageia-setup-keyboard-hal Source5: mageia-setup-keyboard-udev Source6: 61-x11-input.rules Source7: 11-x11-mouse-quirks.fdi # from RH/FC: # for requires generation in drivers Source30: xserver-sdk-abi-requires License: GPLv2+ and MIT Obsoletes: x11-server13 <= 1.2.99.905 # vesa based kdrive X servers are not built anymore. # Obsoleted for clean upgraded Obsoletes: x11-server-xati <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xchips <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xepson <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xi810 <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xmach64 <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xmga <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xnvidia <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xpm2 <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xr128 <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xsmi <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xvesa <= 1.4.2-4mdv2009.0 Obsoletes: x11-server-xvia <= 1.4.2-4mdv2009.0 # die, Xgl, die - AdamW 2008/11 Obsoletes: x11-server-xgl <= 0.0.1-0.20080722.3mdv2009.0 Requires: %{name}-xorg %if %{enable_dmx} Requires: %{name}-xdmx %else Obsoletes: %{name}-xdmx < %{version}-%{release} %endif Requires: %{name}-xnest Requires: %{name}-xvfb # This should be removed when any of the vnc packages provide x11-server-xvnc: Obsoletes: %{name}-xvnc < %{version}-%{release} %if !%{enable_xfake} Obsoletes: %{name}-xfake < %{version}-%{release} %endif # FIXME: build with systemtap installed is broken BuildConflicts: systemtap BuildRequires: libmesagl-devel >= 7.1 BuildRequires: libpam-devel BuildRequires: libpciaccess-devel BuildRequires: libpixman-1-devel >= 0.9.5 BuildRequires: libxau-devel >= 1.0.0 BuildRequires: libxaw-devel >= 1.0.1 BuildRequires: libxdmcp-devel >= 1.0.0 BuildRequires: libxext-devel >= 1.1 BuildRequires: libxfixes-devel BuildRequires: libxfont-devel >= 1.2.8-2mdv BuildRequires: libxi-devel >= 1.1.3 BuildRequires: libxkbfile-devel >= 1.0.4 BuildRequires: libxmu-devel >= 1.0.0 BuildRequires: libxpm-devel >= 3.5.4.2 BuildRequires: libxrender-devel >= 0.9.4 BuildRequires: libxres-devel >= 1.0.0 BuildRequires: libxv-devel BuildRequires: x11-font-util >= 1.1 BuildRequires: x11-proto-devel >= 7.5 BuildRequires: x11-util-macros >= 1.10 BuildRequires: x11-xtrans-devel >= 1.0.3 # Probably only needed if we change .l or .y files, but let's have them anyway: BuildRequires: byacc BuildRequires: flex # for xkbcomp patch BuildRequires: openssl-devel %if %{enable_hal} # For the moment only really required if compiling with --config-dbus # But if available at build time, will include headers, but do nothing BuildRequires: libhal-devel %endif %if %{enable_udev} BuildRequires: libudev-devel %endif %if %{enable_dbus} BuildRequires: libdbus-devel %endif %if %{enable_dmx} BuildRequires: libdmx-devel BuildRequires: libxtst-devel >= 1.1 %endif %if %{enable_builddocs} BuildRequires: doxygen BuildRequires: fop BuildRequires: xmlto BuildRequires: x11-sgml-doctools %endif # Instructions to setup your repository clone # git://anongit.freedesktop.org/git/xorg/xserver # git checkout origin/server-1.7-branch # git checkout -b mdv-1.7-cherry-picks # git am ../03??-*.patch # git checkout -b mdv-1.7-redhat # git am ../04??-*.patch # git checkout -b mdv-1.7-patches # git am ../09??-*.patch # Sync with server-1.6-branch # git format-patch --start-number 100 xorg-server-1.6.4..server-1.6-branch # Upstream cherry picks from master branch # git format-patch --start-number 300 origin/server-1.6-branch..mdv-1.6.4-cherry-picks # Mandriva patches # git format-patch --start-number 900 mdv-1.6.4-redhat..mdv-1.6.4-patches Patch900: 0900-Use-a-X-wrapper-that-uses-pam-and-consolehelper-to-g.patch Patch901: 0901-Don-t-print-information-about-X-Server-being-a-pre-r.patch Patch902: 0902-Take-width-into-account-when-choosing-default-mode.patch Patch903: 0903-LED-behavior-fixes.patch Patch904: 0904-Add-noAutoDevices-command-line-option.patch Patch905: 0905-Xorg-add-an-extra-module-path.patch Patch906: 0906-xfree86-need-to-press-Ctrl-Alt-Bksp-twice-to-termina.patch Patch907: 0907-Add-nr-argument-for-backwards-compatibility.patch Patch908: 0908-XKB-cache-xkbcomp-output-for-fast-start-up-v.1-for-1.patch # Candidates for dropping: # 902: Why is this needed? # 903: Input subsystem has changed *a lot* since this patch was written... I # fear it might break things now # 904: Who uses this option? GDM? KDM? # 906: All this patch does is force users to hit ctrl+alt+bksp twice (with # an annoying sound) IF the hotkey is enabled. If the user chooses to # enable ctrk+alt+bksp, why force him to hit twice? OTOH, the sound is # annoying, and it should teach users to not use ctrl+alt+bksp =D # 907: we should make whoever-uses-this-option go for "-background none", which # is the upstream-supported option. Then we kill the patch. # 908: This gives us at most 0.6s in boot, but upstream will never accept it. # When we change to libxkbcommon we'll have to drop this anyway. # Do not crash if Xv is not initialized (patch from xorg-devel ML) # The crash happened when v4l was loaded and xv was not registered, # for example on RV610 with radeon driver Patch1001: 1001-do-not-crash-if-xv-not-initialized.patch # CVE Patches Patch2000: xorg-server-1.10.1-CVE-2011-4028.patch Patch2001: xorg-server-1.10.1-CVE-2011-4029.patch Patch2002: xorg-server-1.10.1-CVE-2012-2118.patch %description X11 servers #------------------------------------------------------------------------------ %package devel Summary: Development files for %{name} Group: Development/X11 License: MIT %define oldxorgnamedevel %mklibname xorg-x11 Conflicts: %{oldxorgnamedevel}-devel < 7.0 Obsoletes: x11-server13-devel <= 1.2.99.905 Requires: libpixman-1-devel Requires: libpciaccess-devel Requires: libxkbfile-devel Requires: libxext-devel >= 1.1 %description devel Development files for %{name} %pre devel if [ -h %{_includedir}/X11 ]; then rm -f %{_includedir}/X11 fi %files devel %defattr(-,root,root) %dir %{_includedir}/xorg %{_bindir}/xserver-sdk-abi-requires %{_includedir}/xorg/*.h %{_libdir}/pkgconfig/xorg-server.pc %{_datadir}/aclocal/xorg-server.m4 #------------------------------------------------------------------------------ %package common Summary: X server common files Group: System/X11 License: MIT Provides: XFree86 = 7.0.0 Conflicts: xorg-x11 <= 6.9.0-12mdk Obsoletes: x11-server13-common <= 1.2.99.905 Obsoletes: x11-server-xprt <= 1.3.0.0-2mdv2008.0 Requires: rgb # for 'fixed' and 'cursor' fonts Requires: x11-font-misc-misc Requires: x11-font-cursor-misc Requires: x11-font-alias Requires: x11-data-xkbdata Requires: xkbcomp %if %enable_udev Requires: udev %endif Requires(post): update-alternatives >= 1.9.0 Requires(postun): update-alternatives # see comment about /usr/X11R6/lib below Conflicts: filesystem < 2.1.8 # nvidia-71xx does not support X.org server >= 1.5 Conflicts: x11-driver-video-nvidia71xx < 71.86.09-2 # old fglrx does not support X.org server >= 1.7 Conflicts: x11-driver-video-fglrx < 8.720 # Fix: missing conflicts to allow upgrade from 2008.0 to cooker # http://qa.mandriva.com/show_bug.cgi?id=36651 Conflicts: x11-driver-video-nvidia-current <= 100.14.19 Conflicts: x11-xorg1_5-server < 1.5.3-4 Provides: xserver-abi(ansic-%{ansic_major}) = %{ansic_minor} Provides: xserver-abi(videodrv-%{videodrv_major}) = %{videodrv_minor} Provides: xserver-abi(xinput-%{xinput_major}) = %{xinput_minor} Provides: xserver-abi(extension-%{extension_major}) = %{extension_minor} %description common X server common files # old packages had a dir structure on /usr/X11R6/lib/ but starting on # filesystem-2.1.8 these dirs where kept there but were not owned by any # package. It now should be a compat symlink to the new path: /usr/lib/X11, # but there are scenarios where /usr/lib/X11 and /usr/X11R6/lib/X11 both # exist as directories. %pre common for link in /etc/X11 /usr/lib/X11 /usr/X11R6; do if [ -L $link ]; then echo "$link is a symbolic link. You must run the" echo "script in http://wiki.mandriva.com/en/CookerX11Upgrade" echo "before continuing." exit 1 fi done if [ -L %{_libdir}/X11 ]; then rm -f %{_libdir}/X11 fi if [ -d /usr/X11R6/lib/X11 ]; then mkdir -p %{_libdir}/X11 rm -f /usr/X11R6/lib/X11/fs # old symlink, already on the target dir mv -f /usr/X11R6/lib/X11/* %{_libdir}/X11/ 2> /dev/null rm -rf /usr/X11R6/lib/X11 fi %post common %{_sbindir}/update-alternatives \ --install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf %{priority} \ --slave %{extra_module_dir} xorg_extra_modules %{xorg1_6_extra_modules} # (anssi) %triggerun common -- %{name}-common < 1.3.0.0-17 [ $1 -eq 2 ] || exit 0 # do not run if downgrading current_glconf="$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)" if [ "${current_glconf#*mesa}" == "gl1.conf" ]; then # This an upgrade of a system with no proprietary drivers enabled, update # the link to point to the new standard.conf instead of libmesagl1.conf (2008.0 change). %{_sbindir}/update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf else # XFdrake did not set symlink to manual mode before 2008.0, so we ensure it here. %{_sbindir}/update-alternatives --set gl_conf "${current_glconf}" fi true %postun common if [ ! -f %{_sysconfdir}/ld.so.conf.d/GL/standard.conf ]; then /usr/sbin/update-alternatives --remove gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf fi %files common %defattr(-,root,root) %dir %{_libdir}/xorg/modules %dir %{xorg1_6_extra_modules} %dir %{_sysconfdir}/X11 %dir %{_sysconfdir}/X11/app-defaults %dir %{_sysconfdir}/X11/fontpath.d %dir %{_sysconfdir}/ld.so.conf.d/GL %dir %{_sysconfdir}/X11/xorg.conf.d %ghost %{_sysconfdir}/ld.so.conf.d/GL.conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf %if %enable_dbus %{_sysconfdir}/dbus-1/system.d/xorg-server.conf %endif %{_bindir}/gtf %{_bindir}/cvt %if %enable_hal %{_bindir}/mageia-setup-keyboard %{_datadir}/hal/fdi/policy/10osvendor/*.fdi %endif %if %enable_udev /sbin/mageia-setup-keyboard %{_sysconfdir}/udev/rules.d/61-x11-input.rules %endif %if %enable_dmx %{_bindir}/vdltodmx %endif %{_libdir}/xorg/modules/* %{_libdir}/xorg/protocol.txt %{_datadir}/X11/xkb/README.compiled %{_mandir}/man1/gtf.* %{_mandir}/man1/cvt.* %if %enable_dmx %{_mandir}/man1/vdltodmx.* %endif %{_mandir}/man4/fbdevhw.* %{_mandir}/man4/exa.* %dir %{_prefix}/X11R6 %dir %{_prefix}/X11R6/lib %dir %{_prefix}/X11R6/lib/X11 #------------------------------------------------------------------------------ %package xorg Summary: X.org X11 server Group: System/X11 License: MIT Requires: x11-server-common = %{version}-%{release} Requires: x11-data-xkbdata > 1.3-5 Requires: x11-font-alias Requires: libx11-common %if %{enable_udev} || %{enable_hal} Requires: x11-driver-input-evdev Conflicts: drakx-kbd-mouse-x11 < 0.66 %else Requires: x11-driver-input-mouse Requires: x11-driver-input-keyboard %endif Conflicts: compiz < 0.5.0-1mdv2007.1 Obsoletes: x11-server13-xorg <= 1.2.99.905 # minimum libxfont needed for xserver-1.9: Requires: libxfont >= 1.4.2 # This package was used in the transition to modular: Obsoletes: xorg-x11-server %description xorg x11-server-xorg is the new generation of X server from X.Org. %files xorg %defattr(-,root,root) %{_bindir}/X %{_bindir}/Xorg %attr(4755,root,root)%{_bindir}/Xwrapper %{_sysconfdir}/X11/X %{_sysconfdir}/pam.d/xserver %{_sysconfdir}/security/console.apps/xserver %{_mandir}/man1/Xorg.* %{_mandir}/man1/Xserver.* %{_mandir}/man5/xorg.conf.* %if %{enable_udev} %{_datadir}/X11/xorg.conf.d/10-evdev.conf %endif #------------------------------------------------------------------------------ %if %enable_dmx %package xdmx Summary: Distributed Multi-head X server Group: System/X11 License: MIT Requires: x11-server-common = %{version}-%{release} # This package was used in the transition to modular: Obsoletes: xorg-x11-Xdmx %description xdmx Xdmx is a proxy X server that uses one or more other X servers as its display devices. It provides multi-head X functionality for displays that might be located on different machines. Xdmx functions as a front-end X server that acts as a proxy to a set of back-end X servers. All of the visible rendering is passed to the back-end X servers. Clients connect to the Xdmx front-end, and everything appears as it would in a regular multi-head configuration. If Xinerama is enabled (e.g., with +xinerama on the command line), the clients see a single large screen. Xdmx communicates to the back-end X servers using the standard X11 protocol, and standard and/or commonly available X server extensions. %files xdmx %defattr(-,root,root) %{_bindir}/Xdmx %{_bindir}/xdmx* %{_bindir}/dmx* %{_mandir}/man1/Xdmx.* %{_mandir}/man1/xdmxconfig.* %{_mandir}/man1/dmxtodmx.* %endif #------------------------------------------------------------------------------ %package xnest Summary: A nested X server Group: System/X11 License: MIT Requires: x11-server-common = %{version}-%{release} # This package was used in the transition to modular: Obsoletes: xorg-x11-Xnest %description xnest Xnest is an X Window System server which runs in an X window. Xnest is a 'nested' window server, actually a client of the real X server, which manages windows and graphics requests for Xnest, while Xnest manages the windows and graphics requests for its own clients. You will need to install Xnest if you require an X server which will run as a client of your real X server (perhaps for testing purposes). %files xnest %defattr(-,root,root) %{_bindir}/Xnest %{_mandir}/man1/Xnest.* #------------------------------------------------------------------------------ %package xvfb Summary: X virtual framebuffer server Group: System/X11 # xvfb-run is GPLv2, rest is MIT License: MIT and GPLv2 Requires: x11-server-common = %{version}-%{release} Requires: xauth # This package was used in the transition to modular: Obsoletes: xorg-x11-Xvfb %description xvfb Xvfb (X Virtual Frame Buffer) is an X Windows System server that is capable of running on machines with no display hardware and no physical input devices. Xvfb emulates a dumb framebuffer using virtual memory. Xvfb doesn't open any devices, but behaves otherwise as an X display. Xvfb is normally used for testing servers. Using Xvfb, the mfb or cfb code for any depth can be exercised without using real hardware that supports the desired depths. Xvfb has also been used to test X clients against unusual depths and screen configurations, to do batch processing with Xvfb as a background rendering engine, to do load testing, to help with porting an X server to a new platform, and to provide an unobtrusive way of running applications which really don't need an X server but insist on having one. If you need to test your X server or your X clients, you may want to install Xvfb for that purpose. %files xvfb %defattr(-,root,root) %{_bindir}/Xvfb %{_bindir}/xvfb-run %{_mandir}/man1/Xvfb.* #------------------------------------------------------------------------------ %package xephyr Summary: KDrive Xephyr X server Group: System/X11 License: MIT Requires: x11-server-common = %{version}-%{release} %description xephyr KDrive (formerly known as TinyX) is a light-weight X server targetting specific chipsets. It is recommended to be used on thin-clients and embedded systems. If you are on a standard desktop system you might want to use x11-server-xorg and the video driver corresponding to your video card. Xephyr is a X Server which targets a window on a host X Server as its framebuffer. Unlike Xnest it supports modern X extensions ( even if host server doesn't ) such as Composite, Damage, randr etc. It uses SHM Images and shadow framebuffer updates to provide good performance. It also has a visual debugging mode for observing screen updates. Possible uses include: - Xnest replacement - Window manager, Composite 'gadget', etc development tool. - Toolkit debugging - rendundant toolkit paints can be observered easily via the debugging mode. - X Server internals development - develop without the need for an extra machine %files xephyr %defattr(-,root,root) %{_bindir}/Xephyr %{_mandir}/man1/Xephyr.1* #------------------------------------------------------------------------------ %if %enable_xfake %package xfake Summary: KDrive fake X server Group: System/X11 License: MIT Requires: x11-server-common = %{version}-%{release} %description xfake KDrive (formerly known as TinyX) is a light-weight X server targetting specific chipsets. It is recommended to be used on thin-clients and embedded systems. If you are on a standard desktop system you might want to use x11-server-xorg and the video driver corresponding to your video card. This KDrive server is targetted for testing purposes. %files xfake %defattr(-,root,root) %{_bindir}/Xfake %endif #------------------------------------------------------------------------------ %package xfbdev Summary: KDrive fbdev X server Group: System/X11 License: MIT Requires: x11-server-common = %{version}-%{release} %description xfbdev KDrive (formerly known as TinyX) is a light-weight X server targetting specific chipsets. It is recommended to be used on thin-clients and embedded systems. If you are on a standard desktop system you might want to use x11-server-xorg and the video driver corresponding to your video card. This KDrive server is targetted for being used on top of linux framebuffer. %files xfbdev %defattr(-,root,root) %{_bindir}/Xfbdev #------------------------------------------------------------------------------ %define xserver_source_dir %{_datadir}/%{name}-source %package source Summary: Xserver source code required to build unofficial servers Group: Development/X11 License: MIT # (pz) our build system doesn't like mixing arch with noarch yet #BuildArch: noarch %description source Xserver source code needed to build unofficial servers, like Xvnc %files source %defattr(-, root, root, -) %{xserver_source_dir} #------------------------------------------------------------------------------ %prep %if %{git} %setup -q -n xorg-server-%{git} %else %setup -q -n xorg-server-%{version} %endif %patch900 -p1 %patch901 -p1 %patch902 -p1 %patch903 -p1 %patch904 -p1 %patch905 -p1 %patch906 -p1 %patch907 -p1 %patch908 -p1 %patch1001 -p1 %patch2000 -p1 %patch2001 -p1 # check the ABI in the source against what we expect. getmajor() { grep -i ^#define.ABI.$1_VERSION hw/xfree86/common/xf86Module.h | tr '(),' ' ' | awk '{ print $4 }' } getminor() { grep -i ^#define.ABI.$1_VERSION hw/xfree86/common/xf86Module.h | tr '(),' ' ' | awk '{ print $5 }' } test `getmajor ansic` == %{ansic_major} test `getminor ansic` == %{ansic_minor} test `getmajor videodrv` == %{videodrv_major} test `getminor videodrv` == %{videodrv_minor} test `getmajor xinput` == %{xinput_major} test `getminor xinput` == %{xinput_minor} test `getmajor extension` == %{extension_major} test `getminor extension` == %{extension_minor} %build autoreconf -if # Copy the clean dir to a 'source' directory that will be used to make the # x11-server-source subpackage mkdir source find . -maxdepth 1 ! -name source ! -name '\.' -exec cp -r '{}' source \; %if %{with_debug} CFLAGS='-DBUILDDEBUG -O0 -g3' \ %endif %configure2_5x --with-log-dir=%{_logdir} \ --with-os-vendor="%_vendor" \ --with-os-name="`echo \`uname -s -r\` | sed -e s'/ /_/g'`" \ --with-vendor-web="http://bugs.mageia.org" \ --with-extra-module-dir=%{extra_module_dir} \ %if %{with_debug} --enable-debug \ %else --disable-debug \ %endif %if %{enable_builddocs} --enable-builddocs \ %else --disable-builddocs \ %endif %if %{enable_udev} --enable-config-udev \ %else --disable-config-udev \ %endif --disable-install-libxf86config \ --enable-composite \ --enable-xres \ --enable-record \ --enable-xv \ --enable-xvmc \ --enable-dga \ --enable-screensaver \ --enable-xdmcp \ --enable-xdm-auth-1 \ --enable-glx \ --enable-aiglx \ --enable-glx-tls \ --enable-dri \ --enable-xinerama \ --enable-xf86vidmode \ --enable-xace \ --enable-xcsecurity \ --enable-xf86bigfont \ --enable-dpms \ --disable-xcalibrate \ --disable-tslib \ --enable-dbe \ --enable-xfree86-utils \ --enable-xorg \ %if %enable_dmx --enable-dmx \ %else --disable-dmx \ %endif --enable-xvfb \ --enable-xnest \ --disable-xwin \ --enable-kdrive \ %if %enable_xfake --enable-xfake \ %else --disable-xfake \ %endif --enable-xephyr \ --disable-install-setuid \ --enable-secure-rpc \ --enable-xwrapper \ --enable-pam \ %if %{enable_dbus} --enable-config-dbus \ %else --disable-config-dbus \ %endif %if %{enable_hal} --enable-config-hal \ %else --disable-config-hal \ %endif --with-sha1=libcrypto \ --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d" pushd include && make xorg-server.h dix-config.h xorg-config.h && popd %make %install rm -rf %{buildroot} %makeinstall_std mkdir -p %{buildroot}%{_sysconfdir}/X11/ ln -s %{_bindir}/Xorg %{buildroot}%{_sysconfdir}/X11/X ln -sf %{_bindir}/Xwrapper %{buildroot}%{_bindir}/X mkdir -p %{buildroot}%{_sysconfdir}/pam.d install -m 0644 %{_sourcedir}/xserver.pamd %{buildroot}%{_sysconfdir}/pam.d/xserver mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps touch %{buildroot}%{_sysconfdir}/security/console.apps/xserver mkdir -p %{buildroot}%{_sysconfdir}/X11/app-defaults mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d # move README.compiled outside compiled/ dir, so there won't be any problem with x11-data-xkbdata mv -f %{buildroot}%{_datadir}/X11/xkb/compiled/README.compiled %{buildroot}%{_datadir}/X11/xkb/ # for compatibility with legacy applications (see #23423, for example) mkdir -p %{buildroot}%{_prefix}/X11R6/lib/ ln -s ../../%{_lib}/X11 %{buildroot}%{_prefix}/X11R6/lib/X11 # create more module directories to be owned by x11-server-common install -d -m755 %{buildroot}%{_libdir}/xorg/modules/{input,drivers} install -d -m755 %{buildroot}%{xorg1_6_extra_modules} # (anssi) manage proprietary drivers install -d -m755 %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL/standard.conf << EOF # This file is knowingly empty since the libraries are in standard search # path. Please do not remove this file. EOF touch %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf install -m 0755 %{_sourcedir}/xvfb-run.sh %{buildroot}%{_bindir}/xvfb-run %if %enable_hal # autoconfigure keyboard layout based on system settings mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor install -m 0444 %{SOURCE3} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor install -m 0444 %{SOURCE7} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor install -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/mageia-setup-keyboard %endif %if %enable_udev mkdir -p %{buildroot}/sbin mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/ install -m 0755 %{SOURCE5} %{buildroot}/sbin/mageia-setup-keyboard install -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/udev/rules.d %endif # Make the source package cp -r source %{buildroot}/%{xserver_source_dir} install -m 755 %{SOURCE30} %{buildroot}%{_bindir} # Create xorg.conf.d install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xorg.conf.d %clean rm -rf %{buildroot} %files %defattr(-,root,root) %changelog * Wed Oct 17 2012 luigiwalser <luigiwalser> 1.10.1-1.2.mga1 + Revision: 307621 - rediff patch from ubuntu to fix CVE-2012-2118 + dmorgan <dmorgan> - Add P2000 : CVE-2011-4028 Add P2001 : CVE-2011-4029 * Sun Apr 17 2011 tv <tv> 1.10.1-1.mga1 + Revision: 87463 - new release * Tue Apr 12 2011 tv <tv> 1.10.0.902-1.mga1 + Revision: 83573 - New version: 1.10.1 RC2 * Fri Apr 01 2011 tv <tv> 1.10.0.901-1.mga1 + Revision: 79648 - New version: 1.10.1 RC1 + misc <misc> - fix the vendor name ( #595 ) * Thu Mar 03 2011 tv <tv> 1.10.0-1.mga1 + Revision: 63783 - sync with Mandriva - New version: 1.10.0 - Dropped patches: - 401: partially applied, see patch 907 - 402: the place where we copied the patch from is not using it anymore - 1000: applied upstream - New patches: - 907: implement what's left from old patch 401 - Rediff other patches, fix patch numbering - Rediff 1001-do-not-crash-if-xv-not-initialized.patch - Add some comments about patches we might want to remove * Wed Feb 16 2011 blino <blino> 1.9.4-2.mga1 + Revision: 52765 - do not crash if Xv is not initialized (patch from xorg-devel ML) * Tue Feb 15 2011 tmb <tmb> 1.9.4-1.mga1 + Revision: 51956 - P1000: Fix garbaged screen with latest ati driver 6.14 on open openoffice.org startup (color tiling issue, fdo bug #33929)(tv) - update to 1.9.4 final * Mon Feb 14 2011 dmorgan <dmorgan> 1.9.3.902-2.mga1 + Revision: 51709 - Fix kb layout * Wed Feb 02 2011 dmorgan <dmorgan> 1.9.3.902-1.mga1 + Revision: 46236 - Fix x11-util-macros version - New version 1.9.3.902 * Wed Jan 12 2011 dmorgan <dmorgan> 1.9.3-4.mga1 + Revision: 7552 - Enable back udev support * Tue Jan 11 2011 dmorgan <dmorgan> 1.9.3-3.mga1 + Revision: 6194 - Do not enable udev for now - Do not build the doc - Change binary name - Add mageia bugzilla - imported package x11-server