]>
Commit | Line | Data |
---|---|---|
2b14e59b | 1 | # TODO |
88c3ca4d | 2 | # - drop binary-only nvidia-settings from here, and use nvidia-settings.spec for it |
0dbede64 | 3 | # - kernel-drm is required on never kernels. driver for kernel-longterm not requires drm |
28142503 PS |
4 | # |
5 | # Conditional build: | |
bf683e7a | 6 | %bcond_without kernel # without kernel packages |
1820d34b | 7 | %bcond_without userspace # don't build userspace programs |
5da85237 | 8 | %bcond_with settings # package nvidia-settings here (GPL version of same packaged from nvidia-settings.spec) |
a14b5013 | 9 | %bcond_with verbose # verbose build (V=1) |
10 | ||
e4947020 JR |
11 | # The goal here is to have main, userspace, package built once with |
12 | # simple release number, and only rebuild kernel packages with kernel | |
13 | # version as part of release number, without the need to bump release | |
14 | # with every kernel change. | |
15 | %if 0%{?_pld_builder:1} && %{with kernel} && %{with userspace} | |
16 | %{error:kernel and userspace cannot be built at the same time on PLD builders} | |
17 | exit 1 | |
18 | %endif | |
19 | ||
c543fa7c ER |
20 | %if %{without userspace} |
21 | # nothing to be placed to debuginfo package | |
22 | %define _enable_debug_packages 0 | |
23 | %endif | |
e4947020 | 24 | |
7cbecde6 | 25 | %define no_install_post_check_so 1 |
c5bb5957 | 26 | |
1ad679c0 | 27 | %define rel 4 |
a0c8707d | 28 | %define pname xorg-driver-video-nvidia-legacy-340xx |
974295b8 | 29 | Summary: Linux Drivers for nVidia GeForce/Quadro Chips |
754fc4fe | 30 | Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez |
974295b8 | 31 | Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro |
e4947020 | 32 | Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} |
8a7af30b | 33 | # when updating version here, keep nvidia-settings.spec in sync as well |
fb6c1203 | 34 | Version: 340.108 |
e4947020 | 35 | Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} |
d7c1ffa0 | 36 | Epoch: 1 |
28142503 | 37 | License: nVidia Binary |
4a185d32 | 38 | Group: X11 |
e2ce85dd | 39 | Source0: http://us.download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}.run |
fb6c1203 | 40 | # Source0-md5: ffa278e613337e638fd10de41dae3630 |
e2ce85dd | 41 | Source1: http://us.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-no-compat32.run |
fb6c1203 | 42 | # Source1-md5: e783e383bd4344d590ad429eb0883717 |
a0c8707d | 43 | Source2: xorg-driver-video-nvidia-xinitrc.sh |
236b5374 | 44 | Source3: gl.pc.in |
cd436d42 JR |
45 | Source4: 10-nvidia.conf |
46 | Source5: 10-nvidia-modules.conf | |
bcf69910 JB |
47 | Patch0: X11-driver-nvidia-GL.patch |
48 | Patch1: X11-driver-nvidia-desktop.patch | |
02d0141d | 49 | Patch2: kernel-5.6.patch |
88c3ca4d | 50 | URL: https://www.nvidia.com/en-us/drivers/unix/ |
fb27eb94 JR |
51 | BuildRequires: rpmbuild(macros) >= 1.701 |
52 | %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}} | |
039c7221 | 53 | BuildRequires: sed >= 4.0 |
0ed6aeef | 54 | BuildConflicts: XFree86-nvidia |
0703c7e8 | 55 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} |
8343d24d | 56 | Requires: xorg-xserver-server |
da6502fc | 57 | Requires: xorg-xserver-server(videodrv-abi) <= 24.1 |
754fc4fe | 58 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
857c0a69 JP |
59 | Provides: ocl-icd(nvidia) |
60 | Provides: ocl-icd-driver | |
f3bf0f30 | 61 | Provides: xorg-driver-video |
4e3e8de1 | 62 | Provides: xorg-xserver-module(glx) |
2d490dca | 63 | Obsoletes: XFree86-driver-nvidia |
28142503 PS |
64 | Obsoletes: XFree86-nvidia |
65 | Conflicts: XFree86-OpenGL-devel <= 4.2.0-3 | |
1b927e61 | 66 | ExclusiveArch: %{ix86} %{x8664} |
b67880c3 | 67 | BuildRoot: %{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 |
74 | This driver set adds improved 2D functionality to the Xorg X server as |
75 | well as high performance OpenGL acceleration, AGP support, support for | |
76 | most flat panels, and 2D multiple monitor support. Supported hardware: | |
77 | modern NVIDIA GeForce (from GeForce2 MX) and Quadro (Quadro4 and up) | |
78 | based graphics accelerators. | |
28142503 | 79 | |
974295b8 JB |
80 | The 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 |
87 | Ez a meghajtó kibővíti az Xorg X szerver 2D működését OpenGL | |
88 | gyorsítással, AGP támogatással és támogatja a több monitort. | |
89 | Támogatott hardverek: modern NVIDIA GeForce (GeForce2 MX-től) és | |
90 | Quadro (Quadro4 és újabbak) alapú grafikai gyorsítók. | |
91 | ||
92 | A 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 |
98 | Usprawnione sterowniki dla kart graficznych nVidia do serwera Xorg, |
99 | dające wysokowydajną akcelerację OpenGL, obsługę AGP i wielu monitorów | |
100 | 2D. Obsługują w miarę nowe karty NVIDIA GeForce (od wersji GeForce2 | |
101 | MX) oraz Quadro (od wersji Quadro4). | |
28142503 | 102 | |
974295b8 JB |
103 | Starsze 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 |
109 | Summary: OpenGL (GL and GLX) Nvidia libraries | |
110 | Summary(pl.UTF-8): Biblioteki OpenGL (GL i GLX) Nvidia | |
111 | Group: X11/Development/Libraries | |
f3b8319b | 112 | Requires(post,postun): /sbin/ldconfig |
76db0ca8 | 113 | Requires: libvdpau >= 0.3 |
ba4c5c19 | 114 | Provides: OpenGL = 3.3 |
17fdb673 | 115 | Provides: OpenGL-GLX = 1.4 |
17fdb673 JR |
116 | Obsoletes: X11-OpenGL-core < 1:7.0.0 |
117 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
118 | Obsoletes: XFree86-OpenGL-core < 1:7.0.0 | |
119 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
17fdb673 | 120 | |
4c842b35 | 121 | %description libs |
17fdb673 JR |
122 | NVIDIA OpenGL (GL and GLX only) implementation libraries. |
123 | ||
4c842b35 | 124 | %description libs -l pl.UTF-8 |
17fdb673 JR |
125 | Implementacja OpenGL (tylko GL i GLX) firmy NVIDIA. |
126 | ||
28142503 | 127 | %package devel |
63c6d4b1 | 128 | Summary: OpenGL (GL and GLX) header files |
754fc4fe | 129 | Summary(hu.UTF-8): OpenGL (GL és GLX) fejléc fájlok |
63c6d4b1 | 130 | Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX) |
28142503 | 131 | Group: X11/Development/Libraries |
0703c7e8 | 132 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} |
63c6d4b1 | 133 | Provides: OpenGL-GLX-devel = 1.4 |
1b8b7646 | 134 | Provides: OpenGL-devel = 2.1 |
63c6d4b1 JB |
135 | Obsoletes: X11-OpenGL-devel-base |
136 | Obsoletes: XFree86-OpenGL-devel-base | |
2d490dca | 137 | Obsoletes: XFree86-driver-nvidia-devel |
28142503 PS |
138 | Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3 |
139 | ||
140 | %description devel | |
63c6d4b1 JB |
141 | OpenGL header files (GL and GLX only) for NVIDIA OpenGL |
142 | implementation. | |
28142503 | 143 | |
754fc4fe ZU |
144 | %description devel -l hu.UTF-8 |
145 | OpenGL fejléc fájlok (csak GL és GLX) NVIDIA OpenGL implementációhoz. | |
146 | ||
c311612f | 147 | %description devel -l pl.UTF-8 |
63c6d4b1 JB |
148 | Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL |
149 | firmy NVIDIA. | |
150 | ||
a9160796 ER |
151 | %package doc |
152 | Summary: Documentation for NVIDIA Graphics Driver | |
153 | Group: Documentation | |
154 | ||
155 | %description doc | |
156 | NVIDIA Accelerated Linux Graphics Driver README and Installation | |
157 | Guide. | |
158 | ||
28142503 PS |
159 | %package progs |
160 | Summary: Tools for advanced control of nVidia graphic cards | |
754fc4fe | 161 | Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához |
b37addd9 | 162 | Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia |
f12e8b24 | 163 | Group: Applications/System |
0056ee0e | 164 | Requires: %{pname} = %{epoch}:%{version} |
c29343e3 | 165 | Suggests: pkgconfig |
c064a147 | 166 | Obsoletes: XFree86-driver-nvidia-progs |
28142503 PS |
167 | |
168 | %description progs | |
169 | Tools for advanced control of nVidia graphic cards. | |
170 | ||
754fc4fe ZU |
171 | %description progs -l hu.UTF-8 |
172 | Eszközök az nVidia grafikus kártyák beállításához. | |
173 | ||
c311612f JR |
174 | %description progs -l pl.UTF-8 |
175 | Narzędzia do zarządzania kartami graficznymi nVidia. | |
28142503 | 176 | |
e4947020 | 177 | %define kernel_pkg()\ |
1dc881f2 | 178 | %package -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx\ |
e4947020 JR |
179 | Summary: nVidia kernel module for nVidia Architecture support\ |
180 | Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung\ | |
181 | Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez.\ | |
182 | Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia\ | |
183 | Release: %{rel}@%{_kernel_ver_str}\ | |
184 | Group: Base/Kernel\ | |
185 | Requires(post,postun): /sbin/depmod\ | |
186 | Requires: dev >= 2.7.7-10\ | |
e4947020 JR |
187 | %requires_releq_kernel\ |
188 | %if %{_kernel_version_code} >= %{_kernel_version_magic 3 10 0}\ | |
189 | Requires: %{releq_kernel -n drm}\ | |
190 | %endif\ | |
191 | Requires(postun): %releq_kernel\ | |
e4947020 JR |
192 | Requires: %{pname} = %{epoch}:%{version}\ |
193 | Provides: X11-driver-nvidia(kernel)\ | |
194 | Obsoletes: XFree86-nvidia-kernel\ | |
195 | \ | |
1dc881f2 | 196 | %description -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx\ |
e4947020 JR |
197 | nVidia Architecture support for Linux kernel.\ |
198 | \ | |
1dc881f2 | 199 | %description -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx -l de.UTF-8\ |
e4947020 JR |
200 | Die nVidia-Architektur-Unterstützung für den Linux-Kern.\ |
201 | \ | |
1dc881f2 | 202 | %description -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx -l hu.UTF-8\ |
e4947020 JR |
203 | nVidia Architektúra támogatás Linux kernelhez.\ |
204 | \ | |
1dc881f2 | 205 | %description -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx -l pl.UTF-8\ |
e4947020 JR |
206 | Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez\ |
207 | sterownik nVidii dla Xorg/XFree86.\ | |
208 | \ | |
209 | %if %{with kernel}\ | |
1dc881f2 | 210 | %files -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx\ |
e4947020 JR |
211 | %defattr(644,root,root,755)\ |
212 | /lib/modules/%{_kernel_ver}/misc/*.ko*\ | |
213 | %endif\ | |
214 | \ | |
1dc881f2 | 215 | %post -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx\ |
e4947020 JR |
216 | %depmod %{_kernel_ver}\ |
217 | \ | |
1dc881f2 | 218 | %postun -n kernel%{_alt_kernel}-video-nvidia-legacy-340xx\ |
e4947020 JR |
219 | %depmod %{_kernel_ver}\ |
220 | %{nil} | |
221 | ||
222 | %define build_kernel_pkg()\ | |
e4947020 JR |
223 | cd kernel\ |
224 | #cat >> Makefile <<'EOF'\ | |
225 | #\ | |
226 | #$(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin\ | |
227 | # cp $< $@\ | |
228 | #EOF\ | |
229 | #mv nv-kernel.o{,.bin}\ | |
230 | #build_kernel_modules -m nvidia\ | |
30985d0f JR |
231 | %{__make} SYSSRC=%{_kernelsrcdir} M=`pwd` clean\ |
232 | %{__make} SYSSRC=%{_kernelsrcdir} M=`pwd` module\ | |
e4947020 JR |
233 | cd ..\ |
234 | %install_kernel_modules -D installed -m kernel/nvidia -d misc\ | |
235 | %{nil} | |
236 | ||
fb27eb94 | 237 | %{?with_kernel:%{expand:%create_kernel_packages}} |
28142503 | 238 | |
28142503 PS |
239 | %prep |
240 | cd %{_builddir} | |
8481604b | 241 | rm -rf NVIDIA-Linux-x86*-%{version}* |
039c7221 | 242 | %ifarch %{ix86} |
28142503 | 243 | /bin/sh %{SOURCE0} --extract-only |
8481604b | 244 | %setup -qDT -n NVIDIA-Linux-x86-%{version} |
039c7221 PS |
245 | %else |
246 | /bin/sh %{SOURCE1} --extract-only | |
8481604b | 247 | %setup -qDT -n NVIDIA-Linux-x86_64-%{version}-no-compat32 |
039c7221 | 248 | %endif |
bcf69910 | 249 | %patch0 -p1 |
0029e8cc | 250 | %patch1 -p1 |
02d0141d | 251 | %patch2 -p1 |
8481604b | 252 | echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild |
28142503 PS |
253 | |
254 | %build | |
fb27eb94 | 255 | %{?with_kernel:%{expand:%build_kernel_packages}} |
28142503 PS |
256 | |
257 | %install | |
258 | rm -rf $RPM_BUILD_ROOT | |
1820d34b ER |
259 | |
260 | %if %{with userspace} | |
cd436d42 | 261 | install -d $RPM_BUILD_ROOT%{_libdir}/{nvidia,xorg/modules/{drivers,extensions/nvidia}} \ |
56656271 | 262 | $RPM_BUILD_ROOT{%{_includedir}/GL,%{_libdir}/vdpau,%{_bindir},%{_mandir}/man1} \ |
054fcee3 | 263 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} \ |
cd436d42 | 264 | $RPM_BUILD_ROOT%{_sysconfdir}/{OpenCL/vendors,ld.so.conf.d,X11/xorg.conf.d} |
28142503 | 265 | |
5da85237 ER |
266 | %if %{with settings} |
267 | install -p nvidia-settings $RPM_BUILD_ROOT%{_bindir} | |
268 | cp -p nvidia-settings.1* $RPM_BUILD_ROOT%{_mandir}/man1 | |
f3bf0f30 ER |
269 | cp -p nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir} |
270 | cp -p nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
f3b8319b | 271 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh |
5da85237 ER |
272 | %endif |
273 | ||
274 | install -p nvidia-{smi,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir} | |
df1704ce KK |
275 | install -p nvidia-cuda-mps-{control,server} $RPM_BUILD_ROOT%{_bindir} |
276 | cp -p nvidia-{smi,xconfig,cuda-mps-control}.1* $RPM_BUILD_ROOT%{_mandir}/man1 | |
f3bf0f30 | 277 | install -p nvidia.icd $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors |
eb6ba6c9 | 278 | |
cd436d42 JR |
279 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d |
280 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d | |
281 | sed -i -e 's|@@LIBDIR@@|%{_libdir}|g' $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/10-nvidia-modules.conf | |
da05371c | 282 | |
eb6ba6c9 | 283 | for f in \ |
cd436d42 | 284 | libGL.so.%{version} \ |
8481604b | 285 | libcuda.so.%{version} \ |
da05371c | 286 | libnvcuvid.so.%{version} \ |
8481604b | 287 | libnvidia-cfg.so.%{version} \ |
da05371c | 288 | libnvidia-compiler.so.%{version} \ |
5ee8f0c8 | 289 | libnvidia-encode.so.%{version} \ |
8481604b | 290 | libnvidia-glcore.so.%{version} \ |
4c979981 | 291 | libnvidia-ml.so.%{version} \ |
5ee8f0c8 | 292 | libnvidia-opencl.so.%{version} \ |
8481604b | 293 | tls/libnvidia-tls.so.%{version} \ |
eb6ba6c9 | 294 | ; do |
cd436d42 | 295 | install -p $f $RPM_BUILD_ROOT%{_libdir}/nvidia |
ffec07c8 | 296 | done |
76db0ca8 | 297 | |
8481604b | 298 | install -p libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau |
eb6ba6c9 | 299 | |
cd436d42 JR |
300 | install -p libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia |
301 | ln -s libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia/libglx.so | |
7400930f ER |
302 | install -p nvidia_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so.%{version} |
303 | ln -s nvidia_drv.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
cd436d42 | 304 | install -p libnvidia-wfb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia |
2f2dbb1c | 305 | ln -s libnvidia-wfb.so.1 $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so |
cd436d42 JR |
306 | |
307 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/nvidia | |
308 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/nvidia | |
28142503 | 309 | |
02b832fe | 310 | cp -p gl*.h $RPM_BUILD_ROOT%{_includedir}/GL |
28142503 | 311 | |
76db0ca8 | 312 | ln -sf libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_nvidia.so.1 |
28142503 | 313 | |
a116bc07 JR |
314 | %ifarch %{x8664} |
315 | echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf | |
316 | echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia64.conf | |
317 | %else | |
ffec07c8 | 318 | echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf |
cd436d42 | 319 | echo %{_libdir}/vdpau >>$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf |
a116bc07 | 320 | %endif |
ffec07c8 JR |
321 | |
322 | # OpenGL ABI for Linux compatibility | |
323 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1 | |
cd436d42 | 324 | ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so |
cd436d42 JR |
325 | ln -sf libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libcuda.so |
326 | ln -sf libnvcuvid.so.1 $RPM_BUILD_ROOT%{_libdir}/nvidia/libnvcuvid.so | |
ffec07c8 | 327 | %endif |
28142503 | 328 | |
1fdf7dcc | 329 | %if %{with kernel} |
e4947020 JR |
330 | install -d $RPM_BUILD_ROOT |
331 | cp -a installed/* $RPM_BUILD_ROOT | |
1fdf7dcc | 332 | %endif |
28142503 | 333 | |
236b5374 | 334 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
02b832fe ER |
335 | sed -e ' |
336 | s|@@prefix@@|%{_prefix}|g; | |
337 | s|@@libdir@@|%{_libdir}|g; | |
338 | s|@@includedir@@|%{_includedir}|g; | |
339 | s|@@version@@|%{version}|g' < %{SOURCE3} \ | |
236b5374 | 340 | > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc |
341 | ||
28142503 PS |
342 | %clean |
343 | rm -rf $RPM_BUILD_ROOT | |
344 | ||
a641155e | 345 | %post |
2b14e59b ER |
346 | cat << 'EOF' |
347 | NOTE: You must also install kernel module for this driver to work | |
283aaa60 | 348 | kernel%{_alt_kernel}-video-nvidia-legacy-340xx-%{version} |
2b14e59b | 349 | |
25b520ff | 350 | EOF |
f3b8319b | 351 | |
5ff69e47 | 352 | %post libs -p /sbin/ldconfig |
cd436d42 | 353 | %postun libs -p /sbin/ldconfig |
25b520ff | 354 | |
1820d34b | 355 | %if %{with userspace} |
28142503 PS |
356 | %files |
357 | %defattr(644,root,root,755) | |
8481604b | 358 | %doc LICENSE NVIDIA_Changelog README.txt |
007619d4 | 359 | %dir %{_libdir}/xorg/modules/extensions/nvidia |
cd436d42 | 360 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so.*.* |
4c0d0c97 JR |
361 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so.1 |
362 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libnvidia-wfb.so | |
cd436d42 | 363 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglx.so.* |
4c0d0c97 | 364 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/nvidia/libglx.so |
7400930f | 365 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so.* |
cd436d42 JR |
366 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so |
367 | %{_sysconfdir}/X11/xorg.conf.d/10-nvidia.conf | |
368 | %{_sysconfdir}/X11/xorg.conf.d/10-nvidia-modules.conf | |
17fdb673 JR |
369 | |
370 | %files libs | |
f3b8319b | 371 | %defattr(644,root,root,755) |
f3bf0f30 ER |
372 | %dir %{_sysconfdir}/OpenCL |
373 | %dir %{_sysconfdir}/OpenCL/vendors | |
374 | %{_sysconfdir}/OpenCL/vendors/nvidia.icd | |
a116bc07 | 375 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia*.conf |
ffec07c8 JR |
376 | %dir %{_libdir}/nvidia |
377 | %attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.* | |
378 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1 | |
cd436d42 JR |
379 | %attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.* |
380 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libcuda.so.1 | |
381 | %attr(755,root,root) %{_libdir}/nvidia/libcuda.so | |
382 | %attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so.*.* | |
383 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libnvcuvid.so.1 | |
384 | %attr(755,root,root) %{_libdir}/nvidia/libnvcuvid.so | |
385 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.* | |
386 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-cfg.so.1 | |
387 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-compiler.so.*.* | |
5ee8f0c8 JR |
388 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-encode.so.*.* |
389 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-encode.so.1 | |
cd436d42 JR |
390 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-glcore.so.*.* |
391 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-ml.so.*.* | |
392 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-ml.so.1 | |
5ee8f0c8 JR |
393 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-opencl.so.*.* |
394 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libnvidia-opencl.so.1 | |
cd436d42 | 395 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.* |
76db0ca8 | 396 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nvidia.so.*.* |
f3b8319b | 397 | %attr(755,root,root) %ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1 |
28142503 | 398 | |
28142503 PS |
399 | %files devel |
400 | %defattr(644,root,root,755) | |
73eb73e1 | 401 | %dir %{_includedir}/GL |
63c6d4b1 JB |
402 | %{_includedir}/GL/gl.h |
403 | %{_includedir}/GL/glext.h | |
404 | %{_includedir}/GL/glx.h | |
405 | %{_includedir}/GL/glxext.h | |
cd436d42 | 406 | %attr(755,root,root) %{_libdir}/nvidia/libGL.so |
236b5374 | 407 | %{_pkgconfigdir}/gl.pc |
63c6d4b1 | 408 | |
a9160796 ER |
409 | %files doc |
410 | %defattr(644,root,root,755) | |
8481604b | 411 | %doc html/* |
a9160796 | 412 | |
d4a34ce2 | 413 | %files progs |
01766b04 | 414 | %defattr(644,root,root,755) |
8481604b | 415 | %attr(755,root,root) %{_bindir}/nvidia-bug-report.sh |
df1704ce KK |
416 | %attr(755,root,root) %{_bindir}/nvidia-cuda-mps-control |
417 | %attr(755,root,root) %{_bindir}/nvidia-cuda-mps-server | |
8481604b | 418 | %attr(755,root,root) %{_bindir}/nvidia-smi |
225cc701 | 419 | %attr(755,root,root) %{_bindir}/nvidia-xconfig |
df1704ce | 420 | %{_mandir}/man1/nvidia-cuda-mps-control.1* |
5da85237 ER |
421 | %{_mandir}/man1/nvidia-smi.1* |
422 | %{_mandir}/man1/nvidia-xconfig.1* | |
423 | %if %{with settings} | |
2a45f872 | 424 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh |
5da85237 ER |
425 | %attr(755,root,root) %{_bindir}/nvidia-settings |
426 | %{_mandir}/man1/nvidia-settings.1* | |
225cc701 | 427 | %{_desktopdir}/nvidia-settings.desktop |
225cc701 | 428 | %{_pixmapsdir}/nvidia-settings.png |
1820d34b | 429 | %endif |
5da85237 | 430 | %endif |