rpms/xorg-x11-drv-nvidia/devel xorg-x11-drv-nvidia.spec,1.140,1.141

Nicolas Chauvet kwizart at rpmfusion.org
Sat Aug 16 15:34:24 CEST 2014


Author: kwizart

Update of /cvs/nonfree/rpms/xorg-x11-drv-nvidia/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv11587

Modified Files:
	xorg-x11-drv-nvidia.spec 
Log Message:
Preliminary split for cuda sub-package



Index: xorg-x11-drv-nvidia.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-nvidia/devel/xorg-x11-drv-nvidia.spec,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -r1.140 -r1.141
--- xorg-x11-drv-nvidia.spec	7 Aug 2014 08:38:16 -0000	1.140
+++ xorg-x11-drv-nvidia.spec	16 Aug 2014 13:34:23 -0000	1.141
@@ -64,11 +64,6 @@
 Conflicts:       xorg-x11-drv-fglrx
 Conflicts:       xorg-x11-drv-catalyst
 
-
-#Support for cuda
-#Don't put an epoch here
-Provides:        cuda-drivers = %{version}
-
 %{?filter_setup:
 %filter_from_provides /^libnvidia/d;
 %filter_from_provides /^libEGL\.so/d;
@@ -103,11 +98,23 @@
 Summary:         Development files for %{name}
 Group:           Development/Libraries
 Requires:        %{name}-libs%{_isa} = %{?epoch}:%{version}-%{release}
+Requires:        %{name}-cuda%{_isa} = %{?epoch}:%{version}-%{release}
 
 %description devel
 This package provides the development files of the %{name} package,
 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
 Summary:         %{name} kernel module source code
 Group:           System Environment/Kernel
@@ -345,6 +352,8 @@
 
 %post libs -p /sbin/ldconfig
 
+%post cuda -p /sbin/ldconfig
+
 %posttrans
  [ -f %{_sysconfdir}/X11/xorg.conf ] || \
    cp -p %{_sysconfdir}/X11/nvidia-xorg.conf %{_sysconfdir}/X11/xorg.conf || :
@@ -391,6 +400,8 @@
 
 %postun libs -p /sbin/ldconfig
 
+%postun cuda -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root,-)
 %doc nvidiapkg/LICENSE
@@ -450,6 +461,7 @@
 %config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
 %{_nvidia_libdir}/alternate-install-present
 %{_nvidia_libdir}/*.so.*
+%exclude %{_nvidia_libdir}/libcuda.so*
 %ifarch x86_64 i686
 %dir %{_nvidia_libdir}/tls
 %{_nvidia_libdir}/tls/*.so.*
@@ -457,8 +469,11 @@
 %exclude %{_libdir}/vdpau/libvdpau.*
 %{_libdir}/vdpau/libvdpau_nvidia.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
 %defattr(-,root,root,-)
@@ -477,7 +492,6 @@
 %{_nvidia_libdir}/libGLESv2.so
 %{_nvidia_libdir}/libnvidia-eglcore.so
 %{_nvidia_libdir}/libnvidia-glsi.so
-%{_nvidia_libdir}/libcuda.so
 %{_nvidia_libdir}/libGL.so
 %{_nvidia_libdir}/libnvidia-glcore.so
 %{_nvidia_libdir}/libnvidia-fbc.so


More information about the rpmfusion-commits mailing list