Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1576925
 поиск   регистрация   авторизация 
 
Группа :: Система/Ядро и оборудование
Пакет: kernel-modules-nvidia-std-up

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define module_name nvidia
%define module_version 6629
%define module_release alt1.M24.13

%define upstream_module_name NVIDIA_kernel

%define kversion 2.4.26
%define krelease alt13
%define flavour std-up

%define base_arch %(echo %_target_cpu | sed 's/i.86/i386/;s/athlon/i386/')

%define module_dir /lib/modules/%kversion-%flavour-%krelease/nVidia


Summary: nVidia video card drivers
Name: kernel-modules-%module_name-%flavour
Version: 1.0.%module_version
Release: %module_release
License: Proprietary
Group: System/Kernel and hardware

Patch1: vmalloc-reserve.patch

# http://www.nvnews.net/vbulletin/showthread.php?t=42964

Patch2: NVIDIA_kernel-1.0-6629-1165235.diff
Patch3: NVIDIA_kernel-1.0-6629-1171869.diff

Packager:       Andrei Bulava <abulava at altlinux.ru>

ExclusiveOS: Linux
URL: http://www.nvidia.com

BuildRequires: kernel-build-tools >= 0.7
BuildRequires: kernel-headers-modules-%flavour = %kversion-%krelease
BuildRequires: kernel-source-%module_name-%module_version

Provides:   kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release

Prereq: coreutils
Prereq: modutils
Prereq:         kernel-image-%flavour = %kversion-%krelease
Requires(postun): kernel-image-%flavour = %kversion-%krelease
ExclusiveArch: %ix86
Provides:       NVIDIA_kernel = %version

%description
nVidia video card drivers that provide 3d and 2d graphics support for XFree86
Xserver.

%prep
rm -rf kernel-source-%module_name-%module_version
tar -jxvf %_usrsrc/kernel/sources/kernel-source-%module_name-%module_version.tar.bz2
%setup -D -T -n kernel-source-%module_name-%module_version

%__rm -f makefile
%__ln_s Makefile.kbuild Makefile
%patch1 -p1

%if "%kversion" >= "2.6.10"
%patch2 -p3
%patch3 -p3
%endif

%build
%make_build -C %_usrsrc/linux-%kversion-%flavour modules \
SUBDIRS=$PWD TEMP_DIR=$PWD/ \
SYSSRC=%_usrsrc/linux-%kversion-%flavour

%install
mkdir -p $RPM_BUILD_ROOT/%module_dir
%if "%kversion" <= "2.6.0"
install -p -m644 nvidia.o $RPM_BUILD_ROOT/%module_dir
%else
install -p -m644 nvidia.ko $RPM_BUILD_ROOT/%module_dir
%endif

%post
%post_kernel_modules %kversion-%flavour-%krelease

%postun
%postun_kernel_modules %kversion-%flavour-%krelease

%files
%defattr(644,root,root,755)
%module_dir

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005