]> git.pld-linux.org Git - packages/X11-driver-nvidia.git/blame - X11-driver-nvidia.spec
- use %build_kernel_modules, %install_kernel_modules (not tested)
[packages/X11-driver-nvidia.git] / X11-driver-nvidia.spec
CommitLineData
021a0a61
PS
1#
2# Conditional build:
3%bcond_without dist_kernel # without distribution kernel
4%bcond_without smp # without smp packages
32cbdde2 5%bcond_without kernel # without kernel packages
bf4852b1 6%bcond_without incall # include all tarballs
fde6ca1b 7%bcond_without userspace # don't build userspace programs
021a0a61 8%bcond_with verbose # verbose build (V=1)
021a0a61
PS
9#
10%define _nv_ver 1.0
e14e9c7c 11%define _nv_rel 9629
f041900c 12%define _min_x11 6.7.0
e14e9c7c 13%define _rel 1
021a0a61 14#
bf4852b1 15%define need_x86 0
16%define need_x8664 0
17%if %{with incall}
18%define need_x86 1
19%define need_x8664 1
20%else
21%ifarch %{ix86}
22%define need_x86 1
23%endif
24%ifarch %{x8664}
25%define need_x8664 1
26%endif
27%endif
bf4852b1 28
673b5c59
KK
29%if %{without kernel}
30%undefine with_dist_kernel
31%endif
32#
d3b0c65f 33Summary: Linux Drivers for NVIDIA GeForce/Quadro Chips
34Summary(pl): Sterowniki do kart graficznych NVIDIA GeForce/Quadro
ff10ae37 35Name: X11-driver-nvidia
021a0a61 36Version: %{_nv_ver}.%{_nv_rel}
021a0a61
PS
37Release: %{_rel}
38License: nVidia Binary
a1719992 39Group: X11
9e5a0c12 40# why not pkg0!?
bf4852b1 41%if %{need_x86}
0a94556e 42Source0: http://download.nvidia.com/XFree86/Linux-x86/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-pkg1.run
e14e9c7c 43# Source0-md5: a9e6097e84a0d6310e5a71c58249ccae
bf4852b1 44%endif
45%if %{need_x8664}
0a94556e 46Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86_64-%{_nv_ver}-%{_nv_rel}-pkg1.run
e14e9c7c 47# Source1-md5: 7ff9c0cb34f0e43817703a765d21f813
bf4852b1 48%endif
ff36fde8 49Source2: %{name}-settings.desktop
50Source3: %{name}-xinitrc.sh
b547cc78 51Patch0: %{name}-GL.patch
52Patch1: %{name}-conftest.patch
4e804304 53# http://www.minion.de/files/1.0-6629/
021a0a61 54URL: http://www.nvidia.com/object/linux.html
737f46f2 55%if %{with kernel}
419bfb31 56%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
737f46f2 57%endif
021a0a61 58BuildRequires: %{kgcc_package}
0dcbad30 59#BuildRequires: X11-devel >= %{_min_x11} # disabled for now
cbebbe4a 60BuildRequires: rpmbuild(macros) >= 1.326
bdfe50d4 61BuildRequires: sed >= 4.0
fbb29b2a 62BuildConflicts: XFree86-nvidia
ff10ae37 63Requires: X11-Xserver
f041900c 64Requires: X11-libs >= %{_min_x11}
65Requires: X11-modules >= %{_min_x11}
ff10ae37 66Provides: X11-OpenGL-core
470b9df4 67Provides: X11-OpenGL-libGL
021a0a61 68Provides: XFree86-OpenGL-core
470b9df4 69Provides: XFree86-OpenGL-libGL
021a0a61 70Obsoletes: Mesa
470b9df4 71Obsoletes: X11-OpenGL-core
72Obsoletes: X11-OpenGL-libGL
021a0a61
PS
73Obsoletes: XFree86-OpenGL-core
74Obsoletes: XFree86-OpenGL-libGL
ff10ae37 75Obsoletes: XFree86-driver-nvidia
021a0a61
PS
76Obsoletes: XFree86-nvidia
77Conflicts: XFree86-OpenGL-devel <= 4.2.0-3
2629feca 78ExclusiveArch: %{ix86} %{x8664}
021a0a61
PS
79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
24744dce 81%define _noautoreqdep libGL.so.1 libGLcore.so.1
021a0a61 82%define _prefix /usr/X11R6
15fb6e48 83%define _mandir %{_prefix}/man
2629feca 84%ifarch %{x8664}
2da09658
JB
85%define _libdir32 %{_prefix}/lib
86%endif
021a0a61
PS
87
88%description
fbb29b2a 89This driver set adds improved 2D functionality to the Xorg/XFree86 X
021a0a61
PS
90server as well as high performance OpenGL acceleration, AGP support,
91support for most flat panels, and 2D multiple monitor support.
96134d83
JB
92
93Supported hardware: new NVIDIA GeForce (from GeForce2 MX) and Quadro
94(Quadro4 and up) based graphics accelerators.
021a0a61 95
d3b0c65f 96The older graphics chips are unsupported:
96134d83 97- NV1 and RIVA 128/128ZX chips are supported in the base Xorg
d3b0c65f 98 install (nv driver)
96134d83
JB
99- TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 are suported by
100 X11-driver-nvidia-legacy drivers.
021a0a61
PS
101
102%description -l pl
fbb29b2a 103Usprawnione sterowniki dla kart graficznych nVidia do serwera
d3b0c65f 104