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

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

%define module_name fglrx
%define module_version 8.18.6
%define module_release alt1.132122.13

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

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


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

Packager:       Kernel Maintainer Team <kernel at packages.altlinux.org>

ExclusiveOS: Linux
URL: http://www.schneider-digital.de/html/body_download_ati.html
BuildRequires: kernel-build-tools >= 0.7
BuildRequires: kernel-headers-modules-%flavour = %kversion-%krelease
BuildRequires: kernel-headers-%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

%description
Drivers for Linux Fire GL X1/Z1/E1/8800/8700/9000/9700/9800 RADEON
for Xfree86 4.3.x.

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

%build

. %_usrsrc/linux-%kversion-%flavour/gcc_version.inc

%if "%kversion" < "2.6.0"

#build for 2.4 kernel

if grep -qs '#define.*CONFIG_SMP.*1' %_includedir/linux-%kversion-%flavour/include/linux/autoconf.h ; then
def_smp="-D__SMP__"
else
def_smp=""
fi

%define fglrx_gcc gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wpointer-arith -O2  -D__KERNEL__ -DMODULE -DMODVERSIONS -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_CUSTOM_MODULE -D__AGP__ -DPAGE_ATTR_FIX=1 -I. -I%_includedir/linux-%kversion-%flavour/include -include %_includedir/linux-%kversion-%flavour/include/linux/modversions.h $def_smp

%fglrx_gcc -c agpgart_be.c -o agpgart_be.o
%fglrx_gcc -c nvidia-agp.c -o nvidia-agp.o
%fglrx_gcc -c agp3.c -o agp3.o
%fglrx_gcc -c i7505-agp.c -o i7505-agp.o
%fglrx_gcc -c firegl_public.c -o firegl_public.o
ld -r firegl_public.o agpgart_be.o agp3.o i7505-agp.o nvidia-agp.o \
   libfglrx_ip.a.GCC%__gcc_version_major -o fglrx.o

%else

#build for 2.6 kernel


%__ln_s ./2.6.x/Makefile ./Makefile
%make_build TEMP_DIR=$PWD/ -C %_usrsrc/linux-%kversion-%flavour modules \
SUBDIRS=$PWD GCC_VER_MAJ=`echo "$GCC_VERSION" | sed 's/^\([0-9]\+\).*/\1/'`

%endif

%install
mkdir -p $RPM_BUILD_ROOT/%module_dir
%if "%kversion" < "2.6.0"
install -p -m644 fglrx.o $RPM_BUILD_ROOT/%module_dir
%else
install -p -m644 fglrx.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