%define _nv_ver 1.0
%define _nv_rel 6111
%define _min_x11 6.7.0
-%define _rel 1
+%define _rel 4
#
Summary: Linux Drivers for nVidia TNT/TNT2/GeForce/Quadro Chips
Summary(pl): Sterowniki do kart graficznych nVidia TNT/TNT2/GeForce/Quadro
Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86_64-%{_nv_ver}-%{_nv_rel}-pkg2.run
# Source1-md5: 6c7b0c8b3ce5c34186e0c80042e6d046
Patch0: %{name}-gcc34.patch
+Patch1: %{name}-GL.patch
URL: http://www.nvidia.com/object/linux.html
BuildConflicts: XFree86-nvidia
BuildRequires: grep
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
+%{?with_dist_kernel:BuildRequires: kernel-source >= 2.6.7}
BuildRequires: %{kgcc_package}
BuildRequires: rpmbuild(macros) >= 1.153
BuildRequires: sed >= 4.0
%setup -qDT -n NVIDIA-Linux-x86_64-%{_nv_ver}-%{_nv_rel}-pkg2
%endif
%patch0 -p1
+%patch1 -p1
sed -i 's:-Wpointer-arith::' usr/src/nv/Makefile.kbuild
%build
%clean
rm -rf $RPM_BUILD_ROOT
-%post
+%post
/sbin/ldconfig
cat << EOF
* *
* NOTE: *
* You must install: *
- * kernel-video-nvidia-%{version}-%{release} *
- * for this driver to work correctly *
+ * kernel(24)(-smp)-video-nvidia-%{version} *
+ * for this driver to work *
* *
*******************************************************