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