Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37750279
en ru br
Репозитории ALT
5.1: 2.1.16-alt1
4.1: 2.1.10-alt0.M41.1
www.altlinux.org/Changes

Группа :: Система/X11
Пакет: xorg-drv-nv

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

%define _modulesdir %_libdir/X11/modules
%define _hwdatadir %_datadir/hwdatabase/videoaliases
%define _fdidir %_datadir/hal/fdi/policy/20thirdparty

Name: xorg-drv-nv
Version: 2.1.16
Release: alt1
Serial:1
Summary: NVIDIA video driver
License: MIT/X11
Group: System/X11
Url: http://xorg.freedesktop.org
Packager: Valery Inozemtsev <shrek at altlinux.ru>

PreReq: xorg-extensions-glx
Requires: XORG_ABI_VIDEODRV = %get_xorg_abi_videodrv
Provides: xorg-x11-drv-nv = %serial:%version-%release
Obsoletes: xorg-x11-drv-nv

Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires(Pre): xorg-sdk

%description
nv  is  an  Xorg  driver for NVIDIA video cards.  The driver
supports 2D acceleration and provides support for the following  frame-
buffer depths: 8, 15, 16 (except Riva128) and 24.  All visual types are
supported for depth 8, TrueColor and DirectColor visuals are  supported
for  the other depths with the exception of the Riva128 which only sup-
ports TrueColor in the higher depths.

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
--with-xorg-module-dir=%_modulesdir \
--disable-static

%make_build

%install
%make DESTDIR=%buildroot install

mkdir -p %buildroot%_hwdatadir
sed -ne 's|^[[:space:]].*\ 0x1\([0-2]\)D\([2E]\)\([0-9A-F]*\).*"\(.*\)\".*|alias pcivideo:v00001\1D\2d0000\3sv*sd*bc*sc*i* nv\t# \4|p' src/nv_driver.c \
> %buildroot%_hwdatadir/nv.xinf
mkdir -p %buildroot%_fdidir
sh xinf2fdi -x %buildroot%_hwdatadir/nv.xinf -f %buildroot%_fdidir/20-x11-video-nv.fdi -d nv

%triggerin -- xorg-x11-drv-nv <= 1:2.0.0-alt1
if [ -r %_sysconfdir/X11/xorg.conf ]; then
subst 's|Driver\(.*\)\"\(riva128\)\"|Driver\1"nv"|' %_sysconfdir/X11/xorg.conf
fi

%files
%_modulesdir/drivers/*.so
%dir %_hwdatadir
%_hwdatadir/*.xinf
%_fdidir/20-x11-video-nv.fdi
%_man4dir/*

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin