SPECS: xorg-driver-video-nvidia-legacy3.spec (NEW) - 173.14.x series of nvi...
hawk
hawk at pld-linux.org
Thu Oct 16 09:54:09 CEST 2008
Author: hawk Date: Thu Oct 16 07:54:09 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 173.14.x series of nvidia drivers have been released as third legacy driver
---- Files affected:
SPECS:
xorg-driver-video-nvidia-legacy3.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/xorg-driver-video-nvidia-legacy3.spec
diff -u /dev/null SPECS/xorg-driver-video-nvidia-legacy3.spec:1.1
--- /dev/null Thu Oct 16 09:54:09 2008
+++ SPECS/xorg-driver-video-nvidia-legacy3.spec Thu Oct 16 09:54:04 2008
@@ -0,0 +1,362 @@
+# $Revision$, $Date$
+# TODO
+# - solve this (shouldn't there be some obsoletes?):
+# error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686
+# error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686
+#
+# Conditional build:
+%bcond_without dist_kernel # without distribution kernel
+%bcond_without kernel # without kernel packages
+%bcond_without userspace # don't build userspace programs
+%bcond_with multigl # package libGL and libglx.so in a way allowing concurrent install with nvidia/fglrx drivers
+%bcond_with verbose # verbose build (V=1)
+
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine with_userspace
+%endif
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define _enable_debug_packages 0
+%endif
+
+%define pname xorg-driver-video-nvidia-legacy3
+%define rel 1
+
+Summary: Linux Drivers for nVidia GeForce/Quadro Chips
+Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro
+Name: %{pname}%{_alt_kernel}
+Version: 173.14.12
+Release: %{rel}%{?with_multigl:.mgl}
+License: nVidia Binary
+Group: X11
+Source0: http://us.download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}-pkg1.run
+# Source0-md5: c099b6e15ef34187571403fb017d58a1
+Source1: http://us.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-pkg2.run
+# Source1-md5: 220b8dbe64d976e0045ee875cfa33c03
+Source2: %{pname}-xinitrc.sh
+Patch0: X11-driver-nvidia-GL.patch
+Patch1: X11-driver-nvidia-desktop.patch
+URL: http://www.nvidia.com/object/unix.html
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+%endif
+BuildRequires: %{kgcc_package}
+BuildRequires: rpmbuild(macros) >= 1.379
+BuildRequires: sed >= 4.0
+BuildConflicts: XFree86-nvidia
+Requires: xorg-xserver-server
+Requires: xorg-xserver-server(videodrv-abi) >= 2.0
+Requires: xorg-xserver-server(videodrv-abi) <= 4.1
+Provides: OpenGL = 2.1
+Provides: OpenGL-GLX = 1.4
+Provides: xorg-xserver-libglx
+%if %{without multigl}
+Obsoletes: Mesa
+%endif
+Obsoletes: X11-OpenGL-core < 1:7.0.0
+Obsoletes: X11-OpenGL-libGL < 1:7.0.0
+Obsoletes: XFree86-OpenGL-core < 1:7.0.0
+Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
+Obsoletes: XFree86-driver-nvidia
+Obsoletes: XFree86-nvidia
+%if %{without multigl}
+Conflicts: Mesa-libGL
+%endif
+Conflicts: XFree86-OpenGL-devel <= 4.2.0-3
+ExclusiveArch: %{ix86} %{x8664}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _noautoreqdep libGL.so.1 libGLcore.so.1
+
+%description
+This driver set adds improved 2D functionality to the Xorg X server as
+well as high performance OpenGL acceleration, AGP support, support for
+most flat panels, and 2D multiple monitor support. Supported hardware:
+modern NVIDIA GeForce (from GeForce2 MX) and Quadro (Quadro4 and up)
+based graphics accelerators.
+
+The older graphics chips are unsupported:
+- NV1 and RIVA 128/128ZX chips are supported in the base Xorg install
+ (nv driver)
+- TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 are suported by -legacy
+ drivers.
+
+%description -l pl.UTF-8
+Usprawnione sterowniki dla kart graficznych nVidia do serwera Xorg,
+dające wysokowydajną akcelerację OpenGL, obsługę AGP i wielu monitorów
+2D. Obsługują w miarę nowe karty NVIDIA GeForce (od wersji GeForce2
+MX) oraz Quadro (od wersji Quadro4).
+
+Starsze układy graficzne nie są obsługiwane przez ten pakiet:
+- NV1 i RIVA 128/128ZX są obsługiwane przez sterownik nv z Xorg
+- TNT/TNT2/GeForce 256/GeForce 2 Ultra/Quadro 2 są obsługiwane przez
+ sterowniki -legacy
+
+%package devel
+Summary: OpenGL (GL and GLX) header files
+Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX)
+Group: X11/Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Provides: OpenGL-GLX-devel = 1.4
+Provides: OpenGL-devel = 2.1
+Obsoletes: X11-OpenGL-devel-base
+Obsoletes: XFree86-OpenGL-devel-base
+Obsoletes: XFree86-driver-nvidia-devel
+Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3
+
+%description devel
+OpenGL header files (GL and GLX only) for NVIDIA OpenGL
+implementation.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL
+firmy NVIDIA.
+
+%package static
+Summary: Static XvMCNVIDIA library
+Summary(pl.UTF-8): Statyczna biblioteka XvMCNVIDIA
+Group: X11/Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static XvMCNVIDIA library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka XvMCNVIDIA.
+
+%package progs
+Summary: Tools for advanced control of nVidia graphic cards
+Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+Suggests: pkgconfig
+Obsoletes: XFree86-driver-nvidia-progs
+
+%description progs
+Tools for advanced control of nVidia graphic cards.
+
+%description progs -l pl.UTF-8
+Narzędzia do zarządzania kartami graficznymi nVidia.
+
+%package -n kernel%{_alt_kernel}-video-nvidia-legacy3
+Summary: nVidia kernel module for nVidia Architecture support
+Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung
+Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia
+Release: %{rel}@%{_kernel_ver_str}
+Group: Base/Kernel
+Requires(post,postun): /sbin/depmod
+Requires: dev >= 2.7.7-10
+%{?with_dist_kernel:%requires_releq_kernel}
+Requires: %{pname} = %{version}-%{rel}
+Provides: X11-driver-nvidia(kernel)
+Obsoletes: XFree86-nvidia-kernel
+
+%description -n kernel%{_alt_kernel}-video-nvidia-legacy3
+nVidia Architecture support for Linux kernel.
+
+%description -n kernel%{_alt_kernel}-video-nvidia-legacy3 -l de.UTF-8
+Die nVidia-Architektur-Unterstützung für den Linux-Kern.
+
+%description -n kernel%{_alt_kernel}-video-nvidia-legacy3 -l pl.UTF-8
+Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez
+sterownik nVidii dla Xorg/XFree86.
+
+%prep
+cd %{_builddir}
+rm -rf NVIDIA-Linux-x86*-%{version}-pkg*
+%ifarch %{ix86}
+/bin/sh %{SOURCE0} --extract-only
+%setup -qDT -n NVIDIA-Linux-x86-%{version}-pkg1
+%else
+/bin/sh %{SOURCE1} --extract-only
+%setup -qDT -n NVIDIA-Linux-x86_64-%{version}-pkg2
+%endif
+%patch0 -p1
+%patch1 -p1
+echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> usr/src/nv/Makefile.kbuild
+
+%build
+%if %{with kernel}
+cd usr/src/nv
+ln -sf Makefile.kbuild Makefile
+cat >> Makefile <<'EOF'
+
+$(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin
+ cp $< $@
+EOF
+mv nv-kernel.o{,.bin}
+%build_kernel_modules -m nvidia
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,extensions} \
+ $RPM_BUILD_ROOT{%{_includedir}/GL,%{_libdir},%{_bindir},%{_mandir}/man1} \
+ $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d}
+%if %{with multigl}
+install -d $RPM_BUILD_ROOT{%{_libdir}/nvidia,%{_sysconfdir}/ld.so.conf.d}
+%endif
+
+install usr/bin/nvidia-{settings,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir}
+install usr/share/man/man1/nvidia-{settings,xconfig}.* $RPM_BUILD_ROOT%{_mandir}/man1
+install usr/share/applications/nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir}
+install usr/share/pixmaps/nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh
+
+for f in \
+ usr/lib/tls/libnvidia-tls.so.%{version} \
+ usr/lib/libnvidia-cfg.so.%{version} \
+ usr/lib/libGL{,core}.so.%{version} \
+ usr/X11R6/lib/libXvMCNVIDIA.so.%{version} \
+%if %{without multigl}
+ usr/X11R6/lib/libXvMCNVIDIA.a \
+; do
+ install $f $RPM_BUILD_ROOT%{_libdir}
+done
+%else
+; do
+ install $f $RPM_BUILD_ROOT%{_libdir}/nvidia
+done
+install usr/X11R6/lib/libXvMCNVIDIA.a $RPM_BUILD_ROOT%{_libdir}
+%endif
+
+install usr/X11R6/lib/modules/extensions/libglx.so.%{version} \
+ $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions
+install usr/X11R6/lib/modules/drivers/nvidia_drv.so \
+ $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers
+install usr/X11R6/lib/modules/libnvidia-wfb.so.%{version} \
+ $RPM_BUILD_ROOT%{_libdir}/xorg/modules
+
+install usr/include/GL/*.h $RPM_BUILD_ROOT%{_includedir}/GL
+
+ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.so
+
+%if %{with multigl}
+echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
+
+# OpenGL ABI for Linux compatibility
+ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1
+ln -sf nvidia/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
+
+ln -sf nvidia/libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so
+ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1
+%else
+# OpenGL ABI for Linux compatibility
+ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libGL.so.1
+ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
+
+ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so
+ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA_dynamic.so.1
+%endif
+%endif
+
+%if %{with kernel}
+%install_kernel_modules -m usr/src/nv/nvidia -d misc
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+cat << 'EOF'
+NOTE: You must also install kernel module for this driver to work
+ kernel-video-nvidia-%{version}
+ kernel-desktop-video-nvidia-%{version}
+ kernel-laptop-video-nvidia-%{version}
+ kernel-vanilla-video-nvidia-%{version}
+
+Depending on which kernel brand you use.
+
+EOF
+%if %{with multigl}
+if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then
+ ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so
+fi
+%endif
+
+%postun -p /sbin/ldconfig
+
+%post -n kernel%{_alt_kernel}-video-nvidia-legacy3
+%depmod %{_kernel_ver}
+
+%postun -n kernel%{_alt_kernel}-video-nvidia-legacy3
+%depmod %{_kernel_ver}
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE
+%doc usr/share/doc/{README.txt,NVIDIA_Changelog,XF86Config.sample,html}
+%if %{with multigl}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia.conf
+%dir %{_libdir}/nvidia
+%attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1
+%attr(755,root,root) %{_libdir}/nvidia/libGLcore.so.*.*
+%attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA.so.*.*
+%attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1
+%attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.*
+%attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.*
+%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.*
+%ghost %{_libdir}/xorg/modules/extensions/libglx.so
+%else
+%attr(755,root,root) %{_libdir}/libGL.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libGL.so.1
+# symlink for binary apps which fail to conform Linux OpenGL ABI
+# (and dlopen libGL.so instead of libGL.so.1)
+%attr(755,root,root) %{_libdir}/libGL.so
+%attr(755,root,root) %{_libdir}/libGLcore.so.*.*
+%attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so.*.*
+%attr(755,root,root) %{_libdir}/libXvMCNVIDIA_dynamic.so.1
+%attr(755,root,root) %{_libdir}/libnvidia-cfg.so.*.*
+%attr(755,root,root) %{_libdir}/libnvidia-tls.so.*.*
+%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so*
+%endif
+%attr(755,root,root) %{_libdir}/xorg/modules/libnvidia-wfb.so.*.*
+%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so
+%dir %{_includedir}/GL
+%{_includedir}/GL/gl.h
+%{_includedir}/GL/glext.h
+%{_includedir}/GL/glx.h
+%{_includedir}/GL/glxext.h
+%if %{with multigl}
+%attr(755,root,root) %{_libdir}/libGL.so
+%endif
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libXvMCNVIDIA.a
+
+%files progs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/nvidia-settings
+%attr(755,root,root) %{_bindir}/nvidia-xconfig
+%attr(755,root,root) %{_bindir}/nvidia-bug-report.sh
+%attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh
+%{_desktopdir}/nvidia-settings.desktop
+%{_mandir}/man1/nvidia-*
+%{_pixmapsdir}/nvidia-settings.png
+%endif
+
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-video-nvidia-legacy3
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+%endif
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/10/16 07:54:04 hawk
+- 173.14.x series of nvidia drivers have been released as third legacy driver
+
================================================================
More information about the pld-cvs-commit
mailing list