]>
Commit | Line | Data |
---|---|---|
2b14e59b | 1 | # TODO |
17fdb673 | 2 | # - should -libs Require main package? |
ff89f094 | 3 | # - solve this (shouldn't there be some obsoletes?): |
2b14e59b ER |
4 | # error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686 |
5 | # error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686 | |
28142503 PS |
6 | # |
7 | # Conditional build: | |
8 | %bcond_without dist_kernel # without distribution kernel | |
bf683e7a | 9 | %bcond_without kernel # without kernel packages |
1820d34b | 10 | %bcond_without userspace # don't build userspace programs |
236b5374 | 11 | %bcond_with force_userspace # force userspace build (useful if alt_kernel is set) |
ffec07c8 | 12 | %bcond_with multigl # package libGL and libglx.so in a way allowing concurrent install with nvidia/fglrx drivers |
a14b5013 | 13 | %bcond_with verbose # verbose build (V=1) |
14 | ||
a14b5013 | 15 | %if "%{_alt_kernel}" != "%{nil}" |
16 | %undefine with_userspace | |
22d6cc34 | 17 | %endif |
236b5374 | 18 | %if %{with force_userspace} |
19 | %define with_userspace 1 | |
20 | %endif | |
c543fa7c ER |
21 | %if %{without userspace} |
22 | # nothing to be placed to debuginfo package | |
23 | %define _enable_debug_packages 0 | |
24 | %endif | |
c5bb5957 | 25 | |
a14b5013 | 26 | %define pname xorg-driver-video-nvidia |
ca6390ff | 27 | %define rel 1%{?with_multigl:.mgl} |
a14b5013 | 28 | |
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 |
236b5374 | 32 | Name: %{pname} |
33 | Version: 190.42 | |
53936bc2 | 34 | Release: %{rel} |
3bde582d | 35 | Epoch: 1 |
28142503 | 36 | License: nVidia Binary |
4a185d32 | 37 | Group: X11 |
d856ab9b | 38 | Source0: http://download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}-pkg0.run |
236b5374 | 39 | # Source0-md5: f94806feee87de756d14fe3e9bcaf05a |
d856ab9b | 40 | Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-pkg0.run |
236b5374 | 41 | # Source1-md5: ae431ff849ec01446e6724f9fcfe3bb4 |
a14b5013 | 42 | Source2: %{pname}-xinitrc.sh |
236b5374 | 43 | Source3: gl.pc.in |
bcf69910 JB |
44 | Patch0: X11-driver-nvidia-GL.patch |
45 | Patch1: X11-driver-nvidia-desktop.patch | |
f517f625 | 46 | URL: http://www.nvidia.com/object/unix.html |
82268c76 | 47 | %if %{with kernel} |
0e15e33b | 48 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} |
82268c76 | 49 | %endif |
28142503 | 50 | BuildRequires: %{kgcc_package} |
d68f27fd | 51 | BuildRequires: rpmbuild(macros) >= 1.379 |
039c7221 | 52 | BuildRequires: sed >= 4.0 |
0ed6aeef | 53 | BuildConflicts: XFree86-nvidia |
17fdb673 | 54 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} |
8343d24d | 55 | Requires: xorg-xserver-server |
236b5374 | 56 | Requires: xorg-xserver-server(videodrv-abi) <= 6.0 |
754fc4fe | 57 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
4e3e8de1 | 58 | Provides: xorg-xserver-module(glx) |
2d490dca | 59 | Obsoletes: XFree86-driver-nvidia |
28142503 PS |
60 | Obsoletes: XFree86-nvidia |
61 | Conflicts: XFree86-OpenGL-devel <= 4.2.0-3 | |
1b927e61 | 62 | ExclusiveArch: %{ix86} %{x8664} |
28142503 PS |
63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
64 | ||
03da6314 | 65 | %define _noautoreqdep libGL.so.1 libGLcore.so.1 |
28142503 PS |
66 | |
67 | %description | |
974295b8 JB |
68 | This driver set adds improved 2D functionality to the Xorg X server as |
69 | well as high performance OpenGL acceleration, AGP support, support for | |
70 | most flat panels, and 2D multiple monitor support. Supported hardware: | |
71 | modern NVIDIA GeForce (from GeForce2 MX) and Quadro (Quadro4 and up) | |
72 | based graphics accelerators. | |
28142503 | 73 | |
974295b8 JB |
74 | The older graphics chips are unsupported: |
75 | - NV1 and RIVA 128/128ZX chips are supported in the base Xorg install | |
76 | (nv driver) | |
77 | - TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 are suported by -legacy | |
78 | drivers. | |
28142503 | 79 | |
754fc4fe ZU |
80 | %description -l hu.UTF-8 |
81 | Ez a meghajtó kibővíti az Xorg X szerver 2D működését OpenGL | |
82 | gyorsítással, AGP támogatással és támogatja a több monitort. | |
83 | Támogatott hardverek: modern NVIDIA GeForce (GeForce2 MX-től) és | |
84 | Quadro (Quadro4 és újabbak) alapú grafikai gyorsítók. | |
85 | ||
86 | A régekbbi grafikus chipek nem támogatottak: | |
87 | - NV1 és RIVA 128/128ZX chipek az alap Xorg telepítéssel (nv meghajtó) | |
88 | - TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 a -legacy driverekkel | |
89 | támogatottak. | |
90 | ||
c311612f | 91 | %description -l pl.UTF-8 |
974295b8 JB |
92 | Usprawnione sterowniki dla kart graficznych nVidia do serwera Xorg, |
93 | dające wysokowydajną akcelerację OpenGL, obsługę AGP i wielu monitorów | |
94 | 2D. Obsługują w miarę nowe karty NVIDIA GeForce (od wersji GeForce2 | |
95 | MX) oraz Quadro (od wersji Quadro4). | |
28142503 | 96 | |
974295b8 JB |
97 | Starsze układy graficzne nie są obsługiwane przez ten pakiet: |
98 | - NV1 i RIVA 128/128ZX są obsługiwane przez sterownik nv z Xorg | |
99 | - TNT/TNT2/GeForce 256/GeForce 2 Ultra/Quadro 2 są obsługiwane przez | |
100 | sterowniki -legacy | |
28142503 | 101 | |
17fdb673 JR |
102 | %package libs |
103 | Summary: OpenGL (GL and GLX) Nvidia libraries | |
104 | Summary(pl.UTF-8): Biblioteki OpenGL (GL i GLX) Nvidia | |
105 | Group: X11/Development/Libraries | |
106 | #Requires: %{pname} = %{epoch}:%{version}-%{rel} | |
107 | Provides: OpenGL = 2.1 | |
108 | Provides: OpenGL-GLX = 1.4 | |
109 | %if %{without multigl} | |
110 | Obsoletes: Mesa | |
111 | %endif | |
112 | Obsoletes: X11-OpenGL-core < 1:7.0.0 | |
113 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
114 | Obsoletes: XFree86-OpenGL-core < 1:7.0.0 | |
115 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
116 | %if %{without multigl} | |
117 | Conflicts: Mesa-libGL | |
118 | %endif | |
119 | ||
4c842b35 | 120 | %description libs |
17fdb673 JR |
121 | NVIDIA OpenGL (GL and GLX only) implementation libraries. |
122 | ||
4c842b35 | 123 | %description libs -l pl.UTF-8 |
17fdb673 JR |
124 | Implementacja OpenGL (tylko GL i GLX) firmy NVIDIA. |
125 | ||
28142503 | 126 | %package devel |
63c6d4b1 | 127 | Summary: OpenGL (GL and GLX) header files |
754fc4fe | 128 | Summary(hu.UTF-8): OpenGL (GL és GLX) fejléc fájlok |
63c6d4b1 | 129 | Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX) |
28142503 | 130 | Group: X11/Development/Libraries |
17fdb673 | 131 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} |
63c6d4b1 | 132 | Provides: OpenGL-GLX-devel = 1.4 |
1b8b7646 | 133 | Provides: OpenGL-devel = 2.1 |
63c6d4b1 JB |
134 | Obsoletes: X11-OpenGL-devel-base |
135 | Obsoletes: XFree86-OpenGL-devel-base | |
2d490dca | 136 | Obsoletes: XFree86-driver-nvidia-devel |
28142503 PS |
137 | Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3 |
138 | ||
139 | %description devel | |
63c6d4b1 JB |
140 | OpenGL header files (GL and GLX only) for NVIDIA OpenGL |
141 | implementation. | |
28142503 | 142 | |
754fc4fe ZU |
143 | %description devel -l hu.UTF-8 |
144 | OpenGL fejléc fájlok (csak GL és GLX) NVIDIA OpenGL implementációhoz. | |
145 | ||
c311612f | 146 | %description devel -l pl.UTF-8 |
63c6d4b1 JB |
147 | Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL |
148 | firmy NVIDIA. | |
149 | ||
150 | %package static | |
151 | Summary: Static XvMCNVIDIA library | |
754fc4fe | 152 | Summary(hu.UTF-8): Statikus XwMCNVIDIA könyvtár |
63c6d4b1 JB |
153 | Summary(pl.UTF-8): Statyczna biblioteka XvMCNVIDIA |
154 | Group: X11/Development/Libraries | |
84c1d1c9 | 155 | Requires: %{pname}-devel = %{epoch}:%{version}-%{rel} |
63c6d4b1 JB |
156 | |
157 | %description static | |
158 | Static XvMCNVIDIA library. | |
159 | ||
754fc4fe ZU |
160 | %description static -l hu.UTF-8 |
161 | Statikus XwMCNVIDIA könyvtár. | |
162 | ||
63c6d4b1 JB |
163 | %description static -l pl.UTF-8 |
164 | Statyczna biblioteka XvMCNVIDIA. | |
28142503 PS |
165 | |
166 | %package progs | |
167 | Summary: Tools for advanced control of nVidia graphic cards | |
754fc4fe | 168 | Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához |
b37addd9 | 169 | Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia |
f12e8b24 | 170 | Group: Applications/System |
84c1d1c9 | 171 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
c29343e3 | 172 | Suggests: pkgconfig |
c064a147 | 173 | Obsoletes: XFree86-driver-nvidia-progs |
28142503 PS |
174 | |
175 | %description progs | |
176 | Tools for advanced control of nVidia graphic cards. | |
177 | ||
754fc4fe ZU |
178 | %description progs -l hu.UTF-8 |
179 | Eszközök az nVidia grafikus kártyák beállításához. | |
180 | ||
c311612f JR |
181 | %description progs -l pl.UTF-8 |
182 | Narzędzia do zarządzania kartami graficznymi nVidia. | |
28142503 | 183 | |
00aee69a | 184 | %package -n kernel%{_alt_kernel}-video-nvidia |
28142503 | 185 | Summary: nVidia kernel module for nVidia Architecture support |
b37addd9 | 186 | Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung |
754fc4fe | 187 | Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez. |
b37addd9 | 188 | Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia |
84c1d1c9 | 189 | Release: %{rel}@%{_kernel_ver_str} |
28142503 | 190 | Group: Base/Kernel |
28142503 PS |
191 | Requires(post,postun): /sbin/depmod |
192 | Requires: dev >= 2.7.7-10 | |
d68f27fd | 193 | %{?with_dist_kernel:%requires_releq_kernel} |
84c1d1c9 | 194 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
2d490dca | 195 | Provides: X11-driver-nvidia(kernel) |
28142503 PS |
196 | Obsoletes: XFree86-nvidia-kernel |
197 | ||
00aee69a | 198 | %description -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
199 | nVidia Architecture support for Linux kernel. |
200 | ||
c311612f JR |
201 | %description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8 |
202 | Die nVidia-Architektur-Unterstützung für den Linux-Kern. | |
28142503 | 203 | |
754fc4fe ZU |
204 | %description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8 |
205 | nVidia Architektúra támogatás Linux kernelhez. | |
206 | ||
c311612f JR |
207 | %description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8 |
208 | Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez | |
0ed6aeef | 209 | sterownik nVidii dla Xorg/XFree86. |
28142503 | 210 | |
28142503 PS |
211 | %prep |
212 | cd %{_builddir} | |
a14b5013 | 213 | rm -rf NVIDIA-Linux-x86*-%{version}-pkg* |
039c7221 | 214 | %ifarch %{ix86} |
28142503 | 215 | /bin/sh %{SOURCE0} --extract-only |
d856ab9b | 216 | %setup -qDT -n NVIDIA-Linux-x86-%{version}-pkg0 |
039c7221 PS |
217 | %else |
218 | /bin/sh %{SOURCE1} --extract-only | |
d856ab9b | 219 | %setup -qDT -n NVIDIA-Linux-x86_64-%{version}-pkg0 |
039c7221 | 220 | %endif |
bcf69910 | 221 | %patch0 -p1 |
0029e8cc | 222 | %patch1 -p1 |
eb6ba6c9 | 223 | echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> usr/src/nv/Makefile.kbuild |
28142503 PS |
224 | |
225 | %build | |
2317af94 | 226 | %if %{with kernel} |
19777214 | 227 | cd usr/src/nv |
d4a34ce2 | 228 | ln -sf Makefile.kbuild Makefile |
94ef5e53 | 229 | cat >> Makefile <<'EOF' |
230 | ||
231 | $(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin | |
232 | cp $< $@ | |
233 | EOF | |
234 | mv nv-kernel.o{,.bin} | |
12a94e85 | 235 | %build_kernel_modules -m nvidia |
2317af94 | 236 | %endif |
28142503 PS |
237 | |
238 | %install | |
239 | rm -rf $RPM_BUILD_ROOT | |
1820d34b ER |
240 | |
241 | %if %{with userspace} | |
eb6ba6c9 | 242 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,extensions} \ |
c2fc5475 | 243 | $RPM_BUILD_ROOT{%{_includedir}/{GL,cuda,vdpau},%{_libdir},%{_bindir},%{_mandir}/man1} \ |
2a45f872 | 244 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} |
ffec07c8 JR |
245 | %if %{with multigl} |
246 | install -d $RPM_BUILD_ROOT{%{_libdir}/nvidia,%{_sysconfdir}/ld.so.conf.d} | |
247 | %endif | |
28142503 | 248 | |
7a2ced2a | 249 | install usr/bin/nvidia-{settings,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir} |
225cc701 | 250 | install usr/share/man/man1/nvidia-{settings,xconfig}.* $RPM_BUILD_ROOT%{_mandir}/man1 |
251 | install usr/share/applications/nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
7a2ced2a | 252 | install usr/share/pixmaps/nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir} |
2a45f872 | 253 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh |
eb6ba6c9 PS |
254 | |
255 | for f in \ | |
256 | usr/lib/tls/libnvidia-tls.so.%{version} \ | |
069d2a12 | 257 | usr/lib/libnvidia-cfg.so.%{version} \ |
eb6ba6c9 | 258 | usr/lib/libGL{,core}.so.%{version} \ |
c2fc5475 SP |
259 | usr/lib/libcuda.so.%{version} \ |
260 | usr/lib/libvdpau{,_nvidia,_trace}.so.%{version} \ | |
eb6ba6c9 | 261 | usr/X11R6/lib/libXvMCNVIDIA.so.%{version} \ |
2b14e59b | 262 | %if %{without multigl} |
eb6ba6c9 PS |
263 | usr/X11R6/lib/libXvMCNVIDIA.a \ |
264 | ; do | |
265 | install $f $RPM_BUILD_ROOT%{_libdir} | |
266 | done | |
ffec07c8 JR |
267 | %else |
268 | ; do | |
269 | install $f $RPM_BUILD_ROOT%{_libdir}/nvidia | |
270 | done | |
271 | install usr/X11R6/lib/libXvMCNVIDIA.a $RPM_BUILD_ROOT%{_libdir} | |
272 | %endif | |
eb6ba6c9 | 273 | |
d4a34ce2 | 274 | install usr/X11R6/lib/modules/extensions/libglx.so.%{version} \ |
eb6ba6c9 | 275 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions |
23ae74e1 | 276 | install usr/X11R6/lib/modules/drivers/nvidia_drv.so \ |
277 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers | |
069d2a12 | 278 | install usr/X11R6/lib/modules/libnvidia-wfb.so.%{version} \ |
279 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules | |
28142503 | 280 | |
eb6ba6c9 | 281 | install usr/include/GL/*.h $RPM_BUILD_ROOT%{_includedir}/GL |
c2fc5475 SP |
282 | install usr/include/cuda/*.h $RPM_BUILD_ROOT%{_includedir}/cuda |
283 | install usr/include/vdpau/*.h $RPM_BUILD_ROOT%{_includedir}/vdpau | |
28142503 | 284 | |
eb6ba6c9 | 285 | ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.so |
28142503 | 286 | |
ffec07c8 JR |
287 | %if %{with multigl} |
288 | echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf | |
289 | ||
290 | # OpenGL ABI for Linux compatibility | |
291 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1 | |
292 | ln -sf nvidia/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
293 | ||
294 | ln -sf nvidia/libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
295 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 SP |
296 | |
297 | ln -sf nvidia/libvdpau.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libvdpau.so | |
298 | ln -sf nvidia/libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so | |
ffec07c8 | 299 | %else |
28142503 | 300 | # OpenGL ABI for Linux compatibility |
eb6ba6c9 PS |
301 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libGL.so.1 |
302 | ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
ffec07c8 JR |
303 | |
304 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
305 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 SP |
306 | |
307 | ln -sf libvdpau.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libvdpau.so | |
308 | ln -sf libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so | |
ffec07c8 | 309 | %endif |
1820d34b | 310 | %endif |
28142503 | 311 | |
1fdf7dcc | 312 | %if %{with kernel} |
12a94e85 | 313 | %install_kernel_modules -m usr/src/nv/nvidia -d misc |
1fdf7dcc | 314 | %endif |
28142503 | 315 | |
236b5374 | 316 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
317 | sed -e 's|@@prefix@@|%{_prefix}|g;s|@@libdir@@|%{_libdir}|g;s|@@includedir@@|%{_includedir}|g;s|@@version@@|%{version}|g' < %{SOURCE3} \ | |
318 | > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc | |
319 | ||
28142503 PS |
320 | %clean |
321 | rm -rf $RPM_BUILD_ROOT | |
322 | ||
a641155e | 323 | %post |
2b14e59b ER |
324 | cat << 'EOF' |
325 | NOTE: You must also install kernel module for this driver to work | |
326 | kernel-video-nvidia-%{version} | |
2b14e59b | 327 | kernel-desktop-video-nvidia-%{version} |
b25e7843 ER |
328 | kernel-laptop-video-nvidia-%{version} |
329 | kernel-vanilla-video-nvidia-%{version} | |
2b14e59b ER |
330 | |
331 | Depending on which kernel brand you use. | |
332 | ||
25b520ff | 333 | EOF |
504709c0 JR |
334 | %if %{with multigl} |
335 | if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then | |
336 | ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so | |
337 | fi | |
338 | %endif | |
25b520ff | 339 | |
31407033 JR |
340 | %post libs -p /sbin/ldconfig |
341 | %postun libs -p /sbin/ldconfig | |
25b520ff | 342 | |
00aee69a | 343 | %post -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
344 | %depmod %{_kernel_ver} |
345 | ||
00aee69a | 346 | %postun -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
347 | %depmod %{_kernel_ver} |
348 | ||
1820d34b | 349 | %if %{with userspace} |
28142503 PS |
350 | %files |
351 | %defattr(644,root,root,755) | |
352 | %doc LICENSE | |
225cc701 | 353 | %doc usr/share/doc/{README.txt,NVIDIA_Changelog,XF86Config.sample,html} |
ffec07c8 | 354 | %if %{with multigl} |
17fdb673 JR |
355 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.* |
356 | %ghost %{_libdir}/xorg/modules/extensions/libglx.so | |
357 | %else | |
358 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so* | |
359 | %endif | |
360 | %attr(755,root,root) %{_libdir}/xorg/modules/libnvidia-wfb.so.*.* | |
361 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
362 | ||
363 | %files libs | |
364 | %if %{with multigl} | |
ffec07c8 JR |
365 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia.conf |
366 | %dir %{_libdir}/nvidia | |
367 | %attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.* | |
368 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1 | |
369 | %attr(755,root,root) %{_libdir}/nvidia/libGLcore.so.*.* | |
370 | %attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA.so.*.* | |
371 | %attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 | 372 | %attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.* |
c75f043c | 373 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.* |
374 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.* | |
c2fc5475 SP |
375 | %attr(755,root,root) %{_libdir}/nvidia/libvdpau.so.*.* |
376 | %attr(755,root,root) %{_libdir}/nvidia/libvdpau_nvidia.so.*.* | |
377 | %attr(755,root,root) %{_libdir}/nvidia/libvdpau_trace.so.*.* | |
ffec07c8 JR |
378 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.* |
379 | %ghost %{_libdir}/xorg/modules/extensions/libglx.so | |
380 | %else | |
eb6ba6c9 | 381 | %attr(755,root,root) %{_libdir}/libGL.so.*.* |
63c6d4b1 JB |
382 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 |
383 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
384 | # (and dlopen libGL.so instead of libGL.so.1) | |
385 | %attr(755,root,root) %{_libdir}/libGL.so | |
28142503 PS |
386 | %attr(755,root,root) %{_libdir}/libGLcore.so.*.* |
387 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so.*.* | |
eb6ba6c9 | 388 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA_dynamic.so.1 |
c2fc5475 | 389 | %attr(755,root,root) %{_libdir}/libcuda.so.*.* |
032cc98f | 390 | %attr(755,root,root) %{_libdir}/libnvidia-cfg.so.*.* |
391 | %attr(755,root,root) %{_libdir}/libnvidia-tls.so.*.* | |
c2fc5475 SP |
392 | %attr(755,root,root) %{_libdir}/libvdpau.so.*.* |
393 | %attr(755,root,root) %{_libdir}/libvdpau_nvidia.so.*.* | |
394 | %attr(755,root,root) %{_libdir}/libvdpau_trace.so.*.* | |
ffec07c8 | 395 | %endif |
28142503 | 396 | |
28142503 PS |
397 | %files devel |
398 | %defattr(644,root,root,755) | |
399 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so | |
c2fc5475 SP |
400 | %attr(755,root,root) %{_libdir}/libcuda.so |
401 | %attr(755,root,root) %{_libdir}/libvdpau.so | |
73eb73e1 | 402 | %dir %{_includedir}/GL |
63c6d4b1 JB |
403 | %{_includedir}/GL/gl.h |
404 | %{_includedir}/GL/glext.h | |
405 | %{_includedir}/GL/glx.h | |
406 | %{_includedir}/GL/glxext.h | |
c2fc5475 SP |
407 | %{_includedir}/cuda |
408 | %{_includedir}/vdpau | |
ffec07c8 JR |
409 | %if %{with multigl} |
410 | %attr(755,root,root) %{_libdir}/libGL.so | |
411 | %endif | |
236b5374 | 412 | %{_pkgconfigdir}/gl.pc |
63c6d4b1 JB |
413 | |
414 | %files static | |
415 | %defattr(644,root,root,755) | |
28142503 PS |
416 | %{_libdir}/libXvMCNVIDIA.a |
417 | ||
d4a34ce2 | 418 | %files progs |
01766b04 | 419 | %defattr(644,root,root,755) |
420 | %attr(755,root,root) %{_bindir}/nvidia-settings | |
225cc701 | 421 | %attr(755,root,root) %{_bindir}/nvidia-xconfig |
7a2ced2a | 422 | %attr(755,root,root) %{_bindir}/nvidia-bug-report.sh |
2a45f872 | 423 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh |
225cc701 | 424 | %{_desktopdir}/nvidia-settings.desktop |
425 | %{_mandir}/man1/nvidia-* | |
426 | %{_pixmapsdir}/nvidia-settings.png | |
1820d34b | 427 | %endif |
63c6d4b1 JB |
428 | |
429 | %if %{with kernel} | |
430 | %files -n kernel%{_alt_kernel}-video-nvidia | |
431 | %defattr(644,root,root,755) | |
432 | /lib/modules/%{_kernel_ver}/misc/*.ko* | |
433 | %endif |