%define drakxtools_required_version 10.4.221 %define drakxtools_conflicted_version 10.4.89 %define libname %mklibname %{name} Summary: Tools to configure the keyboard, the mice and the graphic card Name: drakx-kbd-mouse-x11 Version: 0.64 Release: %mkrel 1 Source0: %name-%version.tar.bz2 License: GPLv2+ Group: System/Configuration/Other Url: http://www.mandrivalinux.com/en/cvs.php3 BuildRequires: perl-MDK-Common-devel gettext perl-devel BuildRequires: libxxf86misc-devel ncurses-devel Requires: drakxtools-curses => %drakxtools_required_version # need the common pam config files for usermode config Requires: usermode-consoleonly >= 1.92-4mdv2008.0 %ifnarch %{sunsparc} Requires: monitor-edid >= 1.12 %endif %{sunsparc} BuildRoot: %_tmppath/%name-%version-buildroot # for program: Conflicts: drakxtools <= %drakxtools_conflicted_version # for man pages: Conflicts: drakxtools-curses <= %drakxtools_conflicted_version # for Cards+ using nvidia-current|nvidia71xx|nvidia96xx instead of nvidia/nvidia97xx/NVIDIA_LEGACY Conflicts: ldetect-lst < 0.1.174 # we don't want to require X libs (xf86misc is always used inside an eval) %define _requires_exceptions ^libX %description Keyboarddrake enables to configure the keyboard. Mousedrake enables to configure the mice. XFdrake enables to configure the graphic card. %prep %setup -q %build %make %install rm -fr $RPM_BUILD_ROOT %makeinstall_std #install lang %find_lang %name # consolehelper configuration # ask for user password ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/XFdrake mkdir -p %{buildroot}%{_sysconfdir}/pam.d/ ln -sf %{_sysconfdir}/pam.d/mandriva-simple-auth %{buildroot}%{_sysconfdir}/pam.d/xfdrake mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps cat > %{buildroot}%{_sysconfdir}/security/console.apps/xfdrake <<EOF USER=<user> PROGRAM=/usr/sbin/XFdrake FALLBACK=false SESSION=true EOF ln -s %{_sysconfdir}/security/console.apps/xfdrake \ %{buildroot}%{_sysconfdir}/security/console.apps/XFdrake %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root) %doc COPYING NEWS %config(noreplace) %{_sysconfdir}/pam.d/xfdrake %config(noreplace) %{_sysconfdir}/security/console.apps/xfdrake # symlink %{_sysconfdir}/security/console.apps/XFdrake %_bindir/XFdrake %_sbindir/* %_datadir/libDrakX/pixmaps/* /usr/lib/libDrakX/auto/* /usr/lib/libDrakX/xf86misc/main.pm /usr/lib/libDrakX/Xconfig/*.pm /usr/lib/libDrakX/*.pm %changelog * Wed Oct 01 2008 Pixel <pixel@mandriva.com> 0.64-1mdv2009.0 + Revision: 290356 - 0.64: - XFdrake: o explicitly Load or Disable module "dri" (to be independent of Xorg's default choice) * Tue Sep 30 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.63-1mdv2009.0 + Revision: 289964 - updated translation * Thu Sep 25 2008 Pixel <pixel@mandriva.com> 0.62-1mdv2009.0 + Revision: 288154 - 0.62: - XFdrake: o set "PreferredMode" in Monitor section if the user changes the resolution (we still do not use PreferredMode for the default resolution) * Thu Sep 11 2008 Pixel <pixel@mandriva.com> 0.61-1mdv2009.0 + Revision: 283822 - 0.61: - keyboarddrake: o fix lithuanian keyboard choices (cf #41031) - XFdrake: o do set a background image when using resolution "Automatic" (#43644) * Tue Sep 09 2008 Pixel <pixel@mandriva.com> 0.60-1mdv2009.0 + Revision: 283135 - 0.60: - XFdrake: o allow xorg.conf to have no "Monitor" section (#42793) o [bugfix] fix clicking on "Options" when Composite is disabled (regression introduced in 0.58) (#43710) * Mon Aug 18 2008 Pixel <pixel@mandriva.com> 0.59-1mdv2009.0 + Revision: 273192 - 0.59: - XFdrake: o use 24dpp by default, even on DRI (needed for kde4) o ensure we don't drop non-main "Device" (when modifying "Options", #41410) o use nvidia-current default settings for nvidia173 as well o no need to force XaaNoOffscreenPixmaps, it is the default now in x11-server * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.58-2mdv2009.0 + Revision: 220705 - rebuild + Pixel <pixel@mandriva.com> - 0.58: - XFdrake: o Composite is now the default in xserver 1.4 (#35043) o do not create symlink /etc/X11/X to ../../usr/bin/Xorg (#41363) o drop support for /etc/X11/XF86Config (replaced by xorg.conf for some time now) - mousedrake: o evdev and imwheel handle orthogonal things, so do use imwheel even if we need evdev (#40088) * Wed Apr 02 2008 Pixel <pixel@mandriva.com> 0.57-1mdv2008.1 + Revision: 191648 - 0.57: - XFdrake: o workaround pb with nvidia driver: make dm restart xserver (#38297) * Wed Apr 02 2008 Pixel <pixel@mandriva.com> 0.56-1mdv2008.1 + Revision: 191640 - 0.56: - XFdrake: o do not disable RenderAccel on nvidia-current (regression introduced in 0.21) * Thu Mar 27 2008 Pixel <pixel@mandriva.com> 0.55-1mdv2008.1 + Revision: 190640 - 0.55: - XFdrake: o disable "DynamicTwinView" when not using TwinView (#39171) * Tue Mar 25 2008 Pixel <pixel@mandriva.com> 0.54-1mdv2008.1 + Revision: 189931 - 0.54 - keyboarddrake library: o in drakx-finish-install, keyboard is asked after asking country, so have a good default based on country too (was done for pt_BR but not fr_XX) (#39221) * Fri Mar 21 2008 Pixel <pixel@mandriva.com> 0.53-1mdv2008.1 + Revision: 189379 - 0.53: - XFdrake: o allow to set "EXA" on "intel" driver (#39162) * Thu Mar 20 2008 Pixel <pixel@mandriva.com> 0.52-1mdv2008.1 + Revision: 189168 - 0.52: - XFdrake: o add option "Force display mode of DVI" on driver "nvidia" (#30066) - XFdrake library: o ensure set_default_background() doesn't fail (#39065) (ie default to 1024x768 if 0x0 is given) * Wed Mar 19 2008 Pixel <pixel@mandriva.com> 0.51-1mdv2008.1 + Revision: 188829 - 0.51: - XFdrake: o use 24bpp on savage (#38750) o do use EDID HorizSync/VertRefresh on 16/10 (regression introduced in 0.50) - keyboarddrake: o default romanian keyboard is qwerty (cf #38450) o "ro" really is "ro(std_cedilla)" (to be more standard on unpatched xkeyboard-config) o "ro(us)" is wrong and not qwerty, use "ro(winkeys)" which is the only qwertz from symbols/ro * Tue Mar 11 2008 Pixel <pixel@mandriva.com> 0.50-1mdv2008.1 + Revision: 185860 - 0.50: - XFdrake: o if the EDID gives a valid 16/10 preferred resolution (even if duplicated), but no HorizSync/VertRefresh, use a generic flat panel HorizSync/VertRefresh (needed for edid.lcd.dell-inspiron-6400, #37971) o handle DRIVER2_NO_SSE (from Cards+), needed by nvidia-current requiring SSE * Thu Feb 28 2008 Pixel <pixel@mandriva.com> 0.49-1mdv2008.1 + Revision: 176384 - 0.49: - XFdrake: background images are now jpeg files * Thu Feb 28 2008 Pixel <pixel@mandriva.com> 0.48-1mdv2008.1 + Revision: 176049 - 0.48: - XFdrake: o when setting background for the resolution, handle "hour"-based backgrounds (also add Mandriva.xml symlink) * Wed Feb 27 2008 Pixel <pixel@mandriva.com> 0.47-1mdv2008.1 + Revision: 175772 - 0.47: - XFdrake: o when setting background for the resolution, handle "hour"-based backgrounds * Mon Feb 18 2008 Pixel <pixel@mandriva.com> 0.46-1mdv2008.1 + Revision: 171486 - 0.46: - XFdrake: o add 1024x600 (used on Samsung Q1Ultra) (#37889) * Tue Feb 05 2008 Pixel <pixel@mandriva.com> 0.45-1mdv2008.1 + Revision: 162578 - 0.45: - XFdrake: o add 800x480 (used on belinea s.book) (#37486) * Fri Jan 25 2008 Pixel <pixel@mandriva.com> 0.44-1mdv2008.1 + Revision: 157893 - 0.44: - library for installer: o do not force "us" keyboard on everybody that choose "English (American)" (#36575) * Wed Jan 23 2008 Pixel <pixel@mandriva.com> 0.43-1mdv2008.1 + Revision: 157017 - 0.43 - XFdrake: o if the EDID gives a valid EISA_ID, a valid 16/10 preferred resolution, but no HorizSync/VertRefresh, use a generic flat panel HorizSync/VertRefresh * Tue Jan 22 2008 Pixel <pixel@mandriva.com> 0.42-1mdv2008.1 + Revision: 156427 - 0.42: - XFdrake: o sort monitors in text mode so that "Generic|..." monitors do not appear in the middle of "Vendor|..." monitors - use SendCoreEvents instead of AlwaysCore for wacoms - mousedrake: o use udev in $PATH instead of /lib/udev/usb_id (need latest udev pkg) * Tue Jan 15 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.41-2mdv2008.1 + Revision: 152146 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Fri Dec 14 2007 Olivier Blin <oblin@mandriva.com> 0.41-1mdv2008.1 + Revision: 120129 - 0.41 - mousedrake: o use SendCoreEvents instead of AlwaysCore for Synaptics touchpads (#36140) * Mon Dec 10 2007 Pixel <pixel@mandriva.com> 0.40-1mdv2008.1 + Revision: 116878 - 0.40: - XFdrake: o never write a ModeLine when using fglrx driver (#30934) * Fri Nov 30 2007 Pixel <pixel@mandriva.com> 0.39-1mdv2008.1 + Revision: 114098 - 0.39: - keyboarddrake: o use kr(kr104) for the korean keyboard, and don't prompt for a toggle key since korean use input method instead - use /dev/input/by-id/xxx device instead of vendor+product for evdev mice (vendor+product support is dropped in x11-driver-input-evdev-1.2.0) - fix device /dev/input/by-id/usb-$ID_SERIAL-event-mouse for wacoms when the ID_SERIAL contains special chars * Thu Nov 01 2007 Anssi Hannula <anssi@mandriva.org> 0.38-1mdv2008.1 + Revision: 104691 - 0.38 o display message "This setting will be activated after the installation." only during installation (Pixel) o handle new fglrx packages with fglrx_dri.so handled by alternatives * Thu Oct 04 2007 Pixel <pixel@mandriva.com> 0.37-1mdv2008.0 + Revision: 95467 - 0.37: - if we probe a monitor EISA_ID but we don't have corresponding HorizSync/VertRefresh, we must not the monitor info - when checking dkms module packages, check that modules are either available in urpmi media, or already installed (fix detection in live) * Thu Oct 04 2007 Pixel <pixel@mandriva.com> 0.36-1mdv2008.0 + Revision: 95308 - 0.36: - better fix for typo in 0.32: don't wrongly default to "automatic" resolution when creating xorg.conf (in non --auto) (#34453) * Wed Oct 03 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.35-1mdv2008.0 + Revision: 95066 - updated translation * Mon Oct 01 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.34-1mdv2008.0 + Revision: 94300 - updated translation * Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 0.33-1mdv2008.0 + Revision: 93772 - require drakxtools >= 10.4.221 for VirtualBox detection - 0.33 - we don't set ModulesPath to DRI_GLX_SPECIAL value, so we must read it differently so that Xconfig::various::info() is correct (#31326) - add support for x11-driver-input-vboxmouse when inside a VirtualBox guest - fix typo in 0.32: don't wrongly default to "automatic" resolution when creating xorg.conf (in non --auto) * Wed Sep 26 2007 Pixel <pixel@mandriva.com> 0.32-1mdv2008.0 + Revision: 93050 - 0.32: - monitor-probe-using-X can now return EDIDs. if Xorg find an EDID (whereas monitor-get-edid-using-vbe failed), defaults to "Plug'n Play" monitor (ie let Xorg do things automatically) instead of good_default_monitor. (requires monitor-edid 1.12) - fix typo in 0.30: do not use "Automatic" resolution by default in --auto * Tue Sep 25 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.31-1mdv2008.0 + Revision: 92925 - updated translations * Tue Sep 25 2007 Pixel <pixel@mandriva.com> 0.30-1mdv2008.0 + Revision: 92836 - 0.30: - add support for "Automatic" resolution (aka "let xorg do everything") - when user asks for "Plug'n Play", silently default to Xorg auto-detection when we fail to auto-detect * Fri Sep 21 2007 Olivier Blin <oblin@mandriva.com> 0.29-1mdv2008.0 + Revision: 91806 - 0.29 - unload drivers loaded by monitor-probe-using-X (fix fglrx usage when harddrake probes using X and loads radeon driver) * Thu Sep 20 2007 Pixel <pixel@mandriva.com> 0.28-1mdv2008.0 + Revision: 91561 - 0.28: - when using evdev for mice, ensure it doesn't match a keyboard (eg: in case of a mouse+keyboard combo) (#32905) - fix regression in 0.24: remove bogus duplicates in monitors tree (#33778) * Wed Sep 19 2007 Pixel <pixel@mandriva.com> 0.27-1mdv2008.0 + Revision: 91012 - 0.27: - for evdev configured mice, specify bustype (useful for "Macintosh mouse button emulation" which has same vendor/product as "AT Translated Set 2 keyboard") (need drakxtools-backend 10.4.203) * Mon Sep 17 2007 Pixel <pixel@mandriva.com> 0.26-1mdv2008.0 + Revision: 89159 - 0.26: handle fglrx-hd2000 driver (Anssi) * Wed Sep 12 2007 Andreas Hasenack <andreas@mandriva.com> 0.25-2mdv2008.0 + Revision: 84827 - use new common pam config files for usermode/consolehelper * Mon Sep 10 2007 Pixel <pixel@mandriva.com> 0.25-1mdv2008.0 + Revision: 84000 - 0.25: - in the list of available Xorg drivers, add "Driver" from Cards+ (will ease the maintainance of the list of drivers in Xconfig/card.pm) - minimal support for allowing to choose evdev on all mice * Fri Sep 07 2007 Pixel <pixel@mandriva.com> 0.24-1mdv2008.0 + Revision: 81477 - 0.24: - do not configure XFS, it's useless - fix default_headers (ie allow XFdrake to create xorg.conf from scratch again) - keep the order from MonitorsDB file (allows "Flat Panel 800x600" to be before "Flat Panel 1024x768") (needs a nicely sorted MonitorsDB though) - correct license (GPLv2+) * Thu Sep 06 2007 Pixel <pixel@mandriva.com> 0.23-1mdv2008.0 + Revision: 80593 - 0.23: do not start xfs for the test (#33219) * Wed Aug 29 2007 Andreas Hasenack <andreas@mandriva.com> 0.22-2mdv2008.0 + Revision: 74705 - allow XFdrake to be run as root by console user with password * Mon Aug 27 2007 Pixel <pixel@mandriva.com> 0.22-1mdv2008.0 + Revision: 71952 - new release, 0.22 - do configure XFS if installed - when removing/replacing an InputDevice section, ensure we remove the corresponding entry in ServerLayout. ie do not rely on InputDevice sections to use XFdrake-compatible Identifiers (as suggested by fcrozat) - add avivo in the Xorg drivers list - handle libglx.so provided by standard.conf alternative - handle x11-driver-video-fglrx instead of ati * Wed Aug 08 2007 Pixel <pixel@mandriva.com> 0.21-1mdv2008.0 + Revision: 60556 - new release, 0.21 (conflicts with ldetect-lst < 0.1.174) - handle nvidia-current instead of nvidia97xx (thanks to Anssi) - handle x11-driver-video-$nvidia instead of $nvidia - adapt to kbd instead of console-tools: s/kmap/map/ * Fri Aug 03 2007 Pixel <pixel@mandriva.com> 0.20-1mdv2008.0 + Revision: 58638 - new release, 0.20 - fix detection of touchpad on some kernels (#31584) (need drakxtools-backend >= 10.4.145) - internal: add many options as having to be used only once, easing their use and fixing setting them (eg #31942 where one can't click "Options" after setting EXA) - drop support for installing/configuring 915resolution (no more needed since x11-driver-video-intel 2.0) - do not configure using xfs anymore (#32051) * Mon Jul 09 2007 Pixel <pixel@mandriva.com> 0.19-1mdv2008.0 + Revision: 50624 - new release, 0.19 - wacom configuration: o enhance configuration by using /dev/input/by-id/xxx (need drakxtools-backend >= 10.4.144) o add "pad" InputDevice section - fix displaying "3D hardware acceleration: no" for nvidia proprietary driver (#31326) * Thu Jun 14 2007 Pixel <pixel@mandriva.com> 0.18-1mdv2008.0 + Revision: 39296 - new release, 0.18 - handle resolution switch via xrandr without restarting X (#30896) - add 1366x768, 1360x768 and 1360x765 resolutions - add big standard resolutions (4/3, 16/10, 16/9) - [bugfix] fix test message not translated (#30261) - remove all fglrx options, hopefully default is good enough (and at least MonitorLayout option is depreacated as reported on cooker) * Tue May 15 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.17-2mdv2008.0 + Revision: 26963 - package NEWS instead of ChangeLog * Wed May 09 2007 Pixel <pixel@mandriva.com> 0.17-1mdv2008.0 + Revision: 25426 - new release, 0.17 - fix using proprietary driver (remove debug code) (thanks to Michael Altizer) * Mon Apr 30 2007 Pixel <pixel@mandriva.com> 0.16-1mdv2008.0 + Revision: 19528 - new release, 0.16 - ask "Do you wish to use proprietary driver" before installing the needed packages - don't use 1280x1024 prefered resolution (using prefered resolution only when adding explicit gtf modelines) - handle new intel driver (including migration from "i810") - workaround buggy fglrx driver: make dm restart xserver (#29550) * Wed Apr 04 2007 Pixel <pixel@mandriva.com> 0.15-1mdv2007.1 + Revision: 150608 - new release, 0.15 - drakkeyboard & rescue: fix loadkeys_files() for x86_64 - ensure VertRefresh range include 60Hz (for buggy edids, #30094) * Fri Mar 23 2007 Pixel <pixel@mandriva.com> 0.14-1mdv2007.1 + Revision: 148566 - new release, 0.14 - enable Composite by default on nvidia97xx and nvidia96xx (still disabled on nvidia71xx and fglrx) (#29445) * Thu Mar 22 2007 Pixel <pixel@mandriva.com> 0.13-1mdv2007.1 + Revision: 148018 - bug fix release, 0.13 - fix typo making installation discard nvidia driver - fix group (#29810) * Thu Mar 22 2007 Pixel <pixel@mandriva.com> 0.12-2mdv2007.1 + Revision: 147859 - new release, 0.12 - ensure ModulePath is not dropped after changing an option (#29591) * Fri Mar 16 2007 Pixel <pixel@mandriva.com> 0.11-2mdv2007.1 + Revision: 144896 - do not require X libs, it works without them - moved the require monitor-edid here from drakxtools-curses * Thu Mar 15 2007 Olivier Blin <oblin@mandriva.com> 0.11-1mdv2007.1 + Revision: 144462 - introduce pkg_name_for_Driver2 (for One generation) * Tue Mar 13 2007 Pixel <pixel@mandriva.com> 0.10-1mdv2007.1 + Revision: 142179 - remove update_menus since there is no menu file - use option AddARGBGLXVisuals when Composite is enabled on proprietary nvidia driver (cf #28779) - remove empty section Extensions after disabling Composite - ensure "/usr/lib/xorg/modules/" is removed from ModulePath (note the ending "/") - if we have some special ModulePath, ensure the last one is the standard ModulePath - requires drakxtools-curses for interactive/curses.pm (#29423) * Mon Mar 12 2007 Pixel <pixel@mandriva.com> 0.9-1mdv2007.1 + Revision: 142077 - bug fix release, 0.9: - fix typo breaking GL configuration for fglrx (#29379) - old behaviour of X auto configuration: prompt for (old school) multi-head choice instead of failing - adapt the card names to Cards+ changes (nb: this is mostly obsolete stuff, to be dropped after 2007.1) * Mon Mar 05 2007 Pixel <pixel@mandriva.com> 0.8-1mdv2007.1 + Revision: 133011 - bug fix release: - the Driver must be nvidia for nvidia drivers - remove debug code forcing GeForce - don't allow to install when ldetect-lst is not updated * Fri Mar 02 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.7-1mdv2007.1 + Revision: 131498 - handle 'nvidia97xx', 'nvidia96xx' & 'nvidia71xx' NV drivers * Thu Mar 01 2007 Pixel <pixel@mandriva.com> 0.6-1mdv2007.1 + Revision: 130553 - use ModulePath "/usr/LIB/xorg/modules/extensions/nvidia" instead of Load "/usr/LIB/xorg/modules/extensions/nvidia/libglx.so" (#28779) + Thierry Vignaud <tvignaud@mandriva.com> - bump conflict on drakxtools due to icon move * Thu Feb 08 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.5-1mdv2007.1 + Revision: 118204 - new release * Mon Jan 29 2007 Pixel <pixel@mandriva.com> 0.4-1mdv2007.1 + Revision: 114821 - bug fix release, 0.4 - keyboarddrake: make it work again (#28438) * Fri Jan 19 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.3-2mdv2007.1 + Revision: 110904 - relax requires on drakxtools; we don't need gtk+ and the like - do use translations * Fri Jan 19 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.2-1mdv2007.1 + Revision: 110843 - new release - add missing keyboard.pm & mouse.pm * Fri Jan 19 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.1-2mdv2007.1 + Revision: 110801 - buildrequire ncurses-devel - buildrequire perl-devel - add buildrequires - we are not noarch - keyboardrake, mousedrake and XFdrake are splited in their own package - add 2560x1600 (16/10) (pixel) - add plugins handling to XFdrake (pixel) - Import drakx-kbd-mouse-x11