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