SPECS: xorg-driver-video-nvidia-legacy2.spec (NEW) - new - graphic...
blekot
blekot at pld-linux.org
Sun Apr 8 16:16:10 CEST 2007
Author: blekot Date: Sun Apr 8 14:16:10 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
- graphics card should be included in description (I don't know where I can find it)
- works for me
---- Files affected:
SPECS:
xorg-driver-video-nvidia-legacy2.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/xorg-driver-video-nvidia-legacy2.spec
diff -u /dev/null SPECS/xorg-driver-video-nvidia-legacy2.spec:1.1
--- /dev/null Sun Apr 8 16:16:10 2007
+++ SPECS/xorg-driver-video-nvidia-legacy2.spec Sun Apr 8 16:16:05 2007
@@ -0,0 +1,378 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without dist_kernel # without distribution kernel
+%bcond_without smp # without smp packages
+%bcond_without kernel # without kernel packages
+%bcond_without incall # include all tarballs
+%bcond_without userspace # don't build userspace programs
+%bcond_with verbose # verbose build (V=1)
+#
+%define no_install_post_strip 1
+#
+%define _nv_ver 1.0
+%define _nv_rel 9631
+%define _min_x11 6.7.0
+%define _rel 1
+#
+%define need_x86 0
+%define need_x8664 0
+%if %{with incall}
+%define need_x86 1
+%define need_x8664 1
+%else
+%ifarch %{ix86}
+%define need_x86 1
+%endif
+%ifarch %{x8664}
+%define need_x8664 1
+%endif
+%endif
+#
+Summary: Linux Drivers for nVidia TNT/TNT2/GeForce/Quadro Chips
+Summary(pl): Sterowniki do kart graficznych nVidia TNT/TNT2/GeForce/Quadro
+Name: xorg-driver-video-legacy2
+Version: %{_nv_ver}.%{_nv_rel}
+Release: %{_rel}
+License: nVidia Binary
+Group: X11
+%if %{need_x86}
+Source0: http://download.nvidia.com/XFree86/Linux-x86/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-pkg1.run
+# Source0-md5: 3676f622897d22f1815365b44139899e
+%endif
+%if %{need_x8664}
+Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86_64-%{_nv_ver}-%{_nv_rel}-pkg2.run
+# Source1-md5: 64b88c6f405e7f2dd1607c0062c0c1f3
+%endif
+Source2: X11-driver-nvidia-settings.desktop
+Source3: X11-driver-nvidia-xinitrc.sh
+
+Patch0: X11-driver-nvidia-GL.patch
+Patch1: X11-driver-nvidia-desktop.patch
+URL: http://www.nvidia.com/object/linux.html
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
+%endif
+BuildRequires: %{kgcc_package}
+BuildRequires: rpmbuild(macros) >= 1.308
+BuildRequires: sed >= 4.0
+BuildConflicts: XFree86-nvidia
+Requires: xorg-xserver-server
+Provides: OpenGL = 1.4
+Provides: OpenGL-GLX
+Provides: X11-OpenGL-core
+Provides: X11-OpenGL-libGL
+Provides: XFree86-OpenGL-core
+Provides: XFree86-OpenGL-libGL
+Provides: xorg-xserver-modules-libglx
+Obsoletes: Mesa
+Obsoletes: Mesa-libGL
+Obsoletes: X11-OpenGL-core
+Obsoletes: X11-OpenGL-libGL
+Obsoletes: XFree86-OpenGL-core
+Obsoletes: XFree86-OpenGL-libGL
+Obsoletes: XFree86-driver-nvidia
+Obsoletes: XFree86-nvidia
+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/XFree86 X
+server as well as high performance OpenGL acceleration, AGP support,
+support for most flat panels, and 2D multiple monitor support.
+
+This driver works with nVidia graphics which requres never drivers
+than legacy but doesn't work with fresh ones.
+
+%description -l pl
+Usprawnione sterowniki dla kart graficznych nVidia do serwera
+Xorg/XFree86, daj±ce wysokowydajn± akceleracjê OpenGL, obs³ugê AGP i
+wielu monitorów 2D.
+
+Sterowniki obs³uguj± karty, które wymagaj± sterowników nowszych ni¿
+w pakiecie legacy, a nie s± obs³ugiwane przez najnowsze sterowniki.
+
+Obs³uguj± karty nVidia TNT/TNT2/GeForce/Quadro do serwera
+Xorg/XFree86; Karty nVidia NV1 i Riva 128/128ZX s± obs³ugiwane przez
+sterownik nv z pakietów Xorg/XFree8 - NIE s± obs³ugiwane przez ten
+pakiet.
+
+%package devel
+Summary: OpenGL for X11R6 development (only gl?.h)
+Summary(pl): Pliki nag³ówkowe OpenGL dla systemu X11R6 (tylko gl?.h)
+Group: X11/Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Provides: OpenGL-GLX-devel
+Provides: OpenGL-devel = 1.5
+Provides: OpenGL-devel-base
+Obsoletes: OpenGL-devel-base
+Obsoletes: XFree86-driver-nvidia-devel
+Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3
+
+%description devel
+Base headers (only gl?.h) for OpenGL for X11R6 for nvidia drivers.
+
+%description devel -l pl
+Podstawowe pliki nag³ówkowe (tylko gl?.h) OpenGL dla systemu X11R6 dla
+sterowników nvidii.
+
+%package progs
+Summary: Tools for advanced control of nVidia graphic cards
+Summary(pl): Narzêdzia do zarz±dzania kartami graficznymi nVidia
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+Obsoletes: XFree86-driver-nvidia-progs
+
+%description progs
+Tools for advanced control of nVidia graphic cards.
+
+%description progs -l pl
+Narzêdzia do zarz±dzania kartami graficznymi nVidia.
+
+%package -n kernel%{_alt_kernel}-video-nvidia
+Summary: nVidia kernel module for nVidia Architecture support
+Summary(de): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung
+Summary(pl): Modu³ j±dra dla obs³ugi kart graficznych nVidia
+Version: %{_nv_ver}.%{_nv_rel}
+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_up}
+Provides: X11-driver-nvidia(kernel)
+Obsoletes: XFree86-nvidia-kernel
+
+%description -n kernel%{_alt_kernel}-video-nvidia
+nVidia Architecture support for Linux kernel.
+
+%description -n kernel%{_alt_kernel}-video-nvidia -l de
+Die nVidia-Architektur-Unterstützung für den Linux-Kern.
+
+%description -n kernel%{_alt_kernel}-video-nvidia -l pl
+Obs³uga architektury nVidia dla j±dra Linuksa. Pakiet wymagany przez
+sterownik nVidii dla Xorg/XFree86.
+
+%package -n kernel%{_alt_kernel}-smp-video-nvidia
+Summary: nVidia kernel module for nVidia Architecture support
+Summary(de): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung
+Summary(pl): 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_smp}
+Provides: X11-driver-nvidia(kernel)
+Obsoletes: XFree86-nvidia-kernel
+
+%description -n kernel%{_alt_kernel}-smp-video-nvidia
+nVidia Architecture support for Linux kernel SMP.
+
+%description -n kernel%{_alt_kernel}-smp-video-nvidia -l de
+Die nVidia-Architektur-Unterstützung für den Linux-Kern SMP.
+
+%description -n kernel%{_alt_kernel}-smp-video-nvidia -l pl
+Obs³uga architektury nVidia dla j±dra Linuksa SMP. Pakiet wymagany
+przez sterownik nVidii dla Xorg/XFree86.
+
+%prep
+cd %{_builddir}
+rm -rf NVIDIA-Linux-x86*-%{_nv_ver}-%{_nv_rel}-pkg*
+%ifarch %{ix86}
+/bin/sh %{SOURCE0} --extract-only
+%setup -qDT -n NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-pkg1
+%else
+/bin/sh %{SOURCE1} --extract-only
+%setup -qDT -n NVIDIA-Linux-x86_64-%{_nv_ver}-%{_nv_rel}-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
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
+ if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
+ exit 1
+ fi
+ rm -rf o
+ install -d o/include/linux
+ ln -sf %{_kernelsrcdir}/config-$cfg o/.config
+ ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
+ ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
+%if %{with dist_kernel}
+ %{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+%else
+ touch o/include/config/MARKER
+ ln -sf %{_kernelsrcdir}/scripts o/scripts
+%endif
+ %{__make} -C %{_kernelsrcdir} clean \
+ RCS_FIND_IGNORE="-name '*.ko' -o -name nv-kernel.o -o" \
+ SYSSRC=%{_kernelsrcdir} \
+ SYSOUT=$PWD/o \
+ M=$PWD O=$PWD/o \
+ %{?with_verbose:V=1}
+ %{__make} -C %{_kernelsrcdir} modules \
+ CC="%{__cc}" CPP="%{__cpp}" \
+ SYSSRC=%{_kernelsrcdir} \
+ SYSOUT=$PWD/o \
+ M=$PWD O=$PWD/o \
+ %{?with_verbose:V=1}
+ mv nvidia.ko nvidia-$cfg.ko
+done
+%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}
+
+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} \
+ usr/X11R6/lib/libXvMCNVIDIA.a \
+; do
+ install $f $RPM_BUILD_ROOT%{_libdir}
+done
+
+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 libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
+ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.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
+#ln -sf libnvidia-wfb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/wfb.so
+
+# OpenGL ABI for Linux compatibility
+ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libGL.so.1
+ln -sf %{_libdir}/libGL.so.1 $RPM_BUILD_ROOT/usr/%{_lib}/libGL.so.1
+ln -sf %{_libdir}/libGL.so.1 $RPM_BUILD_ROOT/usr/%{_lib}/libGL.so
+
+%endif
+
+%if %{with kernel}
+cd usr/src/nv/
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
+install nvidia-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/nvidia.ko
+%if %{with smp} && %{with dist_kernel}
+install nvidia-smp.ko \
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/nvidia.ko
+%endif
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+cat << EOF
+
+ *******************************************************
+ * *
+ * NOTE: *
+ * You must install: *
+ * kernel(24)(-smp)-video-nvidia-%{version} *
+ * for this driver to work *
+ * *
+ *******************************************************
+
+EOF
+
+%postun -p /sbin/ldconfig
+
+%post -n kernel%{_alt_kernel}-video-nvidia
+%depmod %{_kernel_ver}
+
+%postun -n kernel%{_alt_kernel}-video-nvidia
+%depmod %{_kernel_ver}
+
+%post -n kernel%{_alt_kernel}-smp-video-nvidia
+%depmod %{_kernel_ver}smp
+
+%postun -n kernel%{_alt_kernel}-smp-video-nvidia
+%depmod %{_kernel_ver}smp
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE
+%doc usr/share/doc/{README.txt,NVIDIA_Changelog,XF86Config.sample,html}
+# OpenGL ABI for Linux compatibility
+%attr(755,root,root) %{_libdir}/libGL.so
+%attr(755,root,root) %{_libdir}/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/drivers/nvidia_drv.so
+%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so*
+%endif
+
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-video-nvidia
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+
+%if %{with smp} && %{with dist_kernel}
+%files -n kernel%{_alt_kernel}-smp-video-nvidia
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}smp/misc/*.ko*
+%endif
+%endif
+
+%if %{with userspace}
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so
+%{_includedir}/GL/*.h
+# -static
+%{_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
+
+%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 2007/04/08 14:16:05 blekot
+- new
+- graphics card should be included in description (I don't know where I can find it)
+- works for me
+
================================================================
More information about the pld-cvs-commit
mailing list