Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Emulators
libcuda
CUDA.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CUDA.spec of Package libcuda
# # spec file for package CUDA # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # # Please submit bugfixes or comments via bumblebee.obs@gmail.com # %if 0%{?suse_version} BuildRequires: kate fdupes libfakegpgpu %endif BuildRequires: chrpath Requires: libQtAssistantClient4 Name: CUDA License: GPL-2.0+ Summary: Cuda toolkit Version: 3.1 Release: 1 Group: Development/Libraries/Other Url: https://developer.nvidia.com/cuda-toolkit-31-downloads BuildRoot: %{_tmppath}/%{name}-%{version}-build %ifarch x86_64 Source0: cudatoolkit_%{version}_linux_64_suse11.2.run %else Source0: cudatoolkit_%{version}_linux_32_suse11.2.run %endif Source4: cu.xml %description This Package Provides CUDA, CuBLAS and CuFFT %package -n libcudart3 Summary: Headers for CUDA libs, including cuBLAS and cuFFT %description -n libcudart3 cufft %package -n libcublas3 Summary: Headers for CUDA libs, including cuBLAS and cuFFT %description -n libcublas3 cublas %package -n libcufft3 Summary: Headers for CUDA libs, including cuBLAS and cuFFT %description -n libcufft3 cufft %package devel Summary: Headers for CUDA libs, including cuBLAS and cuFFT Requires: libcublas3 = %{version}-%{release} Requires: libcudart3 = %{version}-%{release} Requires: libcufft3 = %{version}-%{release} %description devel This Package Provides CUDA, CuBLAS and CuFFT Headers %package tools Summary: Provide NVCC %description tools This package provides NVCC, the Nvidia compiler for C for CUDA. %package doc Summary: Docs for cuda libs, includeing cublas and cufft BuildArch: noarch %description doc This Package Provides CUDA, CuBLAS and CuFFT Docs buildarch: noarch %package Profiler Summary: Computeprofiler %description Profiler This Package Provides Cudaprofiler, to profile local performance of CUDA execution %prep cp %{S:4} . %build sh %{S:0} --noexec --keep %install mkdir -p %buildroot%{_bindir} mkdir -p %buildroot%{_includedir}/CL mkdir -p %buildroot%{_includedir}/cuda mkdir -p %buildroot%{_libdir} mkdir -p %buildroot%{_prefix}/local/cuda/bin mkdir -p %buildroot%{_prefix}/local/cuda/include mkdir -p %buildroot%{_docdir}/cuda/open64 mkdir -p %buildroot%{_mandir} mkdir -p %buildroot%{_datadir}/kde4/apps/katepart/syntax install -m 644 cu.xml %{buildroot}%{_datadir}/kde4/apps/katepart/syntax pushd pkg pushd bin for file in `find . -type f -not -iname 'nvcc.profile'`;do install -s $file %{buildroot}%{_prefix}/local/cuda/bin done install nvcc.profile %{buildroot}%{_prefix}/local/cuda/bin sed -i '1s/^/#!\/bin\/bash\n/' %{buildroot}%{_prefix}/local/cuda/bin/nvcc.profile popd install computeprof/bin/computeprof %{buildroot}%{_bindir} pushd %{_lib} for file in `find *.so.%{version}.9 -type f`;do install -s $file %{buildroot}%{_libdir} ln -s %{buildroot}%{_libdir}/$file %{buildroot}%{_libdir}/`basename $file .%{version}.9` done popd sed -i "s|^/usr/lib64/libcublas.so|../../lib64/cuda/libcublas.so.3.1.9|" %{buildroot}%{_libdir}/libcublas.so sed -i "s|^/usr/lib64/libcudart.so|../../lib64/cuda/libcudart.so.3.1.9|" %{buildroot}%{_libdir}/libcudart.so sed -i "s|^/usr/lib64/libcufft.so|../../lib64/cuda/libcufft.so.3.1.9|" %{buildroot}%{_libdir}/libcufft.so pushd include pushd CL; for file in `find * -type f`;do install -m 644 -D $file %{buildroot}%{_includedir}/CL rm $file; done; popd; for file in `find * -type f`;do install -m 644 -D $file %{buildroot}%{_prefix}/local/cuda/include done; popd pushd doc for file in `find * -type f`;do install -m 644 -D $file %{buildroot}%{_docdir}/cuda done; popd pushd open64 for file in `find * -type f`;do install -s $file %{buildroot}%{_prefix}/local/cuda/open64 done; popd popd ln -s %{_prefix}/local/cuda/bin/nvcc %{buildroot}%{_bindir}/nvcc ln -s %{_prefix}/local/cuda/include %{buildroot}%{_includedir}/cuda %if 0%{?suse_version} %fdupes -s %{buildroot} chrpath --delete %{buildroot}%{_bindir}/computeprof %endif %post -n libcudart3 /sbin/ldconfig %postun -n libcudart3 /sbin/ldconfig %post -n libcublas3 /sbin/ldconfig %postun -n libcublas3 /sbin/ldconfig %post -n libcufft3 /sbin/ldconfig %postun -n libcufft3 /sbin/ldconfig %post ldconfig %postun ldconfig %files -n libcudart3 %defattr(-,root,root) %{_libdir}/libcudart.so.%{version}.9 %files -n libcublas3 %defattr(-,root,root) %{_libdir}/libcublas.so.%{version}.9 %files -n libcufft3 %defattr(-,root,root) %{_libdir}/libcufft.so.%{version}.9 %files devel %dir %{_prefix}/local/cuda %dir %{_prefix}/local/cuda/include %{_libdir}/*.so %{_includedir}/cuda/ %{_datadir}/kde4/apps/katepart/syntax/cu.xml %{_prefix}/local/cuda/include/* %dir %{_datadir}/kde4 %dir %{_datadir}/kde4/apps %dir %{_datadir}/kde4/apps/katepart %dir %{_datadir}/kde4/apps/katepart/syntax %exclude /usr/include/CL/cl.h %exclude /usr/include/CL/cl_ext.h %exclude /usr/include/CL/cl_gl.h %exclude /usr/include/CL/cl_gl_ext.h %exclude /usr/include/CL/cl_platform.h %exclude /usr/include/CL/opencl.h %files tools %{_bindir}/nvcc %{_prefix}/local/cuda/bin %{_prefix}/local/cuda/open64 %files Profiler %{_bindir}/computeprof %files doc %doc %{_docdir}/cuda
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor