Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > non-free-backports-src > by-pkgid > e9745984212caabb616d729563920c27 > files > 4

nvidia-cuda-toolkit-3.2.16-1mdv2010.1.src.rpm

%define name	nvidia-cuda-toolkit
%define version 3.2.16
%define release %mkrel 1

%define driver_ver 260.19.21

Summary:	NVIDIA CUDA Toolkit libraries
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	cudatoolkit_%{version}_linux_32_ubuntu10.04.run
Source1:	cudatoolkit_%{version}_linux_64_ubuntu10.04.run
Source2:	nvidia
License:	Freeware
Group:		System/Libraries
Url:		http://www.nvidia.com/cuda/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Suggests:	nvidia >= %{driver_ver}
# We don't require installation of the NVIDIA graphics drivers so that 
# folks can do CUDA development on systems without NVIDIA hardware.

%description
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDATM architecture, developers can, today,
use C, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDATM enabled
processor. Other languages will be supported in the future, including
FORTRAN and C++.

This package contains the libraries and attendant files needed to run
programs that make use of CUDA.

%package devel
Summary:	NVIDIA CUDA Toolkit development files
Group:		Development/C
Requires:	%{name} = %{version}-%{release}
Suggests:	nvidia-devel >= %{driver_ver}
%define _requires_exceptions libcuda.so.3\\|libcudart.so.3

%description devel
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDATM architecture, developers can, today,
use C, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDATM enabled
processor. Other languages will be supported in the future, including
FORTRAN and C++.

This package contains the development files needed to build programs
that make use of CUDA.

%package -n nvidia-compute-profiler
Summary:	NVIDIA Compute Visual Profiler
Group:		Development/Other
Requires:	%{name} = %{version}-%{release}
Obsoletes:	nvidia-cuda-profiler, nvidia-opencl-profiler
Suggests:	nvidia-devel >= %{driver_ver}
Suggests:	qt4-assistant

%description -n nvidia-compute-profiler
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDATM architecture, developers can, today,
use C, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDATM enabled
processor. Other languages will be supported in the future, including
FORTRAN and C++.

This package contains the Compute Visual Profiler for CUDA and OpenCL.

%prep
%setup -q -T -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -d -m 755 %{buildroot}%{_usr}

%ifarch %ix86
bash %SOURCE0 --tar xf -C %{buildroot}%{_usr}
%else
bash %SOURCE1 --tar xf -C %{buildroot}%{_usr}
%__rm -rf %{buildroot}/usr/lib 
%__sed -i 's/lib/lib64/g' %{buildroot}%{_bindir}/nvcc.profile
%endif

%__mv %{buildroot}%{_usr}/doc ./

%__mv %{buildroot}%{_usr}/computeprof/bin/computeprof %{buildroot}%{_bindir}/
%__mkdir computeprofdoc
%__mv %{buildroot}%{_usr}/computeprof/*.txt computeprofdoc/
%__mv %{buildroot}%{_usr}/computeprof/doc/* computeprofdoc/
%__mv %{buildroot}%{_usr}/computeprof/projects computeprofdoc/
%__rm -rf %{buildroot}%{_usr}/computeprof

%__install -D -m 755 %SOURCE2 %{buildroot}%{_sysconfdir}/init.d/nvidia

%clean
%__rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%_libdir/*.so.*
%_sysconfdir/init.d/*
%exclude %_usr/src
%exclude %_usr/install-linux.pl

%files devel
%defattr(-,root,root)
%doc doc/*
%_bindir/*
%exclude %_bindir/computeprof
%_libdir/*.so
%_includedir/*
%_usr/open64/*
%exclude %_usr/src
%exclude %_usr/install-linux.pl

%files -n nvidia-compute-profiler
%defattr(-,root,root)
%doc computeprofdoc/*
%_bindir/computeprof



%changelog
* Thu Nov 25 2010 Lev Givon <lev@mandriva.org> 3.2.16-1mdv2010.1
+ Revision: 601208
- Update to 3.2.
  Use Ubuntu instead of RHEL tarballs because their linkage
  is more conformant with Mandriva lib versions.

* Fri Sep 03 2010 Lev Givon <lev@mandriva.org> 3.1-1mdv2011.0
+ Revision: 575702
- Update to 3.1.

* Fri Mar 26 2010 Lev Givon <lev@mandriva.org> 3.0-1mdv2010.1
+ Revision: 527582
- Update to 3.0.

* Wed Mar 17 2010 Lev Givon <lev@mandriva.org> 2.3-4mdv2010.1
+ Revision: 524731
- Set /dev/nvidia* perms in startup script even when files
  already exist.

* Tue Nov 10 2009 Lev Givon <lev@mandriva.org> 2.3-3mdv2010.1
+ Revision: 464182
- Suppress problematic automatically generated dependency
  in nvidia-cuda-toolkit-devel.

* Mon Nov 09 2009 Lev Givon <lev@mandriva.org> 2.3-2mdv2010.1
+ Revision: 463330
- Fix issues reported in #55425.

* Sun Nov 08 2009 Lev Givon <lev@mandriva.org> 2.3-1mdv2010.1
+ Revision: 463066
- Update to 2.3.

* Mon Jul 13 2009 Lev Givon <lev@mandriva.org> 2.2-2mdv2010.0
+ Revision: 395463
- Don't build profiler package for x86_64 because the profiler binary
  is only 32 bit.

* Fri Jul 10 2009 Lev Givon <lev@mandriva.org> 2.2-1mdv2010.0
+ Revision: 394322
- Update to 2.2.

* Thu Mar 05 2009 Lev Givon <lev@mandriva.org> 2.1-1mdv2009.1
+ Revision: 348730
- Update to 2.1.

* Tue Feb 24 2009 Lev Givon <lev@mandriva.org> 2.0-4mdv2009.1
+ Revision: 344449
- Don't require nvidia or nvidia-devel so that the cuda
  tools can be run on non-nvidia systems.

* Mon Feb 23 2009 Lev Givon <lev@mandriva.org> 2.0-3mdv2009.1
+ Revision: 344315
- Rebuilt against new nvidia drivers.

* Mon Feb 02 2009 Lev Givon <lev@mandriva.org> 2.0-2mdv2009.1
+ Revision: 336532
- Rebuild.
- import nvidia-cuda-toolkit