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