X-Git-Url: https://git.pld-linux.org/?p=packages%2Fxorg-driver-video-nvidia.git;a=blobdiff_plain;f=xorg-driver-video-nvidia.spec;h=3f3ee53cd6be469ef8d4c3aec55a7ca52066c920;hp=f655cc4f1584204ce9bb9d815c5b7a2c0d49cd92;hb=d35ce91ff64531f89607eb8b3462ae8d9569f554;hpb=35827f1aa10dcf17599d31c5ab350eff3ac8fabb diff --git a/xorg-driver-video-nvidia.spec b/xorg-driver-video-nvidia.spec index f655cc4..3f3ee53 100644 --- a/xorg-driver-video-nvidia.spec +++ b/xorg-driver-video-nvidia.spec @@ -2,49 +2,32 @@ # Conditional build: %bcond_without dist_kernel # without distribution kernel %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) %bcond_with multigl # package libGL and libglx.so in a way allowing concurrent install with nvidia/fglrx drivers -# -%define no_install_post_strip 1 -# -%define _nv_ver 169 -%define _nv_rel 04 -%define _rel 2 -# -%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 +%bcond_with verbose # verbose build (V=1) + +%if "%{_alt_kernel}" != "%{nil}" +%undefine with_userspace %endif -# + +%define pname xorg-driver-video-nvidia +%define rel 3 + Summary: Linux Drivers for nVidia GeForce/Quadro Chips Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro -Name: xorg-driver-video-nvidia -Version: %{_nv_ver}.%{_nv_rel} -Release: %{_rel}%{?with_multigl:.mgl} +Name: %{pname}%{_alt_kernel} +Version: 169.12 +Release: %{rel}%{?with_multigl:.mgl} License: nVidia Binary Group: X11 -%if %{need_x86} -Source0: http://us.download.nvidia.com/XFree86/Linux-x86/%{_nv_ver}.%{_nv_rel}/NVIDIA-Linux-x86-%{_nv_ver}.%{_nv_rel}-pkg1.run -# Source0-md5: 06a178f5cf10195896974c33ab34c6fb -%endif -%if %{need_x8664} -Source1: http://us.download.nvidia.com/XFree86/Linux-x86_64/%{_nv_ver}.%{_nv_rel}/NVIDIA-Linux-x86_64-%{_nv_ver}.%{_nv_rel}-pkg2.run -# Source1-md5: e01e2b19d3cb7e91f4df40a3b946b4fb -%endif -Source2: %{name}-xinitrc.sh +Source0: http://http.download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}-pkg1.run +# Source0-md5: c1d45a150a90e6a11da21623493a628e +Source1: http://http.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-pkg2.run +# Source1-md5: 8d29f4541f35e10ef06e566c57500cc1 +Source2: %{pname}-xinitrc.sh Patch0: X11-driver-nvidia-GL.patch Patch1: X11-driver-nvidia-desktop.patch +Patch2: NVIDIA_kernel-169.12-2286310.diff 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} @@ -145,12 +128,13 @@ Tools for advanced control of nVidia graphic cards. %description progs -l pl.UTF-8 Narzędzia do zarządzania kartami graficznymi nVidia. +%if %{with kernel} %package -n kernel%{_alt_kernel}-video-nvidia 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 -Version: %{_nv_ver}.%{_nv_rel} -Release: %{_rel}@%{_kernel_ver_str} +Version: %{version} +Release: %{rel}@%{_kernel_ver_str} Group: Base/Kernel Requires(post,postun): /sbin/depmod Requires: dev >= 2.7.7-10 @@ -167,19 +151,23 @@ Die nVidia-Architektur-Unterstützung für den Linux-Kern. %description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8 Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez sterownik nVidii dla Xorg/XFree86. +%endif %prep cd %{_builddir} -rm -rf NVIDIA-Linux-x86*-%{_nv_ver}.%{_nv_rel}-pkg* +rm -rf NVIDIA-Linux-x86*-%{version}-pkg* %ifarch %{ix86} /bin/sh %{SOURCE0} --extract-only -%setup -qDT -n NVIDIA-Linux-x86-%{_nv_ver}.%{_nv_rel}-pkg1 +%setup -qDT -n NVIDIA-Linux-x86-%{version}-pkg1 %else /bin/sh %{SOURCE1} --extract-only -%setup -qDT -n NVIDIA-Linux-x86_64-%{_nv_ver}.%{_nv_rel}-pkg2 +%setup -qDT -n NVIDIA-Linux-x86_64-%{version}-pkg2 %endif %patch0 -p1 %patch1 -p1 +%if "%{_kernel_ver}" >= "2.6.25" +%patch2 -p0 +%endif echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> usr/src/nv/Makefile.kbuild %build @@ -282,11 +270,13 @@ fi %postun -p /sbin/ldconfig +%if %{with kernel} %post -n kernel%{_alt_kernel}-video-nvidia %depmod %{_kernel_ver} %postun -n kernel%{_alt_kernel}-video-nvidia %depmod %{_kernel_ver} +%endif %if %{with userspace} %files