# # spec file for package nvidia-gfxG02 (Version 177.80) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # nodebuginfo Name: nvidia-gfxG02 ExclusiveArch: %ix86 x86_64 BuildRequires: kernel-source kernel-syms module-init-tools License: Any permissive Group: System/Kernel Summary: NVIDIA graphics driver kernel module for GeForce 6xxx and newer GPUs Version: 177.80 Release: 2 Source0: http://download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}-pkg1.run Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-pkg2.run Source2: files Source3: preamble Source4: pci_ids-%{version} Source5: pci_ids-%{version}.new Source6: fetch.sh Source7: README #Source8: uname.sh NoSource: 0 NoSource: 1 NoSource: 6 NoSource: 7 Patch1: nv-fix-gartaddr-xen.diff Patch2: nv-fix-gartaddr-xen-disable_pat.diff Patch3: nv_pci_table.diff Patch4: NVIDIA_kernel-1.0-9625-NOSMBUS.diff.txt Patch5: NVIDIA_kernel-2.6.25.diff Patch6: conftest.sh.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %suse_kernel_module_package -p %_sourcedir/preamble -f %_sourcedir/files kdump um xen xenpae debug %description NVIDIA graphics driver kernel module for GeForce 6xxx and newer GPUs Authors: -------- NVIDIA %package KMP License: Any permissive Summary: NVIDIA graphics driver kernel module for GeForce 6xxx and newer GPUs Group: System/Kernel %description KMP NVIDIA graphics driver kernel module for GeForce 6xxx and newer GPUs Authors: -------- NVIDIA %prep %setup -T -c %{name}-%{version} %ifarch %ix86 sh %{SOURCE0} -x %endif %ifarch x86_64 sh %{SOURCE1} -x %endif rm -rf NVIDIA-Linux-x86*-%{version}-*/usr/src/nv/precompiled mkdir -p source/%{version} cp NVIDIA-Linux-x86*-%{version}-*/usr/src/nv/* source/%{version} || : pushd source/%{version} # mark support as external echo "nvidia.ko external" > Module.supported ln -s Makefile.kbuild Makefile #patch -p0 -s < %_sourcedir/nv_pci_table.diff #patch -p3 -s < %_sourcedir/NVIDIA_kernel-1.0-9625-NOSMBUS.diff.txt # Bugs 372085 #%if %suse_version > 1100 # for i in $((cat %_sourcedir/pci_ids-%{version}; \ #%else # for i in $((cat %_sourcedir/pci_ids-%{version}.new; \ #%endif # ) | awk '{print $1}' | \ # tr [[:upper:]] [[:lower:]] | sort -u | \ # grep -v -i -E "^0x(0409)" \ # ); do # echo " ID($i),"; # done > pci_ids.h #patch -p4 -s < %_sourcedir/nv-fix-gartaddr-xen.diff #patch -p4 -s < %_sourcedir/nv-fix-gartaddr-xen-disable_pat.diff #%patch5 #%if %suse_version < 1020 #%patch6 #%endif popd mkdir obj %build export EXTRA_CFLAGS='-DVERSION=\"%version\"' %if %suse_version <= 1020 export SYSSRC=/usr/src/linux %endif for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor #%if %suse_version < 1110 # if [ ! -f /bin/uname.bin ]; then # echo "*** Using own uname fake, since it's not available in buildservice :-( ***" # cp %_sourcedir/uname.sh %_sourcedir/uname # chmod 755 %_sourcedir/uname # export PATH=%_sourcedir:$PATH # fi #%endif #cd NVIDIA-Linux-x86*-%{version}-*/usr/src/nv/ #make module make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=$PWD/obj/$flavor/%{version} done %install export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates export SYSSRC=/usr/src/linux for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor/%{version} done %changelog * Fri Oct 17 2008 olh@suse.de - add ExclusiveArch x86 x86_64 * Wed Oct 08 2008 sndirsch@suse.de - release 177.80 * Added support for GeForce 9500 GT * Fixed a regression that caused the 'Auto' SLI X option setting to not enable SLI. * Fixed a bug that caused system hangs when using the NV-CONTROL interface to change GPU clock frequencies. * Updated mode validation, in cases when no EDID is detected, such that 1024x768 @ 60Hz and 800x600 @ 60Hz are allowed, rather than just 640x480 @ 60Hz. * Fixed corruption when using SLI in SFR mode with OpenGL-based composite managers. * Added a workaround for broken EDIDs provided by some Acer AL1512 monitors. * Updated the X driver to consider /sys/class/power_supply when determining the AC power state. * Wed Sep 24 2008 sndirsch@suse.de - release 177.76 * Added support for the following new GPUs: GeForce 9500 GT * Fixed a bug that caused GPU errors when applications used the X RENDER extension's repeating modes in conjunction with color-index overlays or rotation on GeForce 7 series and older GPUs. * Fixed a bug that caused system hangs when using the NV-CONTROL interface to change GPU clock frequencies. * Fixed a text rendering performance regression on GeForce 7 series and older GPUs when InitialPixmapPlacement is set to 2. * Updated mode validation, in cases when no EDID is detected, such that 1024x768 @ 60Hz and 800x600 @ 60Hz are allowed, rather than just 640x480 @ 60Hz. * Improved power management support. * Improved compatibility with recent Linux 2.6 kernels. * Fixed a regression that caused the 'Auto' SLI X option setting to not enable SLI. * Added a workaround for broken EDIDs provided by some Acer AL1512 monitors. * Sun Aug 31 2008 sndirsch@suse.de - created package