]>
Commit | Line | Data |
---|---|---|
af199a7b | 1 | Summary: NVIDIA Cg Compiler |
52f3b024 | 2 | Summary(pl.UTF-8): Kompilator Cg NVIDII |
af199a7b | 3 | Name: cg |
4 | Version: 1.2.1 | |
5 | Release: 1 | |
6 | License: nVidia | |
7 | Group: Development | |
8 | Source0: ftp://download.nvidia.com/developer/cg/Cg_%{version}/Linux/Cg-%{version}-Linux.tar.gz | |
9 | # http://developer.nvidia.com/attach/6488 | |
10 | Source1: LinuxSDK.zip | |
11 | URL: http://developer.nvidia.com/Cg | |
12 | BuildRequires: unzip | |
13 | ExclusiveArch: %{ix86} | |
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 | |
31 | %prep | |
32 | %setup -q -c | |
33 | unzip %{SOURCE1} | |
34 | ||
35 | rm -rf usr/local/Cg/docs/runtime/cgGL/txt | |
36 | ||
37 | %build | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg{,FX},%{_libdir},%{_examplesdir}/%{name}-%{version}} | |
42 | ||
43 | install usr/bin/* $RPM_BUILD_ROOT%{_bindir} | |
44 | install usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg | |
45 | install usr/include/CgFX/* $RPM_BUILD_ROOT%{_includedir}/CgFX | |
46 | install usr/lib/* $RPM_BUILD_ROOT%{_libdir} | |
47 | install usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 | |
48 | ||
49 | cp -r usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %post -p /sbin/ldconfig | |
55 | %postun -p /sbin/ldconfig | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc usr/local/Cg/{README,docs/{*.pdf,runtime/{html,cgGL}}} | |
60 | %attr(755,root,root) %{_bindir}/* | |
61 | %attr(755,root,root) %{_libdir}/* | |
62 | %{_mandir}/man3/* | |
63 | %{_includedir}/* | |
64 | %{_examplesdir}/* |