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