]>
Commit | Line | Data |
---|---|---|
af199a7b | 1 | Summary: NVIDIA Cg Compiler |
52f3b024 | 2 | Summary(pl.UTF-8): Kompilator Cg NVIDII |
af199a7b | 3 | Name: cg |
acb7710b | 4 | Version: 1.5.0 |
af199a7b | 5 | Release: 1 |
6 | License: nVidia | |
7 | Group: Development | |
acb7710b | 8 | Source0: http://developer.download.nvidia.com/cg/Cg_1.5/%{version}/0019/Cg-1.5_Feb2007_x86.tar.gz |
9 | # Source0-md5: 36bc6b9916a82ea70fa638adf1d99ed0 | |
10 | Source1: http://developer.download.nvidia.com/cg/Cg_1.5/%{version}/0019/Cg-1.5_Feb2007_x86_64.tar.gz | |
11 | # Source1-md5: 4e56dce89adee688817e4337232161e0 | |
12 | URL: http://developer.nvidia.com/object/cg_toolkit.html | |
af199a7b | 13 | BuildRequires: unzip |
af199a7b | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | The NVIDIA Cg Toolkit is the best way to take advantage of today's | |
18 | GPUs across multiple platforms and APIs. Now supporting OpenGL's | |
19 | ARB_vertex_program and ARB_fragment_program extensions, the compiler | |
20 | allows developers to create advanced visual effects for today's | |
82e4d27e | 21 | programmable GPUs from NVIDIA and other vendors. |
af199a7b | 22 | |
d3dbf8be JR |
23 | %description -l pl.UTF-8 |
24 | Zestaw narzędzi Cg NVIDII jest najlepszym sposobem wykorzystywania | |
25 | dzisiejszych procesorów graficznych na wielu różnych platformach. | |
26 | Dzięki wsparciu rozszerzeń OpenGL-a ARB_vertex_program i | |
27 | ARB_fragment_program, kompilator pozwala developerom tworzyć | |
28 | zaawansowane efekty wizualne na programowalne układy graficzne NVIDII | |
29 | i innych producentów. | |
af199a7b | 30 | |
acb7710b | 31 | %package devel |
32 | Summary: Header files for Cg library | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | This is the package containing the header files for Cg library. | |
38 | ||
39 | %package examples | |
40 | Summary: Cg examples | |
41 | Group: Applications | |
af199a7b | 42 | |
acb7710b | 43 | %description examples |
44 | Cg examples. | |
45 | ||
46 | %prep | |
47 | %setup -q -c -T | |
48 | %ifarch %{ix86} | |
49 | tar xf %{SOURCE0} | |
50 | %endif | |
51 | %ifarch %{x8664} | |
52 | tar xf %{SOURCE1} | |
53 | %endif | |
af199a7b | 54 | |
55 | %build | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
acb7710b | 59 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_libdir},%{_examplesdir}/%{name}-%{version}} |
af199a7b | 60 | |
61 | install usr/bin/* $RPM_BUILD_ROOT%{_bindir} | |
62 | install usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg | |
acb7710b | 63 | install usr/%{_lib}/* $RPM_BUILD_ROOT%{_libdir} |
af199a7b | 64 | install usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 |
65 | ||
66 | cp -r usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
acb7710b | 76 | %doc usr/local/Cg/{README,docs/{*.pdf,html/*.html,txt/{cg,cgGL,profiles,stdlib}}} |
af199a7b | 77 | %attr(755,root,root) %{_bindir}/* |
78 | %attr(755,root,root) %{_libdir}/* | |
79 | %{_mandir}/man3/* | |
acb7710b | 80 | |
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
af199a7b | 83 | %{_includedir}/* |
acb7710b | 84 | |
85 | %files examples | |
86 | %defattr(644,root,root,755) | |
87 | %{_examplesdir}/%{name}-%{version} |