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