new bcond "glvnd" (disabled by default)
[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:
538b2e0c 7%bcond_with glvnd # with GL vendor neutral libs
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
a31ddb6a 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
a31ddb6a 36Version: 381.22
e4947020 37Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
d7c1ffa0 38Epoch: 1
28142503 39License: nVidia Binary
4a185d32 40Group: X11
e2ce85dd 41Source0: http://us.download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}.run
a31ddb6a 42# Source0-md5: 8825cec1640739521689bd80121d1425
e2ce85dd 43Source1: http://us.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-no-compat32.run
a31ddb6a 44# Source1-md5: 0e9590d48703c8baa034b6f0f8bbf1e5
a14b5013 45Source2: %{pname}-xinitrc.sh
236b5374 46Source3: gl.pc.in
cd436d42
JR
47Source4: 10-nvidia.conf
48Source5: 10-nvidia-modules.conf
bcf69910
JB
49Patch0: X11-driver-nvidia-GL.patch
50Patch1: X11-driver-nvidia-desktop.patch
4ab31d9e 51Patch2: linux-4.1-and-older.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
bb6d5ffd 63Provides: vulkan(icd) = 1.0.42
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
538b2e0c
JP
116%if %{with glvnd}
117Requires: libglvnd
118Requires: libglvnd-libGL
119Requires: libglvnd-libGLES
120%endif
76db0ca8 121Requires: libvdpau >= 0.3
ba4c5c19 122Provides: OpenGL = 3.3
17fdb673 123Provides: OpenGL-GLX = 1.4
17fdb673
JR
124Obsoletes: X11-OpenGL-core < 1:7.0.0
125Obsoletes: X11-OpenGL-libGL < 1:7.0.0
126Obsoletes: XFree86-OpenGL-core < 1:7.0.0
127Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0
17fdb673 128
4c842b35 129%description libs
17fdb673
JR
130NVIDIA OpenGL (GL and GLX only) implementation libraries.
131
4c842b35 132%description libs -l pl.UTF-8
17fdb673
JR
133Implementacja OpenGL (tylko GL i GLX) firmy NVIDIA.
134
28142503 135%package devel
63c6d4b1 136Summary: OpenGL (GL and GLX) header files
754fc4fe 137Summary(hu.UTF-8): OpenGL (GL és GLX) fejléc fájlok
63c6d4b1 138Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX)
28142503 139Group: X11/Development/Libraries
0703c7e8 140Requires: %{pname}-libs = %{epoch}:%{version}-%{rel}
63c6d4b1 141Provides: OpenGL-GLX-devel = 1.4
1b8b7646 142Provides: OpenGL-devel = 2.1
63c6d4b1
JB
143Obsoletes: X11-OpenGL-devel-base
144Obsoletes: XFree86-OpenGL-devel-base
2d490dca 145Obsoletes: XFree86-driver-nvidia-devel
28142503
PS
146Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3
147
148%description devel
63c6d4b1
JB
149OpenGL header files (GL and GLX only) for NVIDIA OpenGL
150implementation.
28142503 151
754fc4fe
ZU
152%description devel -l hu.UTF-8
153OpenGL fejléc fájlok (csak GL és GLX) NVIDIA OpenGL implementációhoz.
154
c311612f 155%description devel -l pl.UTF-8
63c6d4b1
JB
156Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL
157firmy NVIDIA.
158
a9160796
ER
159%package doc
160Summary: Documentation for NVIDIA Graphics Driver
161Group: Documentation
fd356b88
ER
162%if "%{_rpmversion}" >= "5"
163BuildArch: noarch
164%endif
a9160796
ER
165
166%description doc
167NVIDIA Accelerated Linux Graphics Driver README and Installation
168Guide.
169
28142503
PS
170%package progs
171Summary: Tools for advanced control of nVidia graphic cards
754fc4fe 172Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához
b37addd9 173Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia
f12e8b24 174Group: Applications/System
0056ee0e 175Requires: %{pname} = %{epoch}:%{version}
c29343e3 176Suggests: pkgconfig
c064a147 177Obsoletes: XFree86-driver-nvidia-progs
28142503
PS
178
179%description progs
180Tools for advanced control of nVidia graphic cards.
181
754fc4fe
ZU
182%description progs -l hu.UTF-8
183Eszközök az nVidia grafikus kártyák beállításához.
184
c311612f
JR
185%description progs -l pl.UTF-8
186Narzędzia do zarządzania kartami graficznymi nVidia.
28142503 187
e4947020
JR
188%define kernel_pkg()\
189%package -n kernel%{_alt_kernel}-video-nvidia\
190Summary: nVidia kernel module for nVidia Architecture support\
191Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung\
192Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez.\
193Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia\
194Release: %{rel}@%{_kernel_ver_str}\
195Group: Base/Kernel\
196Requires(post,postun): /sbin/depmod\
197Requires: dev >= 2.7.7-10\
e4947020
JR
198%requires_releq_kernel\
199%if %{_kernel_version_code} >= %{_kernel_version_magic 3 10 0}\
200Requires: %{releq_kernel -n drm}\
201%endif\
202Requires(postun): %releq_kernel\
e4947020
JR
203Requires: %{pname} = %{epoch}:%{version}\
204Provides: X11-driver-nvidia(kernel)\
205Obsoletes: XFree86-nvidia-kernel\
206\
207%description -n kernel%{_alt_kernel}-video-nvidia\
208nVidia Architecture support for Linux kernel.\
209\
210%description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8\
211Die nVidia-Architektur-Unterstützung für den Linux-Kern.\
212\
213%description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8\
214nVidia Architektúra támogatás Linux kernelhez.\
215\
216%description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8\
217Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez\
218sterownik nVidii dla Xorg/XFree86.\
219\
220%if %{with kernel}\
221%files -n kernel%{_alt_kernel}-video-nvidia\
222%defattr(644,root,root,755)\
223/lib/modules/%{_kernel_ver}/misc/*.ko*\
224%endif\
225\
226%post -n kernel%{_alt_kernel}-video-nvidia\
227%depmod %{_kernel_ver}\
228\
229%postun -n kernel%{_alt_kernel}-video-nvidia\
230%depmod %{_kernel_ver}\
231%{nil}
232
233%define build_kernel_pkg()\
e4947020
JR
234cd kernel\
235#cat >> Makefile <<'EOF'\
236#\
237#$(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin\
238# cp $< $@\
239#EOF\
240#mv nv-kernel.o{,.bin}\
241#build_kernel_modules -m nvidia\
242%{__make} SYSSRC=%{_kernelsrcdir} clean\
ef40d8b8 243%{__make} SYSSRC=%{_kernelsrcdir} IGNORE_CC_MISMATCH=1 NV_VERBOSE=1 CC=%{__cc} module\
e4947020 244cd ..\
10e941a4 245%install_kernel_modules -D installed -m kernel/nvidia,kernel/nvidia-drm,kernel/nvidia-modeset -d misc\
cad4d6b5
JP
246%ifarch %{x8664}\
247%install_kernel_modules -D installed -m kernel/nvidia-uvm -d misc\
248%endif\
e4947020
JR
249%{nil}
250
fb27eb94 251%{?with_kernel:%{expand:%create_kernel_packages}}
28142503 252
28142503
PS
253%prep
254cd %{_builddir}
8481604b 255rm -rf NVIDIA-Linux-x86*-%{version}*
039c7221 256%ifarch %{ix86}
28142503 257/bin/sh %{SOURCE0} --extract-only
8481604b 258%setup -qDT -n NVIDIA-Linux-x86-%{version}
039c7221
PS
259%else
260/bin/sh %{SOURCE1} --extract-only
8481604b 261%setup -qDT -n NVIDIA-Linux-x86_64-%{version}-no-compat32
039c7221 262%endif
bcf69910 263%patch0 -p1
0029e8cc 264%patch1 -p1
4ab31d9e 265%patch2 -p1
8481604b 266echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild
28142503
PS
267
268%build
fb27eb94 269%{?with_kernel:%{expand:%build_kernel_packages}}
28142503
PS
270
271%install
272rm -rf $RPM_BUILD_ROOT
1820d34b
ER
273
274%if %{with userspace}
cd436d42 275install -d $RPM_BUILD_ROOT%{_libdir}/{nvidia,xorg/modules/{drivers,extensions/nvidia}} \
56656271 276 $RPM_BUILD_ROOT{%{_includedir}/GL,%{_libdir}/vdpau,%{_bindir},%{_mandir}/man1} \
054fcee3 277 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} \
6c7b79fe
JP
278 $RPM_BUILD_ROOT%{_sysconfdir}/{OpenCL/vendors,ld.so.conf.d,X11/xorg.conf.d} \
279 $RPM_BUILD_ROOT%{_datadir}/vulkan/icd.d
28142503 280
5da85237
ER
281%if %{with settings}
282install -p nvidia-settings $RPM_BUILD_ROOT%{_bindir}
283cp -p nvidia-settings.1* $RPM_BUILD_ROOT%{_mandir}/man1
f3bf0f30
ER
284cp -p nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir}
285cp -p nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir}
f3b8319b 286install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh
5da85237
ER
287%endif
288
289install -p nvidia-{smi,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir}
df1704ce
KK
290install -p nvidia-cuda-mps-{control,server} $RPM_BUILD_ROOT%{_bindir}
291cp -p nvidia-{smi,xconfig,cuda-mps-control}.1* $RPM_BUILD_ROOT%{_mandir}/man1
f3bf0f30 292install -p nvidia.icd $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors
eb6ba6c9 293
cd436d42
JR
294install %{SOURCE4} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d
295install %{SOURCE5} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d
296sed -i -e 's|@@LIBDIR@@|%{_libdir}|g' $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/10-nvidia-modules.conf
da05371c 297
eb6ba6c9 298for f in \
538b2e0c 299%if %{with glvnd}
10e941a4 300 libGLX_nvidia.so.%{version} \
10e941a4
JP
301 libEGL.so.1 \
302 libEGL_nvidia.so.%{version} \
10e941a4 303 libGLESv1_CM_nvidia.so.%{version} \
10e941a4 304 libGLESv2_nvidia.so.%{version} \
538b2e0c
JP
305 libnvidia-egl-wayland.so.1.0.1 \
306 libnvidia-eglcore.so.%{version} \
307%else
308 libGL.so.%{version} \
309%endif
8481604b 310 libcuda.so.%{version} \
da05371c 311 libnvcuvid.so.%{version} \
8481604b 312 libnvidia-cfg.so.%{version} \
da05371c 313 libnvidia-compiler.so.%{version} \
10e941a4
JP
314 libnvidia-encode.so.%{version} \
315 libnvidia-fatbinaryloader.so.%{version} \
316 libnvidia-fbc.so.%{version} \
8481604b 317 libnvidia-glcore.so.%{version} \
10e941a4
JP
318 libnvidia-glsi.so.%{version} \
319 libnvidia-ifr.so.%{version} \
4c979981 320 libnvidia-ml.so.%{version} \
5ee8f0c8 321 libnvidia-opencl.so.%{version} \
10e941a4 322 libnvidia-ptxjitcompiler.so.%{version} \
8481604b 323 tls/libnvidia-tls.so.%{version} \
eb6ba6c9 324; do
cd436d42 325 install -p $f $RPM_BUILD_ROOT%{_libdir}/nvidia
ffec07c8 326done
76db0ca8 327
8481604b 328install -p libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau
eb6ba6c9 329
cd436d42
JR
330install -p libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
331ln -s libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia/libglx.so
7400930f
ER
332install -p nvidia_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so.%{version}
333ln -s nvidia_drv.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so
cd436d42 334install -p libnvidia-wfb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
2f2dbb1c 335ln -s libnvidia-wfb.so.1 $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so
cd436d42
JR
336
337/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/nvidia
338/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia
28142503 339
02b832fe 340cp -p gl*.h $RPM_BUILD_ROOT%{_includedir}/GL
28142503 341
76db0ca8 342ln -sf libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_nvidia.so.1
28142503 343
a116bc07
JR
344%ifarch %{x8664}
345echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf
346echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf
347%else
ffec07c8 348echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
cd436d42 349echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf
a116bc07 350%endif
ffec07c8
JR
351
352# OpenGL ABI for Linux compatibility
538b2e0c
JP
353%if %{with glvnd}
354ln -sf libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX_nvidia.so.0
10e941a4
JP
355ln -sf libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLX_indirect.so.0
356ln -sf libEGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL.so
538b2e0c
JP
357ln -sf libEGL_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libEGL_nvidia.so.0
358ln -sf libGLESv1_CM_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv1_CM_nvidia.so.1
359ln -sf libGLESv2_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGLESv2_nvidia.so.2
360%else
361ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1
362ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so
363%endif
cd436d42
JR
364ln -sf libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libcuda.so
365ln -sf libnvcuvid.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libnvcuvid.so
6c7b79fe
JP
366
367install nvidia_icd.json $RPM_BUILD_ROOT%{_datadir}/vulkan/icd.d
ffec07c8 368%endif
28142503 369
1fdf7dcc 370%if %{with kernel}
e4947020
JR
371install -d $RPM_BUILD_ROOT
372cp -a installed/* $RPM_BUILD_ROOT
1fdf7dcc 373%endif
28142503 374
236b5374 375install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
02b832fe
ER
376sed -e '
377 s|@@prefix@@|%{_prefix}|g;
378 s|@@libdir@@|%{_libdir}|g;
379 s|@@includedir@@|%{_includedir}|g;
380 s|@@version@@|%{version}|g' < %{SOURCE3} \
236b5374 381 > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc
382
28142503
PS
383%clean
384rm -rf $RPM_BUILD_ROOT
385
a641155e 386%post
2b14e59b
ER
387cat << 'EOF'
388NOTE: You must also install kernel module for this driver to work
5ff69e47 389 kernel%{_alt_kernel}-video-nvidia-%{version}
2b14e59b 390
25b520ff 391EOF
f3b8319b 392
5ff69e47 393%post libs -p /sbin/ldconfig
cd436d42 394%postun libs -p /sbin/ldconfig
25b520ff 395
1820d34b 396%if %{with userspace}
28142503
PS
397%files
398%defattr(644,root,root,755)
8481604b 399%doc LICENSE NVIDIA_Changelog README.txt
007619d4 400%dir %{_libdir}/xorg/modules/extensions/nvidia
cd436d42 401%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so.*.*
4c0d0c97
JR
402%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so.1
403%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so
cd436d42 404%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglx.so.*
4c0d0c97 405%attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglx.so
7400930f 406%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so.*
cd436d42
JR
407%attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so
408%{_sysconfdir}/X11/xorg.conf.d/10-nvidia.conf
409%{_sysconfdir}/X11/xorg.conf.d/10-nvidia-modules.conf
6c7b79fe 410%{_datadir}/vulkan/icd.d/nvidia_icd.json
17fdb673
JR
411
412%files libs
f3b8319b 413%defattr(644,root,root,755)
f3bf0f30
ER
414%dir %{_sysconfdir}/OpenCL
415%dir %{_sysconfdir}/OpenCL/vendors
416%{_sysconfdir}/OpenCL/vendors/nvidia.icd
a116bc07 417%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia*.conf
ffec07c8 418%dir %{_libdir}/nvidia
538b2e0c 419%if %{with glvnd}
10e941a4
JP
420%attr(755,root,root) %{_libdir}/nvidia/libEGL.so.1
421%attr(755,root,root) %ghost %{_libdir}/nvidia/libEGL_nvidia.so.0
422%attr(755,root,root) %{_libdir}/nvidia/libEGL_nvidia.so.*.*
10e941a4
JP
423%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv1_CM_nvidia.so.1
424%attr(755,root,root) %{_libdir}/nvidia/libGLESv1_CM_nvidia.so.*.*
10e941a4
JP
425%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLESv2_nvidia.so.2
426%attr(755,root,root) %{_libdir}/nvidia/libGLESv2_nvidia.so.*.*
10e941a4
JP
427%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLX_indirect.so.0
428%attr(755,root,root) %ghost %{_libdir}/nvidia/libGLX_nvidia.so.0
429%attr(755,root,root) %{_libdir}/nvidia/libGLX_nvidia.so.*.*
538b2e0c
JP
430%attr(755,root,root) %{_libdir}/nvidia/libnvidia-egl-wayland.so.*.*.*
431%attr(755,root,root) %{_libdir}/nvidia/libnvidia-eglcore.so.*.*
432%else
433%attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.*
434%attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1
435%endif
cd436d42
JR
436%attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.*
437%attr(755,root,root) %ghost %{_libdir}/nvidia/libcuda.so.1
438%attr(755,root,root) %{_libdir}/nvidia/libcuda.so
439%attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so.*.*
440%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvcuvid.so.1
441%attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so
442%attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.*
443%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-cfg.so.1
444%attr(755,root,root) %{_libdir}/nvidia/libnvidia-compiler.so.*.*
5ee8f0c8
JR
445%attr(755,root,root) %{_libdir}/nvidia/libnvidia-encode.so.*.*
446%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-encode.so.1
10e941a4
JP
447%attr(755,root,root) %{_libdir}/nvidia/libnvidia-fatbinaryloader.so.*.*
448%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-fbc.so.1
449%attr(755,root,root) %{_libdir}/nvidia/libnvidia-fbc.so.*.*
cd436d42 450%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glcore.so.*.*
10e941a4
JP
451%attr(755,root,root) %{_libdir}/nvidia/libnvidia-glsi.so.*.*
452%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ifr.so.1
453%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ifr.so.*.*
cd436d42
JR
454%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ml.so.*.*
455%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ml.so.1
5ee8f0c8
JR
456%attr(755,root,root) %{_libdir}/nvidia/libnvidia-opencl.so.*.*
457%attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-opencl.so.1
10e941a4 458%attr(755,root,root) %{_libdir}/nvidia/libnvidia-ptxjitcompiler.so.*.*
cd436d42 459%attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.*
76db0ca8 460%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nvidia.so.*.*
f3b8319b 461%attr(755,root,root) %ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
28142503 462
28142503
PS
463%files devel
464%defattr(644,root,root,755)
73eb73e1 465%dir %{_includedir}/GL
63c6d4b1
JB
466%{_includedir}/GL/gl.h
467%{_includedir}/GL/glext.h
468%{_includedir}/GL/glx.h
469%{_includedir}/GL/glxext.h
538b2e0c 470%if %{with glvnd}
10e941a4 471%attr(755,root,root) %{_libdir}/nvidia/libEGL.so
538b2e0c
JP
472%else
473%attr(755,root,root) %{_libdir}/nvidia/libGL.so
474%endif
236b5374 475%{_pkgconfigdir}/gl.pc
63c6d4b1 476
a9160796
ER
477%files doc
478%defattr(644,root,root,755)
8481604b 479%doc html/*
a9160796 480
d4a34ce2 481%files progs
01766b04 482%defattr(644,root,root,755)
8481604b 483%attr(755,root,root) %{_bindir}/nvidia-bug-report.sh
df1704ce
KK
484%attr(755,root,root) %{_bindir}/nvidia-cuda-mps-control
485%attr(755,root,root) %{_bindir}/nvidia-cuda-mps-server
8481604b 486%attr(755,root,root) %{_bindir}/nvidia-smi
225cc701 487%attr(755,root,root) %{_bindir}/nvidia-xconfig
df1704ce 488%{_mandir}/man1/nvidia-cuda-mps-control.1*
5da85237
ER
489%{_mandir}/man1/nvidia-smi.1*
490%{_mandir}/man1/nvidia-xconfig.1*
491%if %{with settings}
2a45f872 492%attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh
5da85237
ER
493%attr(755,root,root) %{_bindir}/nvidia-settings
494%{_mandir}/man1/nvidia-settings.1*
225cc701 495%{_desktopdir}/nvidia-settings.desktop
225cc701 496%{_pixmapsdir}/nvidia-settings.png
1820d34b 497%endif
5da85237 498%endif
This page took 0.357157 seconds and 4 git commands to generate.