%bcond_without kernel # without kernel packages
%bcond_with verbose # verbose build (V=1)
%bcond_with tls # install libraries with tls support
+%bcond_with nptl # implies TLS support
+#
+%if %{with nptl}
+%define with_tls 1
+%endif
#
%define _nv_ver 1.0
%define _nv_rel 6629
%define _min_x11 6.7.0
-%define _rel 0.1
+%define _rel 1
#
Summary: Linux Drivers for nVidia TNT/TNT2/GeForce/Quadro Chips
Summary(pl): Sterowniki do kart graficznych nVidia TNT/TNT2/GeForce/Quadro
# why not pkg0!?
Source0: http://download.nvidia.com/XFree86/Linux-x86/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-pkg1.run
# Source0-md5: f7737c1e95371f37a4fd30da2f11e72c
-# Source0-size: 8167999
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: 652e69f549c81a7a3f2806daa74b9c36
-# Source1-size: 7333486
Patch0: %{name}-gcc34.patch
Patch1: %{name}-GL.patch
+Patch2: %{name}-conftest.patch
URL: http://www.nvidia.com/object/linux.html
BuildConflicts: XFree86-nvidia
BuildRequires: grep
%endif
%patch0 -p1
%patch1 -p1
+%patch2 -p1
sed -i 's:-Wpointer-arith::' usr/src/nv/Makefile.kbuild
%build
%{__make} -C %{_kernelsrcdir} clean \
RCS_FIND_IGNORE="-name '*.ko' -o -name nv-kernel.o -o" \
SYSSRC=%{_kernelsrcdir} \
- SYSOUT=`pwd` \
+ SYSOUT=$PWD \
M=$PWD O=$PWD \
%{?with_verbose:V=1}
%{__make} -C %{_kernelsrcdir} modules \
CC="%{__cc}" CPP="%{__cpp}" \
SYSSRC=%{_kernelsrcdir} \
- SYSOUT=`pwd` \
+ SYSOUT=$PWD \
M=$PWD O=$PWD \
%{?with_verbose:V=1}
mv nvidia.ko nvidia-$cfg.ko