Preliminary split for cuda sub-package

el9
Nicolas Chauvet 10 years ago
parent 8d4d271d9a
commit 1c53ea1f0d

@ -64,11 +64,6 @@ Conflicts: xorg-x11-drv-nvidia-304xx
Conflicts: xorg-x11-drv-fglrx Conflicts: xorg-x11-drv-fglrx
Conflicts: xorg-x11-drv-catalyst Conflicts: xorg-x11-drv-catalyst
#Support for cuda
#Don't put an epoch here
Provides: cuda-drivers = %{version}
%{?filter_setup: %{?filter_setup:
%filter_from_provides /^libnvidia/d; %filter_from_provides /^libnvidia/d;
%filter_from_provides /^libEGL\.so/d; %filter_from_provides /^libEGL\.so/d;
@ -103,11 +98,23 @@ http://rpmfusion.org/Howto/nVidia
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-libs%{_isa} = %{?epoch}:%{version}-%{release} Requires: %{name}-libs%{_isa} = %{?epoch}:%{version}-%{release}
Requires: %{name}-cuda%{_isa} = %{?epoch}:%{version}-%{release}
%description devel %description devel
This package provides the development files of the %{name} package, This package provides the development files of the %{name} package,
such as OpenGL headers. such as OpenGL headers.
%package cuda
Summary: CUDA libraries for %{name}
Group: Development/Libraries
Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version}
#Don't put an epoch here
Provides: cuda-drivers = %{version}
%description cuda
This package provides the CUDA driver libraries.
%package kmodsrc %package kmodsrc
Summary: %{name} kernel module source code Summary: %{name} kernel module source code
Group: System Environment/Kernel Group: System Environment/Kernel
@ -345,6 +352,8 @@ fi || :
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
%post cuda -p /sbin/ldconfig
%posttrans %posttrans
[ -f %{_sysconfdir}/X11/xorg.conf ] || \ [ -f %{_sysconfdir}/X11/xorg.conf ] || \
cp -p %{_sysconfdir}/X11/nvidia-xorg.conf %{_sysconfdir}/X11/xorg.conf || : cp -p %{_sysconfdir}/X11/nvidia-xorg.conf %{_sysconfdir}/X11/xorg.conf || :
@ -391,6 +400,8 @@ fi
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%postun cuda -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc nvidiapkg/LICENSE %doc nvidiapkg/LICENSE
@ -450,6 +461,7 @@ fi
%config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf %config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
%{_nvidia_libdir}/alternate-install-present %{_nvidia_libdir}/alternate-install-present
%{_nvidia_libdir}/*.so.* %{_nvidia_libdir}/*.so.*
%exclude %{_nvidia_libdir}/libcuda.so*
%ifarch x86_64 i686 %ifarch x86_64 i686
%dir %{_nvidia_libdir}/tls %dir %{_nvidia_libdir}/tls
%{_nvidia_libdir}/tls/*.so.* %{_nvidia_libdir}/tls/*.so.*
@ -457,8 +469,11 @@ fi
%exclude %{_libdir}/vdpau/libvdpau.* %exclude %{_libdir}/vdpau/libvdpau.*
%{_libdir}/vdpau/libvdpau_nvidia.so.* %{_libdir}/vdpau/libvdpau_nvidia.so.*
%exclude %{_libdir}/vdpau/libvdpau_trace.so* %exclude %{_libdir}/vdpau/libvdpau_trace.so*
%{_libdir}/libcuda.so.1
%{_libdir}/libcuda.so %files cuda
%defattr(-,root,root,-)
%{_libdir}/libcuda.so*
%{_nvidia_libdir}/libcuda.so*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -477,7 +492,6 @@ fi
%{_nvidia_libdir}/libGLESv2.so %{_nvidia_libdir}/libGLESv2.so
%{_nvidia_libdir}/libnvidia-eglcore.so %{_nvidia_libdir}/libnvidia-eglcore.so
%{_nvidia_libdir}/libnvidia-glsi.so %{_nvidia_libdir}/libnvidia-glsi.so
%{_nvidia_libdir}/libcuda.so
%{_nvidia_libdir}/libGL.so %{_nvidia_libdir}/libGL.so
%{_nvidia_libdir}/libnvidia-glcore.so %{_nvidia_libdir}/libnvidia-glcore.so
%{_nvidia_libdir}/libnvidia-fbc.so %{_nvidia_libdir}/libnvidia-fbc.so

Loading…
Cancel
Save