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