- release 2 (by relup.sh)
[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
3b8b26b4 29%define rel 2
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
5ac3ee6a 36Version: 440.82
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
5ac3ee6a 42# Source0-md5: 80eb4fd64124c5cab0ebf560f84a9bfa
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} \
0f1616f9
JP
319 %{srcdir}/libnvidia-rtcore.so.%{version} \
320 %{srcdir}/libnvoptix.so.%{version} \
d626b139
JR
321%endif
322 %{srcdir}/libnvidia-compiler.so.%{version} \
323 %{srcdir}/libnvidia-encode.so.%{version} \
324 %{srcdir}/libnvidia-fatbinaryloader.so.%{version} \
325 %{srcdir}/libnvidia-fbc.so.%{version} \
326 %{srcdir}/libnvidia-glcore.so.%{version} \
327 %{srcdir}/libnvidia-glsi.so.%{version} \
328 %{srcdir}/libnvidia-glvkspirv.so.%{version} \
329 %{srcdir}/libnvidia-ifr.so.%{version} \
330 %{srcdir}/libnvidia-ml.so.%{version} \
331 %{srcdir}/libnvidia-opencl.so.%{version} \
332 %{srcdir}/libnvidia-ptxjitcompiler.so.%{version} \
f1773542 333 %{srcdir}/libnvidia-tls.so.%{version} \
eb6ba6c9 334; do
cd436d42 335 install -p $f $RPM_BUILD_ROOT%{_libdir}/nvidia
ffec07c8 336done
76db0ca8 337
672bc855 338install -p %{srcdir}/libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau
eb6ba6c9 339
d626b139 340%ifarch %{x8664}
117b7720
JP
341install -p libglxserver_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
342ln -s libglxserver_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia/libglxserver_nvidia.so
7400930f
ER
343install -p nvidia_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so.%{version}
344ln -s nvidia_drv.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so
d626b139 345%endif
cd436d42
JR
346
347/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/nvidia
348/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
28142503 349
76db0ca8 350ln -sf libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_nvidia.so.1
28142503 351
d626b139 352%ifarch %{x8664}
a116bc07
JR
353echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf
354echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf
d626b139
JR
355%else
356echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
357echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
358%endif
ffec07c8
JR
359
360# OpenGL ABI for Linux compatibility
75de51d2 361%if %{without system_libglvnd}
94175128 362ln -sf libGL.so.1.7.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1
75de51d2
JP
363ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so
364ln -sf libGLX.so.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX.so
365ln -sf libOpenGL.so.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libOpenGL.so
94175128 366ln -sf libGLESv1_CM.so.1.2.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM.so.1
75de51d2 367ln -sf libGLESv1_CM.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM.so
94175128 368ln -sf libGLESv2.so.2.1.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2.so.2
75de51d2 369ln -sf libGLESv2.so.2 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2.so
94175128 370ln -sf libEGL.so.1.1.0 $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL.so.1
c2ff5cb2 371ln -sf libEGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL.so
75de51d2 372%endif
538b2e0c 373ln -sf libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX_nvidia.so.0
10e941a4 374ln -sf libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX_indirect.so.0
538b2e0c
JP
375ln -sf libEGL_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL_nvidia.so.0
376ln -sf libGLESv1_CM_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM_nvidia.so.1
377ln -sf libGLESv2_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2_nvidia.so.2
3427c6f3 378
d626b139 379%ifarch %{x8664}
3427c6f3 380install -p 10_nvidia.json $RPM_BUILD_ROOT%{_datadir}/glvnd/egl_vendor.d
d626b139 381%endif
cd436d42
JR
382ln -sf libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libcuda.so
383ln -sf libnvcuvid.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libnvcuvid.so
6c7b79fe 384
d626b139 385%ifarch %{x8664}
1f3a72f3 386install -p nvidia_icd.json $RPM_BUILD_ROOT%{_datadir}/vulkan/icd.d
ffec07c8 387%endif
d626b139 388%endif
28142503 389
d626b139 390%ifarch %{x8664}
1fdf7dcc 391%if %{with kernel}
e4947020
JR
392install -d $RPM_BUILD_ROOT
393cp -a installed/* $RPM_BUILD_ROOT
1fdf7dcc 394%endif
d626b139 395%endif
28142503 396
236b5374 397install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
02b832fe
ER
398sed -e '
399 s|@@prefix@@|%{_prefix}|g;
400 s|@@libdir@@|%{_libdir}|g;
02b832fe 401 s|@@version@@|%{version}|g' < %{SOURCE3} \
236b5374 402 > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc
403
28142503
PS
404%clean
405rm -rf $RPM_BUILD_ROOT
406
a641155e 407%post
2b14e59b
ER
408cat << 'EOF'
409NOTE: You must also install kernel module for this driver to work
5ff69e47 410 kernel%{_alt_kernel}-video-nvidia-%{version}
2b14e59b 411
25b520ff 412EOF
f3b8319b 413
5ff69e47 414%post libs -p /sbin/ldconfig
cd436d42 415%postun libs -p /sbin/ldconfig
25b520ff 416
1820d34b 417%if %{with userspace}
d626b139 418%ifarch %{x8664}
28142503
PS
419%files
420%defattr(644,root,root,755)
8481604b 421%doc LICENSE NVIDIA_Changelog README.txt
007619d4 422%dir %{_libdir}/xorg/modules/extensions/nvidia
117b7720
JP
423%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglxserver_nvidia.so.*
424%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglxserver_nvidia.so
7400930f 425%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so.*
cd436d42 426%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so
65e71729 427%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xorg.conf.d/10-nvidia.conf
cd436d42 428%{_sysconfdir}/X11/xorg.conf.d/10-nvidia-modules.conf
c6948e82 429%{_sysconfdir}/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
28bd8abb
JP
430%dir %{_datadir}/nvidia
431%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation
432%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
d626b139 433%endif
17fdb673
JR
434
435%files libs
f3b8319b 436%defattr(644,root,root,755)
d626b139 437%ifarch %{x8664}
f3bf0f30
ER
438%dir %{_sysconfdir}/OpenCL
439%dir %{_sysconfdir}/OpenCL/vendors
440%{_sysconfdir}/OpenCL/vendors/nvidia.icd
d626b139 441%endif}
a116bc07 442%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia*.conf
ffec07c8 443%dir %{_libdir}/nvidia
75de51d2 444%if %{without system_libglvnd}
94175128 445%attr(755,root,root) %{_libdir}/nvidia/libGL.so.1.7.0
75de51d2
JP
446%attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1
447%attr(755,root,root) %{_libdir}/nvidia/libGLX.so.0
448%attr(755,root,root) %{_libdir}/nvidia/libOpenGL.so.0
449%attr(755,root,root) %{_libdir}/nvidia/libGLdispatch.so.0
94175128
JP
450%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM.so.1.2.0
451%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv1_CM.so.1
452%attr(755,root,root) %{_libdir}/nvidia/libGLESv2.so.2.1.0
453%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv2.so.2
454%attr(755,root,root) %{_libdir}/nvidia/libEGL.so.1.1.0
455%attr(755,root,root) %ghost %{_libdir}/nvidia/libEGL.so.1
c2ff5cb2 456%endif
10e941a4
JP
457%attr(755,root,root) %ghost %{_libdir}/nvidia/libEGL_nvidia.so.0
458%attr(755,root,root) %{_libdir}/nvidia/libEGL_nvidia.so.*.*
10e941a4
JP
459%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv1_CM_nvidia.so.1
460%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM_nvidia.so.*.*
10e941a4
JP
461%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv2_nvidia.so.2
462%attr(755,root,root) %{_libdir}/nvidia/libGLESv2_nvidia.so.*.*
10e941a4
JP
463%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLX_indirect.so.0
464%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLX_nvidia.so.0
465%attr(755,root,root) %{_libdir}/nvidia/libGLX_nvidia.so.*.*
d626b139 466%ifarch %{x8664}
538b2e0c 467%attr(755,root,root) %{_libdir}/nvidia/libnvidia-egl-wayland.so.*.*.*
b440dd78 468%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-egl-wayland.so.1
538b2e0c 469%attr(755,root,root) %{_libdir}/nvidia/libnvidia-eglcore.so.*.*
d626b139 470%endif
cd436d42
JR
471%attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.*
472%attr(755,root,root) %ghost %{_libdir}/nvidia/libcuda.so.1
473%attr(755,root,root) %{_libdir}/nvidia/libcuda.so
474%attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so.*.*
475%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvcuvid.so.1
476%attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so
d626b139 477%ifarch %{x8664}
0f1616f9 478%attr(755,root,root) %{_libdir}/nvidia/libnvidia-cbl.so.*.*
cd436d42
JR
479%attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.*
480%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-cfg.so.1
0f1616f9
JP
481%attr(755,root,root) %{_libdir}/nvidia/libnvidia-rtcore.so.*.*
482%attr(755,root,root) %{_libdir}/nvidia/libnvoptix.so.*.*
483%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvoptix.so.1
d626b139 484%endif
cd436d42 485%attr(755,root,root) %{_libdir}/nvidia/libnvidia-compiler.so.*.*
5ee8f0c8
JR
486%attr(755,root,root) %{_libdir}/nvidia/libnvidia-encode.so.*.*
487%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-encode.so.1
10e941a4
JP
488%attr(755,root,root) %{_libdir}/nvidia/libnvidia-fatbinaryloader.so.*.*
489%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-fbc.so.1
490%attr(755,root,root) %{_libdir}/nvidia/libnvidia-fbc.so.*.*
cd436d42 491%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glcore.so.*.*
10e941a4 492%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glsi.so.*.*
7f0cefc2 493%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glvkspirv.so.*.*
10e941a4
JP
494%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ifr.so.1
495%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ifr.so.*.*
8d5d4797 496%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ptxjitcompiler.so.1
cd436d42
JR
497%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ml.so.*.*
498%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ml.so.1
5ee8f0c8
JR
499%attr(755,root,root) %{_libdir}/nvidia/libnvidia-opencl.so.*.*
500%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-opencl.so.1
10e941a4 501%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ptxjitcompiler.so.*.*
cd436d42 502%attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.*
76db0ca8 503%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nvidia.so.*.*
f3b8319b 504%attr(755,root,root) %ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
d626b139 505%ifarch %{x8664}
96251f94 506%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
7c831f98 507%{_datadir}/vulkan/icd.d/nvidia_icd.json
d626b139 508%endif
28142503 509
28142503
PS
510%files devel
511%defattr(644,root,root,755)
75de51d2
JP
512%if %{without system_libglvnd}
513%attr(755,root,root) %{_libdir}/nvidia/libGL.so
514%attr(755,root,root) %{_libdir}/nvidia/libGLX.so
515%attr(755,root,root) %{_libdir}/nvidia/libOpenGL.so
516%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM.so
517%attr(755,root,root) %{_libdir}/nvidia/libGLESv2.so
10e941a4 518%attr(755,root,root) %{_libdir}/nvidia/libEGL.so
c2ff5cb2 519%endif
236b5374 520%{_pkgconfigdir}/gl.pc
63c6d4b1 521
a9160796
ER
522%files doc
523%defattr(644,root,root,755)
8481604b 524%doc html/*
a9160796 525
d626b139 526%ifarch %{x8664}
d4a34ce2 527%files progs
01766b04 528%defattr(644,root,root,755)
8481604b 529%attr(755,root,root) %{_bindir}/nvidia-bug-report.sh
df1704ce
KK
530%attr(755,root,root) %{_bindir}/nvidia-cuda-mps-control
531%attr(755,root,root) %{_bindir}/nvidia-cuda-mps-server
8481604b 532%attr(755,root,root) %{_bindir}/nvidia-smi
225cc701 533%attr(755,root,root) %{_bindir}/nvidia-xconfig
df1704ce 534%{_mandir}/man1/nvidia-cuda-mps-control.1*
5da85237
ER
535%{_mandir}/man1/nvidia-smi.1*
536%{_mandir}/man1/nvidia-xconfig.1*
537%if %{with settings}
2a45f872 538%attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh
5da85237
ER
539%attr(755,root,root) %{_bindir}/nvidia-settings
540%{_mandir}/man1/nvidia-settings.1*
225cc701 541%{_desktopdir}/nvidia-settings.desktop
225cc701 542%{_pixmapsdir}/nvidia-settings.png
1820d34b 543%endif
d626b139
JR
544%endif
545%endif
This page took 1.628999 seconds and 4 git commands to generate.