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

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

%define _x11man1dir %_x11mandir/man1
%define _pixmapsdir %_datadir/pixmaps

%define drvs modules/drivers
%define dris modules/dri
%define lnxs modules/linux
%define ati_rel 1

Name: fglrx_glx
Version: 8.18.6
Release: alt0.M24.1

Summary: ATI drivers for Radeon and Fire GL
Group: System/Kernel and hardware

URL: http://www.ati.com/
License: Proprietary

Provides: libGL

Source0: fglrx_4_3_0-%version-%ati_rel.i386.rpm

Source10: fireglcontrol.menu

Patch1: fglrx-3.11.1-fglrx_gamma.patch

Patch100: fglrx-3.2.8-agp-sis.patch
Patch101: fglrx-3.2.8-via-agp2.patch
Patch102: fglrx-3.2.8-nvidia-nforce.patch
Patch103: fglrx-3.7.6-agp-sis-fix.patch
Patch104: fglrx-3.7.6-sis-agp3-support.patch

Patch112: fglrx-8.10.19-module_param-2.6.x-warn_cleanup.patch

# Automatically added by buildreq on Fri May 27 2005

BuildRequires: XFree86-devel XFree86-libs cpio fontconfig freetype2 gcc-c++ gzip-utils libqt3-devel libstdc++-devel xpm-devel

BuildPreReq: kernel-build-tools

%description
Proprietary ATI drivers for Radeon and Fire GL cards.

%package -n fglrx-tools
Summary: Utilities for ATI Radeon and Fire GL drivers
Group: System/Configuration/Hardware
Requires: %name = %version-%release

%description -n fglrx-tools
ATI FireGL/Radeon configuration utilities:

fireglcontrol is [intended to be] a full-blown ATI graphics card
configuration panel similar to those in Microsoft(R) Windows(TM).

fglrxinfo is an analogue for glxinfo.

fglrxconfig is a replacement for xf86config. NOTE: USE WITH CAUTION!!!
This tool will erase your current XF86Config without making a backup
copy!

fglrx_xgamma is a small tool to adjust gamma.

%package -n kernel-source-fglrx-%version
Summary: Linux fglrx (Radeon/Fire GL video card driver) module sources
Group: Development/Kernel

%description -n kernel-source-fglrx-%version
fglrx (Radeon/Fire GL video card driver) module sources for Linux kernel.

%prep
%setup -T -c
rpm2cpio %SOURCE0 | %__cpio -idmv --no-absolute-filenames --no-preserve-owner
%setup -D -T

pushd lib/modules/fglrx/build_mod
%__rm -f make.sh
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch112 -p0

find . -type f -name '*.orig' -delete
cd ..
%__mv build_mod kernel-source-fglrx-%version
%__tar -cj -f ../../../kernel-source-fglrx-%version.tar.bz2 \
kernel-source-fglrx-%version
popd

%__mkdir fglrx_panel
pushd fglrx_panel
%__tar -xz -f ../usr/src/ATI/fglrx_panel_sources.tgz
# Comment out QApplication::setStyle - it don't work anyway
%__subst 's/QApplication::setStyle/\/\/QApplication::setStyle/' main.cpp

popd

%__mkdir fglrx_tools
pushd fglrx_tools
%__tar -xz -f ../usr/src/ATI/fglrx_sample_source.tgz
%patch1 -p1 -b .fglrx_gamma
popd

%setup -D -T

# remove precompiled fglrxcontrol binaries

%__rm -f usr/X11R6/bin/*.bz2

%build
#chrpath -d usr/X11R6/bin/* usr/X11R6/lib/*.so* usr/X11R6/lib/modules/*/*.so*

pushd fglrx_panel
%make QTDIR=/usr/lib/qt3 \
LIBS="-L/usr/lib/qt3/lib -lqt -L/usr/X11R6/lib -lXxf86vm"
popd

pushd fglrx_tools/lib/fglrx_gamma
xmkmf
%make
%__rm -f libfglrx_gamma.so*
popd

pushd fglrx_tools/programs/fglrx_gamma
xmkmf
%make
popd



%install
%set_strip_method executable,shared
%set_verify_elf_method textrel=relaxed,rpath=strict

%__mkdir_p %buildroot%_x11bindir
%__mkdir_p %buildroot%_x11libdir/%drvs
%__mkdir_p %buildroot%_x11libdir/%dris
%__mkdir_p %buildroot%_x11libdir/%lnxs
%__mkdir_p %buildroot%_x11includedir/X11/extensions
%__mkdir_p %buildroot%_x11man1dir
%__mkdir_p %buildroot%_menudir
%__mkdir_p %buildroot%_iconsdir
%__mkdir_p %buildroot%_pixmapsdir
%__mkdir_p %buildroot%_sysconfdir

%__mkdir_p %kernel_srcdir

%__install -p -m644 usr/X11R6/lib/%drvs/fglrx_drv.o \
%buildroot%_x11libdir/%drvs/
%__install -p -m644 usr/X11R6/lib/%dris/fglrx_dri.so \
%buildroot%_x11libdir/%dris/
%__install -p -m644 usr/X11R6/lib/%dris/atiogl_a_dri.so \
%buildroot%_x11libdir/%dris/
%__install -p -m644 usr/X11R6/lib/%lnxs/libfglrxdrm.a \
%buildroot%_x11libdir/%lnxs/

%__install -p -m644 usr/X11R6/lib/libGL.so.1.2 \
%buildroot%_x11libdir/libGL.so.fglrx
%__install -p -m644 usr/X11R6/lib/libfglrx_pp.so.1.0 \
%buildroot%_x11libdir
#%__install -p -m644 usr/X11R6/lib/*gamma* %buildroot%_x11libdir/
#%__install -p -m644 usr/X11R6/include/X11/extensions/fglrx_gamma.h \
# %buildroot%_x11includedir/X11/extensions/

pushd fglrx_tools/programs/fglrx_gamma
%__make install DESTDIR=%buildroot
popd

%__install -p usr/X11R6/bin/aticonfig %buildroot%_x11bindir/
%__install -p usr/X11R6/bin/fgl_glxgears %buildroot%_x11bindir/
%__install -p usr/X11R6/bin/fglrxconfig %buildroot%_x11bindir/
%__install -p usr/X11R6/bin/fglrxinfo %buildroot%_x11bindir/
%__install -p fglrx_panel/fireglcontrol %buildroot%_x11bindir/
#%__install -p fglrx_tools/programs/fglrx_gamma/fglrx_xgamma \
# %buildroot%_x11bindir/
#%__install -p -m644 fglrx_tools/programs/fglrx_gamma/fglrx_xgamma.man \
# %buildroot%_x11man1dir/fglrx_xgamma.1
%__install -p -m644 fglrx_panel/ati.xpm %buildroot%_iconsdir/
%__install -p -m644 fglrx_panel/ati.xpm %buildroot%_pixmapsdir/
%__install -p -m644 %SOURCE10 %buildroot%_menudir/fireglcontrol

%__install -p -m644 kernel-source-fglrx-%version.tar.bz2 %kernel_srcdir/

%__install -p -m644 etc/fglrx* %buildroot%_sysconfdir

%post
%post_ldconfig

%postun
%postun_ldconfig

%post -n fglrx-tools
%update_menus

%postun -n fglrx-tools
%clean_menus

%files
%_x11libdir/%drvs/*
%_x11libdir/%lnxs/*
%_x11libdir/%dris/*
%_x11libdir/libGL.so.fglrx
%_x11libdir/libfglrx_pp.*
#%_x11libdir/*gamma*
#%attr(0644,root,root) %_x11includedir/X11/extensions/*
%doc usr/share/doc/fglrx/*
%_sysconfdir/*

%files -n fglrx-tools
%_x11bindir/*
%_iconsdir/*
%_pixmapsdir/*
%_menudir/*
#%_x11man1dir/*

%files -n kernel-source-fglrx-%version
%_usrsrc/*

%changelog

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

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