up to 450.80.02
[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:
3a265d30 7%bcond_with system_libglvnd # do not use system libglvnd
bf683e7a 8%bcond_without kernel # without kernel packages
1820d34b 9%bcond_without userspace # don't build userspace programs
5da85237 10%bcond_with settings # package nvidia-settings here (GPL version of same packaged from nvidia-settings.spec)
a14b5013 11%bcond_with verbose # verbose build (V=1)
12
e4947020
JR
13# The goal here is to have main, userspace, package built once with
14# simple release number, and only rebuild kernel packages with kernel
15# version as part of release number, without the need to bump release
16# with every kernel change.
17%if 0%{?_pld_builder:1} && %{with kernel} && %{with userspace}
18%{error:kernel and userspace cannot be built at the same time on PLD builders}
19exit 1
20%endif
21
c543fa7c
ER
22%if %{without userspace}
23# nothing to be placed to debuginfo package
24%define _enable_debug_packages 0
25%endif
e4947020 26
7cbecde6 27%define no_install_post_check_so 1
c5bb5957 28
70efbe60 29%define rel 1
f3bf0f30 30%define pname xorg-driver-video-nvidia
974295b8 31Summary: Linux Drivers for nVidia GeForce/Quadro Chips
754fc4fe 32Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez
974295b8 33Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro
e4947020 34Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
8a7af30b 35# when updating version here, keep nvidia-settings.spec in sync as well
2dbc86e8 36Version: 450.80.02
e4947020 37Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
d7c1ffa0 38Epoch: 1
28142503 39License: nVidia Binary
4a185d32 40Group: X11
7f0cefc2 41Source0: http://us.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}.run
2dbc86e8 42# Source0-md5: c68b3500fb5ceb17a0fcebcbb143dad8
a14b5013 43Source2: %{pname}-xinitrc.sh
236b5374 44Source3: gl.pc.in
cd436d42
JR
45Source4: 10-nvidia.conf
46Source5: 10-nvidia-modules.conf
117b7720 47Patch0: X11-driver-nvidia-desktop.patch
e9d80916 48Patch1: kernel-5.7.patch
f517f625 49URL: http://www.nvidia.com/object/unix.html
fb27eb94 50BuildRequires: rpmbuild(macros) >= 1.701
f1773542 51%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.32}}
039c7221 52BuildRequires: sed >= 4.0
0ed6aeef 53BuildConflicts: XFree86-nvidia
0703c7e8 54Requires: %{pname}-libs = %{epoch}:%{version}-%{rel}
8343d24d 55Requires: xorg-xserver-server
78d034da 56Requires: xorg-xserver-server(videodrv-abi) <= 24.1
f1773542 57Requires: xorg-xserver-server(videodrv-abi) >= 4.0
857c0a69
JP
58Provides: ocl-icd(nvidia)
59Provides: ocl-icd-driver
acf1b523 60Provides: vulkan(icd) = 1.1.119
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
c202a266 66ExclusiveArch: %{?with_userspace:%{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
1011cf4a 113%if %{with system_libglvnd}
538b2e0c
JP
114Requires: libglvnd
115Requires: libglvnd-libGL
116Requires: libglvnd-libGLES
117%endif
76db0ca8 118Requires: libvdpau >= 0.3
ba4c5c19 119Provides: OpenGL = 3.3
17fdb673 120Provides: OpenGL-GLX = 1.4
17fdb673
JR
121Obsoletes: X11-OpenGL-core < 1:7.0.0
122Obsoletes: X11-OpenGL-libGL < 1:7.0.0
123Obsoletes: XFree86-OpenGL-core < 1:7.0.0
124Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
17fdb673 125
4c842b35 126%description libs
17fdb673
JR
127NVIDIA OpenGL (GL and GLX only) implementation libraries.
128
4c842b35 129%description libs -l pl.UTF-8
17fdb673
JR
130Implementacja OpenGL (tylko GL i GLX) firmy NVIDIA.
131
28142503 132%package devel
63c6d4b1 133Summary: OpenGL (GL and GLX) header files
754fc4fe 134Summary(hu.UTF-8): OpenGL (GL és GLX) fejléc fájlok
63c6d4b1 135Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX)
28142503 136Group: X11/Development/Libraries
0703c7e8 137Requires: %{pname}-libs = %{epoch}:%{version}-%{rel}
63c6d4b1 138Provides: OpenGL-GLX-devel = 1.4
1b8b7646 139Provides: OpenGL-devel = 2.1
63c6d4b1
JB
140Obsoletes: X11-OpenGL-devel-base
141Obsoletes: XFree86-OpenGL-devel-base
2d490dca 142Obsoletes: XFree86-driver-nvidia-devel
28142503
PS
143Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3
144
145%description devel
63c6d4b1
JB
146OpenGL header files (GL and GLX only) for NVIDIA OpenGL
147implementation.
28142503 148
754fc4fe
ZU
149%description devel -l hu.UTF-8
150OpenGL fejléc fájlok (csak GL és GLX) NVIDIA OpenGL implementációhoz.
151
c311612f 152%description devel -l pl.UTF-8
63c6d4b1
JB
153Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL
154firmy NVIDIA.
155
a9160796
ER
156%package doc
157Summary: Documentation for NVIDIA Graphics Driver
158Group: Documentation
fd356b88
ER
159%if "%{_rpmversion}" >= "5"
160BuildArch: noarch
161%endif
a9160796
ER
162
163%description doc
164NVIDIA Accelerated Linux Graphics Driver README and Installation
165Guide.
166
28142503
PS
167%package progs
168Summary: Tools for advanced control of nVidia graphic cards
754fc4fe 169Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához
b37addd9 170Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia
f12e8b24 171Group: Applications/System
0056ee0e 172Requires: %{pname} = %{epoch}:%{version}
c29343e3 173Suggests: pkgconfig
c064a147 174Obsoletes: XFree86-driver-nvidia-progs
28142503
PS
175
176%description progs
177Tools for advanced control of nVidia graphic cards.
178
754fc4fe
ZU
179%description progs -l hu.UTF-8
180Eszközök az nVidia grafikus kártyák beállításához.
181
c311612f
JR
182%description progs -l pl.UTF-8
183Narzędzia do zarządzania kartami graficznymi nVidia.
28142503 184
d626b139 185%ifarch %{x8664}
e4947020
JR
186%define kernel_pkg()\
187%package -n kernel%{_alt_kernel}-video-nvidia\
188Summary: nVidia kernel module for nVidia Architecture support\
189Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung\
190Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez.\
191Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia\
192Release: %{rel}@%{_kernel_ver_str}\
193Group: Base/Kernel\
194Requires(post,postun): /sbin/depmod\
195Requires: dev >= 2.7.7-10\
e4947020
JR
196%requires_releq_kernel\
197%if %{_kernel_version_code} >= %{_kernel_version_magic 3 10 0}\
198Requires: %{releq_kernel -n drm}\
199%endif\
200Requires(postun): %releq_kernel\
e4947020
JR
201Requires: %{pname} = %{epoch}:%{version}\
202Provides: X11-driver-nvidia(kernel)\
203Obsoletes: XFree86-nvidia-kernel\
204\
205%description -n kernel%{_alt_kernel}-video-nvidia\
206nVidia Architecture support for Linux kernel.\
207\
208%description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8\
209Die nVidia-Architektur-Unterstützung für den Linux-Kern.\
210\
211%description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8\
212nVidia Architektúra támogatás Linux kernelhez.\
213\
214%description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8\
215Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez\
216sterownik nVidii dla Xorg/XFree86.\
217\
218%if %{with kernel}\
219%files -n kernel%{_alt_kernel}-video-nvidia\
220%defattr(644,root,root,755)\
221/lib/modules/%{_kernel_ver}/misc/*.ko*\
222%endif\
223\
224%post -n kernel%{_alt_kernel}-video-nvidia\
225%depmod %{_kernel_ver}\
226\
227%postun -n kernel%{_alt_kernel}-video-nvidia\
228%depmod %{_kernel_ver}\
229%{nil}
230
231%define build_kernel_pkg()\
e4947020 232cd kernel\
e4947020 233%{__make} SYSSRC=%{_kernelsrcdir} clean\
ef40d8b8 234%{__make} SYSSRC=%{_kernelsrcdir} IGNORE_CC_MISMATCH=1 NV_VERBOSE=1 CC=%{__cc} module\
e4947020 235cd ..\
10e941a4 236%install_kernel_modules -D installed -m kernel/nvidia,kernel/nvidia-drm,kernel/nvidia-modeset -d misc\
cad4d6b5 237%install_kernel_modules -D installed -m kernel/nvidia-uvm -d misc\
e4947020
JR
238%{nil}
239
fb27eb94 240%{?with_kernel:%{expand:%create_kernel_packages}}
d626b139 241%endif
28142503 242
28142503
PS
243%prep
244cd %{_builddir}
7f0cefc2 245rm -rf NVIDIA-Linux-x86_64-%{version}
28142503 246/bin/sh %{SOURCE0} --extract-only
7f0cefc2 247%setup -qDT -n NVIDIA-Linux-x86_64-%{version}
bcf69910 248%patch0 -p1
e9d80916 249%patch1 -p1
8481604b 250echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild
28142503
PS
251
252%build
d626b139 253%ifarch %{x8664}
fb27eb94 254%{?with_kernel:%{expand:%build_kernel_packages}}
d626b139 255%endif
28142503
PS
256
257%install
258rm -rf $RPM_BUILD_ROOT
1820d34b
ER
259
260%if %{with userspace}
cd436d42 261install -d $RPM_BUILD_ROOT%{_libdir}/{nvidia,xorg/modules/{drivers,extensions/nvidia}} \
117b7720 262 $RPM_BUILD_ROOT{%{_libdir}/vdpau,%{_bindir},%{_mandir}/man1} \
054fcee3 263 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} \
6c7b79fe 264 $RPM_BUILD_ROOT%{_sysconfdir}/{OpenCL/vendors,ld.so.conf.d,X11/xorg.conf.d} \
96251f94 265 $RPM_BUILD_ROOT%{_datadir}/{glvnd/egl_vendor.d,nvidia,vulkan/icd.d}
28142503 266
d626b139 267%ifarch %{x8664}
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
c6948e82 284install -p nvidia-drm-outputclass.conf $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
da05371c 285
28bd8abb
JP
286install -p nvidia-application-profiles-%{version}-key-documentation $RPM_BUILD_ROOT%{_datadir}/nvidia
287install -p nvidia-application-profiles-%{version}-rc $RPM_BUILD_ROOT%{_datadir}/nvidia
d626b139
JR
288%endif
289
290%ifarch %{ix86}
291%define srcdir 32
292%else
293%define srcdir .
294%endif
28bd8abb 295
eb6ba6c9 296for f in \
75de51d2 297%if %{without system_libglvnd}
d626b139
JR
298 %{srcdir}/libGL.so.1.7.0 \
299 %{srcdir}/libGLX.so.0 \
300 %{srcdir}/libOpenGL.so.0 \
301 %{srcdir}/libGLdispatch.so.0 \
302 %{srcdir}/libGLESv1_CM.so.1.2.0 \
303 %{srcdir}/libGLESv2.so.2.1.0 \
304 %{srcdir}/libEGL.so.1.1.0 \
305%endif
306 %{srcdir}/libGLX_nvidia.so.%{version} \
307 %{srcdir}/libEGL_nvidia.so.%{version} \
308 %{srcdir}/libGLESv1_CM_nvidia.so.%{version} \
309 %{srcdir}/libGLESv2_nvidia.so.%{version} \
310%ifarch %{x8664}
acf1b523 311 %{srcdir}/libnvidia-egl-wayland.so.1.1.4 \
d626b139 312 %{srcdir}/libnvidia-eglcore.so.%{version} \
d626b139
JR
313%endif
314 %{srcdir}/libcuda.so.%{version} \
315 %{srcdir}/libnvcuvid.so.%{version} \
316%ifarch %{x8664}
0f1616f9 317 %{srcdir}/libnvidia-cbl.so.%{version} \
d626b139 318 %{srcdir}/libnvidia-cfg.so.%{version} \
594c0c86 319 %{srcdir}/libnvidia-ngx.so.%{version} \
0f1616f9
JP
320 %{srcdir}/libnvidia-rtcore.so.%{version} \
321 %{srcdir}/libnvoptix.so.%{version} \
d626b139 322%endif
594c0c86 323 %{srcdir}/libnvidia-allocator.so.%{version} \
d626b139
JR
324 %{srcdir}/libnvidia-compiler.so.%{version} \
325 %{srcdir}/libnvidia-encode.so.%{version} \
d626b139
JR
326 %{srcdir}/libnvidia-fbc.so.%{version} \
327 %{srcdir}/libnvidia-glcore.so.%{version} \
328 %{srcdir}/libnvidia-glsi.so.%{version} \
329 %{srcdir}/libnvidia-glvkspirv.so.%{version} \
330 %{srcdir}/libnvidia-ifr.so.%{version} \
331 %{srcdir}/libnvidia-ml.so.%{version} \
332 %{srcdir}/libnvidia-opencl.so.%{version} \
594c0c86 333 %{srcdir}/libnvidia-opticalflow.so.%{version} \
d626b139 334 %{srcdir}/libnvidia-ptxjitcompiler.so.%{version} \
f1773542 335 %{srcdir}/libnvidia-tls.so.%{version} \
eb6ba6c9 336; do
cd436d42 337 install -p $f $RPM_BUILD_ROOT%{_libdir}/nvidia
ffec07c8 338done
76db0ca8 339
672bc855 340install -p %{srcdir}/libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau
eb6ba6c9 341
d626b139 342%ifarch %{x8664}
117b7720
JP
343install -p libglxserver_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
344ln -s libglxserver_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia/libglxserver_nvidia.so
7400930f
ER
345install -p nvidia_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so.%{version}
346ln -s nvidia_drv.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so
d626b139 347%endif
cd436d42
JR
348
349/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/nvidia
350/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
28142503 351
76db0ca8 352ln -sf libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_nvidia.so.1
28142503 353
d626b139 354%ifarch %{x8664}
a116bc07
JR
355echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf
356echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf
d626b139
JR
357%else
358echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
359echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
360%endif
ffec07c8
JR
361
362# OpenGL ABI for Linux compatibility
75de51d2 363%if %{without system_libglvnd}
94175128 364ln -sf libGL.so.1.7.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1
75de51d2
JP
365ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so
366ln -sf libGLX.so.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX.so
367ln -sf libOpenGL.so.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libOpenGL.so
94175128 368ln -sf libGLESv1_CM.so.1.2.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM.so.1
75de51d2 369ln -sf libGLESv1_CM.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM.so
94175128 370ln -sf libGLESv2.so.2.1.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2.so.2
75de51d2 371ln -sf libGLESv2.so.2 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2.so
94175128 372ln -sf libEGL.so.1.1.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL.so.1
c2ff5cb2 373ln -sf libEGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL.so
75de51d2 374%endif
538b2e0c 375ln -sf libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX_nvidia.so.0
10e941a4 376ln -sf libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX_indirect.so.0
538b2e0c
JP
377ln -sf libEGL_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL_nvidia.so.0
378ln -sf libGLESv1_CM_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM_nvidia.so.1
379ln -sf libGLESv2_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2_nvidia.so.2
3427c6f3 380
d626b139 381%ifarch %{x8664}
3427c6f3 382install -p 10_nvidia.json $RPM_BUILD_ROOT%{_datadir}/glvnd/egl_vendor.d
d626b139 383%endif
cd436d42
JR
384ln -sf libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libcuda.so
385ln -sf libnvcuvid.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libnvcuvid.so
6c7b79fe 386
d626b139 387%ifarch %{x8664}
1f3a72f3 388install -p nvidia_icd.json $RPM_BUILD_ROOT%{_datadir}/vulkan/icd.d
ffec07c8 389%endif
d626b139 390%endif
28142503 391
d626b139 392%ifarch %{x8664}
1fdf7dcc 393%if %{with kernel}
e4947020
JR
394install -d $RPM_BUILD_ROOT
395cp -a installed/* $RPM_BUILD_ROOT
1fdf7dcc 396%endif
d626b139 397%endif
28142503 398
236b5374 399install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
02b832fe
ER
400sed -e '
401 s|@@prefix@@|%{_prefix}|g;
402 s|@@libdir@@|%{_libdir}|g;
02b832fe 403 s|@@version@@|%{version}|g' < %{SOURCE3} \
236b5374 404 > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc
405
28142503
PS
406%clean
407rm -rf $RPM_BUILD_ROOT
408
a641155e 409%post
2b14e59b
ER
410cat << 'EOF'
411NOTE: You must also install kernel module for this driver to work
5ff69e47 412 kernel%{_alt_kernel}-video-nvidia-%{version}
2b14e59b 413
25b520ff 414EOF
f3b8319b 415
5ff69e47 416%post libs -p /sbin/ldconfig
cd436d42 417%postun libs -p /sbin/ldconfig
25b520ff 418
1820d34b 419%if %{with userspace}
d626b139 420%ifarch %{x8664}
28142503
PS
421%files
422%defattr(644,root,root,755)
8481604b 423%doc LICENSE NVIDIA_Changelog README.txt
007619d4 424%dir %{_libdir}/xorg/modules/extensions/nvidia
117b7720
JP
425%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglxserver_nvidia.so.*
426%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglxserver_nvidia.so
7400930f 427%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so.*
cd436d42 428%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so
65e71729 429%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xorg.conf.d/10-nvidia.conf
cd436d42 430%{_sysconfdir}/X11/xorg.conf.d/10-nvidia-modules.conf
c6948e82 431%{_sysconfdir}/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
28bd8abb
JP
432%dir %{_datadir}/nvidia
433%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation
434%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
d626b139 435%endif
17fdb673
JR
436
437%files libs
f3b8319b 438%defattr(644,root,root,755)
d626b139 439%ifarch %{x8664}
f3bf0f30
ER
440%dir %{_sysconfdir}/OpenCL
441%dir %{_sysconfdir}/OpenCL/vendors
442%{_sysconfdir}/OpenCL/vendors/nvidia.icd
d626b139 443%endif}
a116bc07 444%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia*.conf
ffec07c8 445%dir %{_libdir}/nvidia
75de51d2 446%if %{without system_libglvnd}
94175128 447%attr(755,root,root) %{_libdir}/nvidia/libGL.so.1.7.0
75de51d2
JP
448%attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1
449%attr(755,root,root) %{_libdir}/nvidia/libGLX.so.0
450%attr(755,root,root) %{_libdir}/nvidia/libOpenGL.so.0
451%attr(755,root,root) %{_libdir}/nvidia/libGLdispatch.so.0
94175128
JP
452%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM.so.1.2.0
453%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv1_CM.so.1
454%attr(755,root,root) %{_libdir}/nvidia/libGLESv2.so.2.1.0
455%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv2.so.2
456%attr(755,root,root) %{_libdir}/nvidia/libEGL.so.1.1.0
457%attr(755,root,root) %ghost %{_libdir}/nvidia/libEGL.so.1
c2ff5cb2 458%endif
10e941a4
JP
459%attr(755,root,root) %ghost %{_libdir}/nvidia/libEGL_nvidia.so.0
460%attr(755,root,root) %{_libdir}/nvidia/libEGL_nvidia.so.*.*
10e941a4
JP
461%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv1_CM_nvidia.so.1
462%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM_nvidia.so.*.*
10e941a4
JP
463%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv2_nvidia.so.2
464%attr(755,root,root) %{_libdir}/nvidia/libGLESv2_nvidia.so.*.*
10e941a4
JP
465%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLX_indirect.so.0
466%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLX_nvidia.so.0
467%attr(755,root,root) %{_libdir}/nvidia/libGLX_nvidia.so.*.*
d626b139 468%ifarch %{x8664}
538b2e0c 469%attr(755,root,root) %{_libdir}/nvidia/libnvidia-egl-wayland.so.*.*.*
b440dd78 470%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-egl-wayland.so.1
538b2e0c 471%attr(755,root,root) %{_libdir}/nvidia/libnvidia-eglcore.so.*.*
d626b139 472%endif
cd436d42
JR
473%attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.*
474%attr(755,root,root) %ghost %{_libdir}/nvidia/libcuda.so.1
475%attr(755,root,root) %{_libdir}/nvidia/libcuda.so
476%attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so.*.*
477%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvcuvid.so.1
478%attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so
d626b139 479%ifarch %{x8664}
0f1616f9 480%attr(755,root,root) %{_libdir}/nvidia/libnvidia-cbl.so.*.*
cd436d42
JR
481%attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.*
482%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-cfg.so.1
594c0c86
JP
483%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ngx.so.*.*
484%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ngx.so.1
0f1616f9
JP
485%attr(755,root,root) %{_libdir}/nvidia/libnvidia-rtcore.so.*.*
486%attr(755,root,root) %{_libdir}/nvidia/libnvoptix.so.*.*
487%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvoptix.so.1
d626b139 488%endif
594c0c86
JP
489%attr(755,root,root) %{_libdir}/nvidia/libnvidia-allocator.so.*.*
490%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-allocator.so.1
cd436d42 491%attr(755,root,root) %{_libdir}/nvidia/libnvidia-compiler.so.*.*
5ee8f0c8
JR
492%attr(755,root,root) %{_libdir}/nvidia/libnvidia-encode.so.*.*
493%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-encode.so.1
10e941a4
JP
494%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-fbc.so.1
495%attr(755,root,root) %{_libdir}/nvidia/libnvidia-fbc.so.*.*
cd436d42 496%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glcore.so.*.*
10e941a4 497%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glsi.so.*.*
7f0cefc2 498%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glvkspirv.so.*.*
10e941a4
JP
499%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ifr.so.1
500%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ifr.so.*.*
cd436d42
JR
501%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ml.so.*.*
502%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ml.so.1
5ee8f0c8
JR
503%attr(755,root,root) %{_libdir}/nvidia/libnvidia-opencl.so.*.*
504%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-opencl.so.1
594c0c86
JP
505%attr(755,root,root) %{_libdir}/nvidia/libnvidia-opticalflow.so.*.*
506%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-opticalflow.so.1
10e941a4 507%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ptxjitcompiler.so.*.*
594c0c86 508%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ptxjitcompiler.so.1
cd436d42 509%attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.*
76db0ca8 510%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nvidia.so.*.*
f3b8319b 511%attr(755,root,root) %ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
d626b139 512%ifarch %{x8664}
96251f94 513%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
7c831f98 514%{_datadir}/vulkan/icd.d/nvidia_icd.json
d626b139 515%endif
28142503 516
28142503
PS
517%files devel
518%defattr(644,root,root,755)
75de51d2
JP
519%if %{without system_libglvnd}
520%attr(755,root,root) %{_libdir}/nvidia/libGL.so
521%attr(755,root,root) %{_libdir}/nvidia/libGLX.so
522%attr(755,root,root) %{_libdir}/nvidia/libOpenGL.so
523%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM.so
524%attr(755,root,root) %{_libdir}/nvidia/libGLESv2.so
10e941a4 525%attr(755,root,root) %{_libdir}/nvidia/libEGL.so
c2ff5cb2 526%endif
236b5374 527%{_pkgconfigdir}/gl.pc
63c6d4b1 528
a9160796
ER
529%files doc
530%defattr(644,root,root,755)
8481604b 531%doc html/*
a9160796 532
d626b139 533%ifarch %{x8664}
d4a34ce2 534%files progs
01766b04 535%defattr(644,root,root,755)
8481604b 536%attr(755,root,root) %{_bindir}/nvidia-bug-report.sh
df1704ce
KK
537%attr(755,root,root) %{_bindir}/nvidia-cuda-mps-control
538%attr(755,root,root) %{_bindir}/nvidia-cuda-mps-server
8481604b 539%attr(755,root,root) %{_bindir}/nvidia-smi
225cc701 540%attr(755,root,root) %{_bindir}/nvidia-xconfig
df1704ce 541%{_mandir}/man1/nvidia-cuda-mps-control.1*
5da85237
ER
542%{_mandir}/man1/nvidia-smi.1*
543%{_mandir}/man1/nvidia-xconfig.1*
544%if %{with settings}
2a45f872 545%attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh
5da85237
ER
546%attr(755,root,root) %{_bindir}/nvidia-settings
547%{_mandir}/man1/nvidia-settings.1*
225cc701 548%{_desktopdir}/nvidia-settings.desktop
225cc701 549%{_pixmapsdir}/nvidia-settings.png
1820d34b 550%endif
d626b139
JR
551%endif
552%endif
This page took 0.343799 seconds and 4 git commands to generate.