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