]>
Commit | Line | Data |
---|---|---|
2b14e59b | 1 | # TODO |
ff89f094 | 2 | # - solve this (shouldn't there be some obsoletes?): |
2b14e59b ER |
3 | # error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686 |
4 | # error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686 | |
28142503 PS |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without dist_kernel # without distribution kernel | |
bf683e7a | 8 | %bcond_without kernel # without kernel packages |
1820d34b | 9 | %bcond_without userspace # don't build userspace programs |
ffec07c8 | 10 | %bcond_with multigl # package libGL and libglx.so in a way allowing concurrent install with nvidia/fglrx drivers |
a14b5013 | 11 | %bcond_with verbose # verbose build (V=1) |
12 | ||
a14b5013 | 13 | %if "%{_alt_kernel}" != "%{nil}" |
14 | %undefine with_userspace | |
22d6cc34 | 15 | %endif |
c543fa7c ER |
16 | %if %{without userspace} |
17 | # nothing to be placed to debuginfo package | |
18 | %define _enable_debug_packages 0 | |
19 | %endif | |
c5bb5957 | 20 | |
a14b5013 | 21 | %define pname xorg-driver-video-nvidia |
30ab9163 | 22 | %define rel 2%{?with_multigl:.mgl} |
a14b5013 | 23 | |
974295b8 | 24 | Summary: Linux Drivers for nVidia GeForce/Quadro Chips |
754fc4fe | 25 | Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez |
974295b8 | 26 | Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro |
a14b5013 | 27 | Name: %{pname}%{_alt_kernel} |
02725f81 | 28 | Version: 180.35 |
53936bc2 | 29 | Release: %{rel} |
3bde582d | 30 | Epoch: 1 |
28142503 | 31 | License: nVidia Binary |
4a185d32 | 32 | Group: X11 |
d856ab9b | 33 | Source0: http://download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}-pkg0.run |
02725f81 | 34 | # Source0-md5: 23a4e1cbe24943452c82eeab9dd8200d |
d856ab9b | 35 | Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-pkg0.run |
02725f81 | 36 | # Source1-md5: 451fdd8d5196a15aba424618ab16ed12 |
a14b5013 | 37 | Source2: %{pname}-xinitrc.sh |
bcf69910 JB |
38 | Patch0: X11-driver-nvidia-GL.patch |
39 | Patch1: X11-driver-nvidia-desktop.patch | |
f517f625 | 40 | URL: http://www.nvidia.com/object/unix.html |
82268c76 | 41 | %if %{with kernel} |
0e15e33b | 42 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} |
82268c76 | 43 | %endif |
28142503 | 44 | BuildRequires: %{kgcc_package} |
d68f27fd | 45 | BuildRequires: rpmbuild(macros) >= 1.379 |
039c7221 | 46 | BuildRequires: sed >= 4.0 |
0ed6aeef | 47 | BuildConflicts: XFree86-nvidia |
8343d24d | 48 | Requires: xorg-xserver-server |
30ab9163 | 49 | Requires: xorg-xserver-server(videodrv-abi) < 6.0 |
754fc4fe | 50 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
1b8b7646 | 51 | Provides: OpenGL = 2.1 |
63c6d4b1 | 52 | Provides: OpenGL-GLX = 1.4 |
4e3e8de1 | 53 | Provides: xorg-xserver-module(glx) |
2b14e59b | 54 | %if %{without multigl} |
28142503 | 55 | Obsoletes: Mesa |
ffec07c8 | 56 | %endif |
fff74aa2 AM |
57 | Obsoletes: X11-OpenGL-core < 1:7.0.0 |
58 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
59 | Obsoletes: XFree86-OpenGL-core < 1:7.0.0 | |
60 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
2d490dca | 61 | Obsoletes: XFree86-driver-nvidia |
28142503 | 62 | Obsoletes: XFree86-nvidia |
2b14e59b | 63 | %if %{without multigl} |
4a61f89d PZ |
64 | Conflicts: Mesa-libGL |
65 | %endif | |
28142503 | 66 | Conflicts: XFree86-OpenGL-devel <= 4.2.0-3 |
1b927e61 | 67 | ExclusiveArch: %{ix86} %{x8664} |
28142503 PS |
68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
69 | ||
03da6314 | 70 | %define _noautoreqdep libGL.so.1 libGLcore.so.1 |
28142503 PS |
71 | |
72 | %description | |
974295b8 JB |
73 | This driver set adds improved 2D functionality to the Xorg X server as |
74 | well as high performance OpenGL acceleration, AGP support, support for | |
75 | most flat panels, and 2D multiple monitor support. Supported hardware: | |
76 | modern NVIDIA GeForce (from GeForce2 MX) and Quadro (Quadro4 and up) | |
77 | based graphics accelerators. | |
28142503 | 78 | |
974295b8 JB |
79 | The older graphics chips are unsupported: |
80 | - NV1 and RIVA 128/128ZX chips are supported in the base Xorg install | |
81 | (nv driver) | |
82 | - TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 are suported by -legacy | |
83 | drivers. | |
28142503 | 84 | |
754fc4fe ZU |
85 | %description -l hu.UTF-8 |
86 | Ez a meghajtó kibővíti az Xorg X szerver 2D működését OpenGL | |
87 | gyorsítással, AGP támogatással és támogatja a több monitort. | |
88 | Támogatott hardverek: modern NVIDIA GeForce (GeForce2 MX-től) és | |
89 | Quadro (Quadro4 és újabbak) alapú grafikai gyorsítók. | |
90 | ||
91 | A régekbbi grafikus chipek nem támogatottak: | |
92 | - NV1 és RIVA 128/128ZX chipek az alap Xorg telepítéssel (nv meghajtó) | |
93 | - TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 a -legacy driverekkel | |
94 | támogatottak. | |
95 | ||
c311612f | 96 | %description -l pl.UTF-8 |
974295b8 JB |
97 | Usprawnione sterowniki dla kart graficznych nVidia do serwera Xorg, |
98 | dające wysokowydajną akcelerację OpenGL, obsługę AGP i wielu monitorów | |
99 | 2D. Obsługują w miarę nowe karty NVIDIA GeForce (od wersji GeForce2 | |
100 | MX) oraz Quadro (od wersji Quadro4). | |
28142503 | 101 | |
974295b8 JB |
102 | Starsze układy graficzne nie są obsługiwane przez ten pakiet: |
103 | - NV1 i RIVA 128/128ZX są obsługiwane przez sterownik nv z Xorg | |
104 | - TNT/TNT2/GeForce 256/GeForce 2 Ultra/Quadro 2 są obsługiwane przez | |
105 | sterowniki -legacy | |
28142503 PS |
106 | |
107 | %package devel | |
63c6d4b1 | 108 | Summary: OpenGL (GL and GLX) header files |
754fc4fe | 109 | Summary(hu.UTF-8): OpenGL (GL és GLX) fejléc fájlok |
63c6d4b1 | 110 | Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX) |
28142503 | 111 | Group: X11/Development/Libraries |
84c1d1c9 | 112 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
63c6d4b1 | 113 | Provides: OpenGL-GLX-devel = 1.4 |
1b8b7646 | 114 | Provides: OpenGL-devel = 2.1 |
63c6d4b1 JB |
115 | Obsoletes: X11-OpenGL-devel-base |
116 | Obsoletes: XFree86-OpenGL-devel-base | |
2d490dca | 117 | Obsoletes: XFree86-driver-nvidia-devel |
28142503 PS |
118 | Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3 |
119 | ||
120 | %description devel | |
63c6d4b1 JB |
121 | OpenGL header files (GL and GLX only) for NVIDIA OpenGL |
122 | implementation. | |
28142503 | 123 | |
754fc4fe ZU |
124 | %description devel -l hu.UTF-8 |
125 | OpenGL fejléc fájlok (csak GL és GLX) NVIDIA OpenGL implementációhoz. | |
126 | ||
c311612f | 127 | %description devel -l pl.UTF-8 |
63c6d4b1 JB |
128 | Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL |
129 | firmy NVIDIA. | |
130 | ||
131 | %package static | |
132 | Summary: Static XvMCNVIDIA library | |
754fc4fe | 133 | Summary(hu.UTF-8): Statikus XwMCNVIDIA könyvtár |
63c6d4b1 JB |
134 | Summary(pl.UTF-8): Statyczna biblioteka XvMCNVIDIA |
135 | Group: X11/Development/Libraries | |
84c1d1c9 | 136 | Requires: %{pname}-devel = %{epoch}:%{version}-%{rel} |
63c6d4b1 JB |
137 | |
138 | %description static | |
139 | Static XvMCNVIDIA library. | |
140 | ||
754fc4fe ZU |
141 | %description static -l hu.UTF-8 |
142 | Statikus XwMCNVIDIA könyvtár. | |
143 | ||
63c6d4b1 JB |
144 | %description static -l pl.UTF-8 |
145 | Statyczna biblioteka XvMCNVIDIA. | |
28142503 PS |
146 | |
147 | %package progs | |
148 | Summary: Tools for advanced control of nVidia graphic cards | |
754fc4fe | 149 | Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához |
b37addd9 | 150 | Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia |
f12e8b24 | 151 | Group: Applications/System |
84c1d1c9 | 152 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
c29343e3 | 153 | Suggests: pkgconfig |
c064a147 | 154 | Obsoletes: XFree86-driver-nvidia-progs |
28142503 PS |
155 | |
156 | %description progs | |
157 | Tools for advanced control of nVidia graphic cards. | |
158 | ||
754fc4fe ZU |
159 | %description progs -l hu.UTF-8 |
160 | Eszközök az nVidia grafikus kártyák beállításához. | |
161 | ||
c311612f JR |
162 | %description progs -l pl.UTF-8 |
163 | Narzędzia do zarządzania kartami graficznymi nVidia. | |
28142503 | 164 | |
00aee69a | 165 | %package -n kernel%{_alt_kernel}-video-nvidia |
28142503 | 166 | Summary: nVidia kernel module for nVidia Architecture support |
b37addd9 | 167 | Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung |
754fc4fe | 168 | Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez. |
b37addd9 | 169 | Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia |
84c1d1c9 | 170 | Release: %{rel}@%{_kernel_ver_str} |
28142503 | 171 | Group: Base/Kernel |
28142503 PS |
172 | Requires(post,postun): /sbin/depmod |
173 | Requires: dev >= 2.7.7-10 | |
d68f27fd | 174 | %{?with_dist_kernel:%requires_releq_kernel} |
84c1d1c9 | 175 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
2d490dca | 176 | Provides: X11-driver-nvidia(kernel) |
28142503 PS |
177 | Obsoletes: XFree86-nvidia-kernel |
178 | ||
00aee69a | 179 | %description -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
180 | nVidia Architecture support for Linux kernel. |
181 | ||
c311612f JR |
182 | %description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8 |
183 | Die nVidia-Architektur-Unterstützung für den Linux-Kern. | |
28142503 | 184 | |
754fc4fe ZU |
185 | %description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8 |
186 | nVidia Architektúra támogatás Linux kernelhez. | |
187 | ||
c311612f JR |
188 | %description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8 |
189 | Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez | |
0ed6aeef | 190 | sterownik nVidii dla Xorg/XFree86. |
28142503 | 191 | |
28142503 PS |
192 | %prep |
193 | cd %{_builddir} | |
a14b5013 | 194 | rm -rf NVIDIA-Linux-x86*-%{version}-pkg* |
039c7221 | 195 | %ifarch %{ix86} |
28142503 | 196 | /bin/sh %{SOURCE0} --extract-only |
d856ab9b | 197 | %setup -qDT -n NVIDIA-Linux-x86-%{version}-pkg0 |
039c7221 PS |
198 | %else |
199 | /bin/sh %{SOURCE1} --extract-only | |
d856ab9b | 200 | %setup -qDT -n NVIDIA-Linux-x86_64-%{version}-pkg0 |
039c7221 | 201 | %endif |
bcf69910 | 202 | %patch0 -p1 |
0029e8cc | 203 | %patch1 -p1 |
eb6ba6c9 | 204 | echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> usr/src/nv/Makefile.kbuild |
28142503 PS |
205 | |
206 | %build | |
2317af94 | 207 | %if %{with kernel} |
19777214 | 208 | cd usr/src/nv |
d4a34ce2 | 209 | ln -sf Makefile.kbuild Makefile |
94ef5e53 | 210 | cat >> Makefile <<'EOF' |
211 | ||
212 | $(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin | |
213 | cp $< $@ | |
214 | EOF | |
215 | mv nv-kernel.o{,.bin} | |
12a94e85 | 216 | %build_kernel_modules -m nvidia |
2317af94 | 217 | %endif |
28142503 PS |
218 | |
219 | %install | |
220 | rm -rf $RPM_BUILD_ROOT | |
1820d34b ER |
221 | |
222 | %if %{with userspace} | |
eb6ba6c9 | 223 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,extensions} \ |
c2fc5475 | 224 | $RPM_BUILD_ROOT{%{_includedir}/{GL,cuda,vdpau},%{_libdir},%{_bindir},%{_mandir}/man1} \ |
2a45f872 | 225 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} |
ffec07c8 JR |
226 | %if %{with multigl} |
227 | install -d $RPM_BUILD_ROOT{%{_libdir}/nvidia,%{_sysconfdir}/ld.so.conf.d} | |
228 | %endif | |
28142503 | 229 | |
7a2ced2a | 230 | install usr/bin/nvidia-{settings,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir} |
225cc701 | 231 | install usr/share/man/man1/nvidia-{settings,xconfig}.* $RPM_BUILD_ROOT%{_mandir}/man1 |
232 | install usr/share/applications/nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
7a2ced2a | 233 | install usr/share/pixmaps/nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir} |
2a45f872 | 234 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh |
eb6ba6c9 PS |
235 | |
236 | for f in \ | |
237 | usr/lib/tls/libnvidia-tls.so.%{version} \ | |
069d2a12 | 238 | usr/lib/libnvidia-cfg.so.%{version} \ |
eb6ba6c9 | 239 | usr/lib/libGL{,core}.so.%{version} \ |
c2fc5475 SP |
240 | usr/lib/libcuda.so.%{version} \ |
241 | usr/lib/libvdpau{,_nvidia,_trace}.so.%{version} \ | |
eb6ba6c9 | 242 | usr/X11R6/lib/libXvMCNVIDIA.so.%{version} \ |
2b14e59b | 243 | %if %{without multigl} |
eb6ba6c9 PS |
244 | usr/X11R6/lib/libXvMCNVIDIA.a \ |
245 | ; do | |
246 | install $f $RPM_BUILD_ROOT%{_libdir} | |
247 | done | |
ffec07c8 JR |
248 | %else |
249 | ; do | |
250 | install $f $RPM_BUILD_ROOT%{_libdir}/nvidia | |
251 | done | |
252 | install usr/X11R6/lib/libXvMCNVIDIA.a $RPM_BUILD_ROOT%{_libdir} | |
253 | %endif | |
eb6ba6c9 | 254 | |
d4a34ce2 | 255 | install usr/X11R6/lib/modules/extensions/libglx.so.%{version} \ |
eb6ba6c9 | 256 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions |
23ae74e1 | 257 | install usr/X11R6/lib/modules/drivers/nvidia_drv.so \ |
258 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers | |
069d2a12 | 259 | install usr/X11R6/lib/modules/libnvidia-wfb.so.%{version} \ |
260 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules | |
28142503 | 261 | |
eb6ba6c9 | 262 | install usr/include/GL/*.h $RPM_BUILD_ROOT%{_includedir}/GL |
c2fc5475 SP |
263 | install usr/include/cuda/*.h $RPM_BUILD_ROOT%{_includedir}/cuda |
264 | install usr/include/vdpau/*.h $RPM_BUILD_ROOT%{_includedir}/vdpau | |
28142503 | 265 | |
eb6ba6c9 | 266 | ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.so |
28142503 | 267 | |
ffec07c8 JR |
268 | %if %{with multigl} |
269 | echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf | |
270 | ||
271 | # OpenGL ABI for Linux compatibility | |
272 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1 | |
273 | ln -sf nvidia/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
274 | ||
275 | ln -sf nvidia/libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
276 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 SP |
277 | |
278 | ln -sf nvidia/libvdpau.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libvdpau.so | |
279 | ln -sf nvidia/libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so | |
ffec07c8 | 280 | %else |
28142503 | 281 | # OpenGL ABI for Linux compatibility |
eb6ba6c9 PS |
282 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libGL.so.1 |
283 | ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
ffec07c8 JR |
284 | |
285 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
286 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 SP |
287 | |
288 | ln -sf libvdpau.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libvdpau.so | |
289 | ln -sf libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so | |
ffec07c8 | 290 | %endif |
1820d34b | 291 | %endif |
28142503 | 292 | |
1fdf7dcc | 293 | %if %{with kernel} |
12a94e85 | 294 | %install_kernel_modules -m usr/src/nv/nvidia -d misc |
1fdf7dcc | 295 | %endif |
28142503 PS |
296 | |
297 | %clean | |
298 | rm -rf $RPM_BUILD_ROOT | |
299 | ||
a641155e | 300 | %post |
ffbb3439 | 301 | /sbin/ldconfig |
2b14e59b ER |
302 | cat << 'EOF' |
303 | NOTE: You must also install kernel module for this driver to work | |
304 | kernel-video-nvidia-%{version} | |
2b14e59b | 305 | kernel-desktop-video-nvidia-%{version} |
b25e7843 ER |
306 | kernel-laptop-video-nvidia-%{version} |
307 | kernel-vanilla-video-nvidia-%{version} | |
2b14e59b ER |
308 | |
309 | Depending on which kernel brand you use. | |
310 | ||
25b520ff | 311 | EOF |
504709c0 JR |
312 | %if %{with multigl} |
313 | if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then | |
314 | ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so | |
315 | fi | |
316 | %endif | |
25b520ff | 317 | |
ffbb3439 | 318 | %postun -p /sbin/ldconfig |
25b520ff | 319 | |
00aee69a | 320 | %post -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
321 | %depmod %{_kernel_ver} |
322 | ||
00aee69a | 323 | %postun -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
324 | %depmod %{_kernel_ver} |
325 | ||
1820d34b | 326 | %if %{with userspace} |
28142503 PS |
327 | %files |
328 | %defattr(644,root,root,755) | |
329 | %doc LICENSE | |
225cc701 | 330 | %doc usr/share/doc/{README.txt,NVIDIA_Changelog,XF86Config.sample,html} |
ffec07c8 JR |
331 | %if %{with multigl} |
332 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia.conf | |
333 | %dir %{_libdir}/nvidia | |
334 | %attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.* | |
335 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1 | |
336 | %attr(755,root,root) %{_libdir}/nvidia/libGLcore.so.*.* | |
337 | %attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA.so.*.* | |
338 | %attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 | 339 | %attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.* |
c75f043c | 340 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.* |
341 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.* | |
c2fc5475 SP |
342 | %attr(755,root,root) %{_libdir}/nvidia/libvdpau.so.*.* |
343 | %attr(755,root,root) %{_libdir}/nvidia/libvdpau_nvidia.so.*.* | |
344 | %attr(755,root,root) %{_libdir}/nvidia/libvdpau_trace.so.*.* | |
ffec07c8 JR |
345 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.* |
346 | %ghost %{_libdir}/xorg/modules/extensions/libglx.so | |
347 | %else | |
eb6ba6c9 | 348 | %attr(755,root,root) %{_libdir}/libGL.so.*.* |
63c6d4b1 JB |
349 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 |
350 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
351 | # (and dlopen libGL.so instead of libGL.so.1) | |
352 | %attr(755,root,root) %{_libdir}/libGL.so | |
28142503 PS |
353 | %attr(755,root,root) %{_libdir}/libGLcore.so.*.* |
354 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so.*.* | |
eb6ba6c9 | 355 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA_dynamic.so.1 |
c2fc5475 | 356 | %attr(755,root,root) %{_libdir}/libcuda.so.*.* |
032cc98f | 357 | %attr(755,root,root) %{_libdir}/libnvidia-cfg.so.*.* |
358 | %attr(755,root,root) %{_libdir}/libnvidia-tls.so.*.* | |
c2fc5475 SP |
359 | %attr(755,root,root) %{_libdir}/libvdpau.so.*.* |
360 | %attr(755,root,root) %{_libdir}/libvdpau_nvidia.so.*.* | |
361 | %attr(755,root,root) %{_libdir}/libvdpau_trace.so.*.* | |
ffec07c8 JR |
362 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so* |
363 | %endif | |
032cc98f | 364 | %attr(755,root,root) %{_libdir}/xorg/modules/libnvidia-wfb.so.*.* |
23ae74e1 | 365 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so |
28142503 | 366 | |
28142503 PS |
367 | %files devel |
368 | %defattr(644,root,root,755) | |
369 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so | |
c2fc5475 SP |
370 | %attr(755,root,root) %{_libdir}/libcuda.so |
371 | %attr(755,root,root) %{_libdir}/libvdpau.so | |
73eb73e1 | 372 | %dir %{_includedir}/GL |
63c6d4b1 JB |
373 | %{_includedir}/GL/gl.h |
374 | %{_includedir}/GL/glext.h | |
375 | %{_includedir}/GL/glx.h | |
376 | %{_includedir}/GL/glxext.h | |
c2fc5475 SP |
377 | %{_includedir}/cuda |
378 | %{_includedir}/vdpau | |
ffec07c8 JR |
379 | %if %{with multigl} |
380 | %attr(755,root,root) %{_libdir}/libGL.so | |
381 | %endif | |
63c6d4b1 JB |
382 | |
383 | %files static | |
384 | %defattr(644,root,root,755) | |
28142503 PS |
385 | %{_libdir}/libXvMCNVIDIA.a |
386 | ||
d4a34ce2 | 387 | %files progs |
01766b04 | 388 | %defattr(644,root,root,755) |
389 | %attr(755,root,root) %{_bindir}/nvidia-settings | |
225cc701 | 390 | %attr(755,root,root) %{_bindir}/nvidia-xconfig |
7a2ced2a | 391 | %attr(755,root,root) %{_bindir}/nvidia-bug-report.sh |
2a45f872 | 392 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh |
225cc701 | 393 | %{_desktopdir}/nvidia-settings.desktop |
394 | %{_mandir}/man1/nvidia-* | |
395 | %{_pixmapsdir}/nvidia-settings.png | |
1820d34b | 396 | %endif |
63c6d4b1 JB |
397 | |
398 | %if %{with kernel} | |
399 | %files -n kernel%{_alt_kernel}-video-nvidia | |
400 | %defattr(644,root,root,755) | |
401 | /lib/modules/%{_kernel_ver}/misc/*.ko* | |
402 | %endif |