]>
Commit | Line | Data |
---|---|---|
427302e9 JR |
1 | Summary: NVIDIA CUDA Toolkit |
2 | Summary(pl.UTF-8): Zestaw narzędzi NVIDIA CUDA | |
3 | Name: cudatoolkit | |
4 | Version: 2.3 | |
5 | Release: 1 | |
6 | License: nVidia Binary | |
7 | Group: Applications | |
8 | Source0: http://developer.download.nvidia.com/compute/cuda/2_3/toolkit/%{name}_%{version}_linux_32_fedora10.run | |
40b82522 | 9 | # Source0-md5: 4c7d5002aeff376f826e9744d8322dbe |
427302e9 JR |
10 | Source1: http://developer.download.nvidia.com/compute/cuda/2_3/toolkit/%{name}_%{version}_linux_64_fedora10.run |
11 | # Source1-md5: 9da21f449005be25d0fc928c914562ba | |
12 | URL: http://www.nvidia.com/object/cuda_home.html | |
13 | Requires: %{name}-libs = %{version}-%{release} | |
14 | Requires: qt4-assistant | |
15 | Requires: xorg-driver-video-nvidia-libs >= 1:190.53-4 | |
16 | ExclusiveArch: %{ix86} %{x8664} | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
261c7aa8 JR |
20 | The CUDA™ architecture enables developers to leverage the massively |
21 | parallel processing power of NVIDIA GPUs, delivering the performance | |
22 | of NVIDIA’s world-renowned graphics processor technology to general | |
23 | purpose GPU Computing. | |
427302e9 | 24 | |
261c7aa8 JR |
25 | With the CUDA architecture and tools, developers are achieving |
26 | dramatic speedups in fields such as medical imaging and natural | |
27 | resource exploration, and creating breakthrough applications in areas | |
28 | such as image recognition and real-time HD video playback and | |
29 | encoding. | |
30 | ||
31 | CUDA enables this unprecedented performance via standard APIs such | |
32 | OpenCL and DirectCompute, and high level programming languages such as | |
33 | C/C++, Fortran, Java, Python, and the Microsoft .NET Framework. | |
34 | ||
35 | ##description -l pl.UTF-8 | |
427302e9 JR |
36 | |
37 | %package libs | |
38 | Summary: NVIDIA CUDA libraries | |
39 | Summary(pl.UTF-8): Biblioteki NVIDIA CUDA | |
40 | Group: Libraries | |
41 | ||
42 | %description libs | |
43 | NVIDIA CUDA libraries. | |
44 | ||
45 | %description libs -l pl.UTF-8 | |
46 | Biblioteki NVIDIA CUDA. | |
47 | ||
48 | %prep | |
49 | %setup -qcT | |
50 | %ifarch %{ix86} | |
51 | /bin/sh %{SOURCE0} --noexec --keep | |
52 | %else | |
53 | /bin/sh %{SOURCE1} --noexec --keep | |
54 | %endif | |
55 | ||
56 | cp -a pkg/cudaprof/doc pkg/cudaprof/cudaprof | |
57 | ||
58 | %build | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/cudaprof/{doc,bin}} \ | |
63 | $RPM_BUILD_ROOT{%{_mandir}/man{1,3},%{_includedir}/cuda} | |
64 | ||
65 | install pkg/bin/* $RPM_BUILD_ROOT%{_bindir} | |
66 | cp -a pkg/%{_lib}/* $RPM_BUILD_ROOT%{_libdir} | |
67 | install pkg/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1 | |
68 | install pkg/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 | |
69 | cp -a pkg/include/* $RPM_BUILD_ROOT%{_includedir}/cuda | |
70 | ||
71 | cp -a pkg/cudaprof/doc/cudaprof.{html,q*} $RPM_BUILD_ROOT%{_libdir}/cudaprof/doc | |
72 | cp -a pkg/cudaprof/doc/help.png $RPM_BUILD_ROOT%{_libdir}/cudaprof/doc | |
73 | ||
74 | install pkg/cudaprof/bin/cudaprof $RPM_BUILD_ROOT%{_libdir}/cudaprof/bin | |
75 | ln -s %{_libdir}/qt4/bin/assistant $RPM_BUILD_ROOT%{_libdir}/cudaprof/bin | |
76 | ln -s %{_libdir}/cudaprof/bin/cudaprof $RPM_BUILD_ROOT%{_bindir}/cudaprof | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post libs -p /sbin/ldconfig | |
82 | %postun libs -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc pkg/doc/* pkg/bin/nvcc.profile | |
87 | %doc pkg/cudaprof/CUDA_Visual_Profiler_Release_Notes.txt pkg/cudaprof/cudaprof | |
88 | %attr(755,root,root) %{_bindir}/bin2c | |
89 | %attr(755,root,root) %{_bindir}/cuda-gdb | |
90 | %attr(755,root,root) %{_bindir}/cudafe* | |
91 | %attr(755,root,root) %{_bindir}/cudaprof | |
92 | %attr(755,root,root) %{_bindir}/fatbin | |
93 | %attr(755,root,root) %{_bindir}/filehash | |
94 | %attr(755,root,root) %{_bindir}/nvcc | |
95 | %attr(755,root,root) %{_bindir}/ptxas | |
96 | %{_includedir}/cuda | |
97 | %dir %{_libdir}/cudaprof | |
98 | %dir %{_libdir}/cudaprof/bin | |
99 | %attr(755,root,root) %{_libdir}/cudaprof/bin/* | |
100 | %{_libdir}/cudaprof/doc | |
101 | %attr(755,root,root) %{_libdir}/lib*.so | |
102 | %{_mandir}/man1/* | |
103 | %{_mandir}/man3/* | |
104 | ||
105 | %files libs | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.2 | |
108 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |