]>
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 |
27c19ae8 | 27 | %define rel 3 |
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} |
c2f63bdf | 33 | Version: 195.36.24 |
e86feef4 | 34 | Release: %{rel}%{?with_multigl:.mgl} |
d7c1ffa0 | 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 |
c2f63bdf | 39 | # Source0-md5: 97d3e5f69707092aa643fb901bb94003 |
d856ab9b | 40 | Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-pkg0.run |
c2f63bdf | 41 | # Source1-md5: 9d58114ed8c89cd66fbaccad0c997ee8 |
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 |
c2f63bdf | 56 | Requires: xorg-xserver-server(videodrv-abi) <= 7.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 | |
f3b8319b | 106 | Requires(post,postun): /sbin/ldconfig |
76db0ca8 | 107 | Requires: libvdpau >= 0.3 |
17fdb673 JR |
108 | Provides: OpenGL = 2.1 |
109 | Provides: OpenGL-GLX = 1.4 | |
110 | %if %{without multigl} | |
111 | Obsoletes: Mesa | |
112 | %endif | |
113 | Obsoletes: X11-OpenGL-core < 1:7.0.0 | |
114 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
115 | Obsoletes: XFree86-OpenGL-core < 1:7.0.0 | |
116 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
117 | %if %{without multigl} | |
118 | Conflicts: Mesa-libGL | |
119 | %endif | |
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 |
17fdb673 | 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 | ||
151 | %package static | |
152 | Summary: Static XvMCNVIDIA library | |
754fc4fe | 153 | Summary(hu.UTF-8): Statikus XwMCNVIDIA könyvtár |
63c6d4b1 JB |
154 | Summary(pl.UTF-8): Statyczna biblioteka XvMCNVIDIA |
155 | Group: X11/Development/Libraries | |
84c1d1c9 | 156 | Requires: %{pname}-devel = %{epoch}:%{version}-%{rel} |
63c6d4b1 JB |
157 | |
158 | %description static | |
159 | Static XvMCNVIDIA library. | |
160 | ||
754fc4fe ZU |
161 | %description static -l hu.UTF-8 |
162 | Statikus XwMCNVIDIA könyvtár. | |
163 | ||
63c6d4b1 JB |
164 | %description static -l pl.UTF-8 |
165 | Statyczna biblioteka XvMCNVIDIA. | |
28142503 | 166 | |
a9160796 ER |
167 | %package doc |
168 | Summary: Documentation for NVIDIA Graphics Driver | |
169 | Group: Documentation | |
170 | ||
171 | %description doc | |
172 | NVIDIA Accelerated Linux Graphics Driver README and Installation | |
173 | Guide. | |
174 | ||
28142503 PS |
175 | %package progs |
176 | Summary: Tools for advanced control of nVidia graphic cards | |
754fc4fe | 177 | Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához |
b37addd9 | 178 | Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia |
f12e8b24 | 179 | Group: Applications/System |
84c1d1c9 | 180 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
c29343e3 | 181 | Suggests: pkgconfig |
c064a147 | 182 | Obsoletes: XFree86-driver-nvidia-progs |
28142503 PS |
183 | |
184 | %description progs | |
185 | Tools for advanced control of nVidia graphic cards. | |
186 | ||
754fc4fe ZU |
187 | %description progs -l hu.UTF-8 |
188 | Eszközök az nVidia grafikus kártyák beállításához. | |
189 | ||
c311612f JR |
190 | %description progs -l pl.UTF-8 |
191 | Narzędzia do zarządzania kartami graficznymi nVidia. | |
28142503 | 192 | |
00aee69a | 193 | %package -n kernel%{_alt_kernel}-video-nvidia |
28142503 | 194 | Summary: nVidia kernel module for nVidia Architecture support |
b37addd9 | 195 | Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung |
754fc4fe | 196 | Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez. |
b37addd9 | 197 | Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia |
84c1d1c9 | 198 | Release: %{rel}@%{_kernel_ver_str} |
28142503 | 199 | Group: Base/Kernel |
28142503 PS |
200 | Requires(post,postun): /sbin/depmod |
201 | Requires: dev >= 2.7.7-10 | |
d68f27fd | 202 | %{?with_dist_kernel:%requires_releq_kernel} |
84c1d1c9 | 203 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
2d490dca | 204 | Provides: X11-driver-nvidia(kernel) |
28142503 PS |
205 | Obsoletes: XFree86-nvidia-kernel |
206 | ||
00aee69a | 207 | %description -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
208 | nVidia Architecture support for Linux kernel. |
209 | ||
c311612f JR |
210 | %description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8 |
211 | Die nVidia-Architektur-Unterstützung für den Linux-Kern. | |
28142503 | 212 | |
754fc4fe ZU |
213 | %description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8 |
214 | nVidia Architektúra támogatás Linux kernelhez. | |
215 | ||
c311612f JR |
216 | %description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8 |
217 | Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez | |
0ed6aeef | 218 | sterownik nVidii dla Xorg/XFree86. |
28142503 | 219 | |
28142503 PS |
220 | %prep |
221 | cd %{_builddir} | |
a14b5013 | 222 | rm -rf NVIDIA-Linux-x86*-%{version}-pkg* |
039c7221 | 223 | %ifarch %{ix86} |
28142503 | 224 | /bin/sh %{SOURCE0} --extract-only |
d856ab9b | 225 | %setup -qDT -n NVIDIA-Linux-x86-%{version}-pkg0 |
039c7221 PS |
226 | %else |
227 | /bin/sh %{SOURCE1} --extract-only | |
d856ab9b | 228 | %setup -qDT -n NVIDIA-Linux-x86_64-%{version}-pkg0 |
039c7221 | 229 | %endif |
bcf69910 | 230 | %patch0 -p1 |
0029e8cc | 231 | %patch1 -p1 |
eb6ba6c9 | 232 | echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> usr/src/nv/Makefile.kbuild |
28142503 PS |
233 | |
234 | %build | |
2317af94 | 235 | %if %{with kernel} |
4f454d03 | 236 | cd usr/src/nv |
d4a34ce2 | 237 | ln -sf Makefile.kbuild Makefile |
94ef5e53 | 238 | cat >> Makefile <<'EOF' |
239 | ||
240 | $(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin | |
241 | cp $< $@ | |
242 | EOF | |
243 | mv nv-kernel.o{,.bin} | |
12a94e85 | 244 | %build_kernel_modules -m nvidia |
2317af94 | 245 | %endif |
28142503 PS |
246 | |
247 | %install | |
248 | rm -rf $RPM_BUILD_ROOT | |
1820d34b ER |
249 | |
250 | %if %{with userspace} | |
eb6ba6c9 | 251 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,extensions} \ |
76db0ca8 | 252 | $RPM_BUILD_ROOT{%{_includedir}/{GL,cuda},%{_libdir}/vdpau,%{_bindir},%{_mandir}/man1} \ |
2a45f872 | 253 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} |
ffec07c8 JR |
254 | %if %{with multigl} |
255 | install -d $RPM_BUILD_ROOT{%{_libdir}/nvidia,%{_sysconfdir}/ld.so.conf.d} | |
256 | %endif | |
28142503 | 257 | |
4f454d03 JR |
258 | install -p usr/bin/nvidia-{settings,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir} |
259 | cp -a usr/share/man/man1/nvidia-{settings,xconfig}.* $RPM_BUILD_ROOT%{_mandir}/man1 | |
260 | cp -a usr/share/applications/nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
261 | cp -a usr/share/pixmaps/nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
f3b8319b | 262 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh |
eb6ba6c9 PS |
263 | |
264 | for f in \ | |
4f454d03 JR |
265 | usr/lib/tls/libnvidia-tls.so.%{version} \ |
266 | usr/lib/libnvidia-cfg.so.%{version} \ | |
267 | usr/lib/libGL{,core}.so.%{version} \ | |
268 | usr/lib/libcuda.so.%{version} \ | |
269 | usr/X11R6/lib/libXvMCNVIDIA.so.%{version} \ | |
eb6ba6c9 | 270 | ; do |
76db0ca8 | 271 | %if %{without multigl} |
f3b8319b | 272 | install -p $f $RPM_BUILD_ROOT%{_libdir} |
ffec07c8 | 273 | %else |
f3b8319b | 274 | install -p $f $RPM_BUILD_ROOT%{_libdir}/nvidia |
76db0ca8 | 275 | %endif |
ffec07c8 | 276 | done |
76db0ca8 | 277 | |
4f454d03 JR |
278 | cp -a usr/X11R6/lib/libXvMCNVIDIA.a $RPM_BUILD_ROOT%{_libdir} |
279 | install -p usr/lib/vdpau/libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau | |
eb6ba6c9 | 280 | |
4f454d03 | 281 | install -p usr/X11R6/lib/modules/extensions/libglx.so.%{version} \ |
eb6ba6c9 | 282 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions |
4f454d03 | 283 | install -p usr/X11R6/lib/modules/drivers/nvidia_drv.so \ |
dc40a736 | 284 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so.%{version} |
4f454d03 | 285 | install -p usr/X11R6/lib/modules/libnvidia-wfb.so.%{version} \ |
069d2a12 | 286 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules |
28142503 | 287 | |
4f454d03 JR |
288 | cp -a usr/include/GL/*.h $RPM_BUILD_ROOT%{_includedir}/GL |
289 | cp -a usr/include/cuda/*.h $RPM_BUILD_ROOT%{_includedir}/cuda | |
28142503 | 290 | |
eb6ba6c9 | 291 | ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.so |
dc40a736 | 292 | ln -sf nvidia_drv.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so |
76db0ca8 | 293 | ln -sf libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_nvidia.so.1 |
28142503 | 294 | |
ffec07c8 JR |
295 | %if %{with multigl} |
296 | echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf | |
297 | ||
298 | # OpenGL ABI for Linux compatibility | |
299 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1 | |
300 | ln -sf nvidia/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
301 | ||
302 | ln -sf nvidia/libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
303 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 | 304 | |
c2fc5475 | 305 | ln -sf nvidia/libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so |
ffec07c8 | 306 | %else |
28142503 | 307 | # OpenGL ABI for Linux compatibility |
eb6ba6c9 PS |
308 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libGL.so.1 |
309 | ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
ffec07c8 JR |
310 | |
311 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
312 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA_dynamic.so.1 | |
c2fc5475 | 313 | |
c2fc5475 | 314 | ln -sf libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so |
ffec07c8 | 315 | %endif |
1820d34b | 316 | %endif |
28142503 | 317 | |
1fdf7dcc | 318 | %if %{with kernel} |
4f454d03 | 319 | %install_kernel_modules -m usr/src/nv/nvidia -d misc |
1fdf7dcc | 320 | %endif |
28142503 | 321 | |
236b5374 | 322 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
323 | sed -e 's|@@prefix@@|%{_prefix}|g;s|@@libdir@@|%{_libdir}|g;s|@@includedir@@|%{_includedir}|g;s|@@version@@|%{version}|g' < %{SOURCE3} \ | |
324 | > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc | |
325 | ||
28142503 PS |
326 | %clean |
327 | rm -rf $RPM_BUILD_ROOT | |
328 | ||
a641155e | 329 | %post |
2b14e59b ER |
330 | cat << 'EOF' |
331 | NOTE: You must also install kernel module for this driver to work | |
332 | kernel-video-nvidia-%{version} | |
2b14e59b | 333 | kernel-desktop-video-nvidia-%{version} |
b25e7843 ER |
334 | kernel-laptop-video-nvidia-%{version} |
335 | kernel-vanilla-video-nvidia-%{version} | |
2b14e59b ER |
336 | |
337 | Depending on which kernel brand you use. | |
338 | ||
25b520ff | 339 | EOF |
504709c0 JR |
340 | %if %{with multigl} |
341 | if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then | |
342 | ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so | |
343 | fi | |
9f765470 ER |
344 | %else |
345 | /sbin/ldconfig -N %{_libdir}/xorg/modules/extensions | |
dc40a736 ER |
346 | # until versioned SONAME is built for nvidia_drv.so, update symlink manually |
347 | ln -sf nvidia_drv.so.%{version} %{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
504709c0 | 348 | %endif |
25b520ff | 349 | |
f3b8319b ER |
350 | %post libs |
351 | /sbin/ldconfig | |
352 | /sbin/ldconfig -N %{_libdir}/vdpau | |
353 | ||
354 | %postun libs | |
355 | /sbin/ldconfig | |
356 | /sbin/ldconfig -N %{_libdir}/vdpau | |
25b520ff | 357 | |
00aee69a | 358 | %post -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
359 | %depmod %{_kernel_ver} |
360 | ||
00aee69a | 361 | %postun -n kernel%{_alt_kernel}-video-nvidia |
28142503 PS |
362 | %depmod %{_kernel_ver} |
363 | ||
1820d34b | 364 | %if %{with userspace} |
28142503 PS |
365 | %files |
366 | %defattr(644,root,root,755) | |
367 | %doc LICENSE | |
4f454d03 | 368 | %doc usr/share/doc/{README.txt,NVIDIA_Changelog,XF86Config.sample} |
907cd55d | 369 | %attr(755,root,root) %{_libdir}/xorg/modules/libnvidia-wfb.so.*.* |
17fdb673 | 370 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.* |
9f765470 | 371 | %attr(755,root,root) %ghost %{_libdir}/xorg/modules/extensions/libglx.so |
dc40a736 ER |
372 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so.*.* |
373 | %attr(755,root,root) %ghost %{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
17fdb673 JR |
374 | |
375 | %files libs | |
f3b8319b | 376 | %defattr(644,root,root,755) |
17fdb673 | 377 | %if %{with multigl} |
ffec07c8 JR |
378 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia.conf |
379 | %dir %{_libdir}/nvidia | |
380 | %attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.* | |
381 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1 | |
382 | %attr(755,root,root) %{_libdir}/nvidia/libGLcore.so.*.* | |
1a4ef137 | 383 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so |
ffec07c8 | 384 | %attr(755,root,root) %{_libdir}/nvidia/libXvMCNVIDIA.so.*.* |
3d3da198 | 385 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libXvMCNVIDIA_dynamic.so.1 |
1a4ef137 | 386 | %attr(755,root,root) %{_libdir}/libcuda.so |
c2fc5475 | 387 | %attr(755,root,root) %{_libdir}/nvidia/libcuda.so.*.* |
c75f043c | 388 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-cfg.so.*.* |
389 | %attr(755,root,root) %{_libdir}/nvidia/libnvidia-tls.so.*.* | |
ffec07c8 | 390 | %else |
eb6ba6c9 | 391 | %attr(755,root,root) %{_libdir}/libGL.so.*.* |
63c6d4b1 JB |
392 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 |
393 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
394 | # (and dlopen libGL.so instead of libGL.so.1) | |
395 | %attr(755,root,root) %{_libdir}/libGL.so | |
28142503 | 396 | %attr(755,root,root) %{_libdir}/libGLcore.so.*.* |
1a4ef137 | 397 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so |
28142503 | 398 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so.*.* |
3d3da198 | 399 | %attr(755,root,root) %ghost %{_libdir}/libXvMCNVIDIA_dynamic.so.1 |
1a4ef137 | 400 | %attr(755,root,root) %{_libdir}/libcuda.so |
c2fc5475 | 401 | %attr(755,root,root) %{_libdir}/libcuda.so.*.* |
032cc98f | 402 | %attr(755,root,root) %{_libdir}/libnvidia-cfg.so.*.* |
403 | %attr(755,root,root) %{_libdir}/libnvidia-tls.so.*.* | |
ffec07c8 | 404 | %endif |
76db0ca8 | 405 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nvidia.so.*.* |
f3b8319b | 406 | %attr(755,root,root) %ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1 |
28142503 | 407 | |
28142503 PS |
408 | %files devel |
409 | %defattr(644,root,root,755) | |
73eb73e1 | 410 | %dir %{_includedir}/GL |
63c6d4b1 JB |
411 | %{_includedir}/GL/gl.h |
412 | %{_includedir}/GL/glext.h | |
413 | %{_includedir}/GL/glx.h | |
414 | %{_includedir}/GL/glxext.h | |
c2fc5475 | 415 | %{_includedir}/cuda |
ffec07c8 JR |
416 | %if %{with multigl} |
417 | %attr(755,root,root) %{_libdir}/libGL.so | |
418 | %endif | |
236b5374 | 419 | %{_pkgconfigdir}/gl.pc |
63c6d4b1 JB |
420 | |
421 | %files static | |
422 | %defattr(644,root,root,755) | |
28142503 PS |
423 | %{_libdir}/libXvMCNVIDIA.a |
424 | ||
a9160796 ER |
425 | %files doc |
426 | %defattr(644,root,root,755) | |
4f454d03 | 427 | %doc usr/share/doc/html/* |
a9160796 | 428 | |
d4a34ce2 | 429 | %files progs |
01766b04 | 430 | %defattr(644,root,root,755) |
431 | %attr(755,root,root) %{_bindir}/nvidia-settings | |
225cc701 | 432 | %attr(755,root,root) %{_bindir}/nvidia-xconfig |
7a2ced2a | 433 | %attr(755,root,root) %{_bindir}/nvidia-bug-report.sh |
2a45f872 | 434 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh |
225cc701 | 435 | %{_desktopdir}/nvidia-settings.desktop |
436 | %{_mandir}/man1/nvidia-* | |
437 | %{_pixmapsdir}/nvidia-settings.png | |
1820d34b | 438 | %endif |
63c6d4b1 JB |
439 | |
440 | %if %{with kernel} | |
441 | %files -n kernel%{_alt_kernel}-video-nvidia | |
442 | %defattr(644,root,root,755) | |
443 | /lib/modules/%{_kernel_ver}/misc/*.ko* | |
444 | %endif |