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