]>
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 |
d65bfc5b | 7 | Version: 2.1.0017 |
1bea86c7 | 8 | Release: 2 |
af199a7b | 9 | License: nVidia |
10 | Group: Development | |
d65bfc5b | 11 | Source0: http://developer.download.nvidia.com/cg/Cg_2.1/%{version}/Cg-2.1_February2009_x86.tgz |
12 | # Source0-md5: 8752286743ddd9d5997e698714fcc556 | |
13 | Source1: http://developer.download.nvidia.com/cg/Cg_2.1/%{version}/Cg-2.1_February2009_x86_64.tgz | |
14 | # Source1-md5: 01a3d1e0936c3f221ede5b6bfd8d2e0c | |
acb7710b | 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 |
a1d53ab5 | 35 | Summary: Header files for Cg library |
cf553452 | 36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Cg |
a1d53ab5 | 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 | ||
bc15f178 | 48 | %package doc |
49 | Summary: NVIDIA Cg Compiler documentation | |
50 | Summary(pl.UTF-8): Dokumentacja kompilatora Cg NVIDII | |
1bea86c7 | 51 | Group: Documentation |
1bea86c7 | 52 | BuildArch: noarch |
bc15f178 | 53 | |
54 | %description doc | |
55 | NVIDIA Cg Compiler documentation. | |
56 | ||
57 | %description doc -l pl.UTF-8 | |
58 | Dokumentacja kompilatora Cg NVIDII. | |
59 | ||
acb7710b | 60 | %package examples |
a1d53ab5 | 61 | Summary: Cg examples |
cf553452 | 62 | Summary(pl.UTF-8): Przykłady dla Cg |
a1d53ab5 | 63 | Group: Applications |
1bea86c7 | 64 | BuildArch: noarch |
af199a7b | 65 | |
acb7710b | 66 | %description examples |
67 | Cg examples. | |
68 | ||
cf553452 JB |
69 | %description examples -l pl.UTF-8 |
70 | Przykłady dla Cg. | |
71 | ||
acb7710b | 72 | %prep |
acb7710b | 73 | %ifarch %{ix86} |
cf553452 | 74 | %setup -q -c |
acb7710b | 75 | %endif |
76 | %ifarch %{x8664} | |
cf553452 | 77 | %setup -q -c -T -a 1 |
acb7710b | 78 | %endif |
af199a7b | 79 | |
af199a7b | 80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
acb7710b | 82 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_libdir},%{_examplesdir}/%{name}-%{version}} |
af199a7b | 83 | |
1bea86c7 ER |
84 | install -p usr/bin/* $RPM_BUILD_ROOT%{_bindir} |
85 | cp -p usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg | |
86 | cp -p usr/%{_lib}/* $RPM_BUILD_ROOT%{_libdir} | |
87 | cp -p usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 | |
88 | cp -a usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
af199a7b | 89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
bc15f178 | 98 | %doc usr/local/Cg/README |
fe529ddd JB |
99 | %attr(755,root,root) %{_bindir}/cgc |
100 | %attr(755,root,root) %{_libdir}/libCg.so | |
101 | %attr(755,root,root) %{_libdir}/libCgGL.so | |
102 | %{_mandir}/man3/cg*.3* | |
acb7710b | 103 | |
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
fe529ddd | 106 | %{_includedir}/Cg |
acb7710b | 107 | |
bc15f178 | 108 | %files doc |
109 | %defattr(644,root,root,755) | |
110 | %doc usr/local/Cg/docs/{*.pdf,html/*.html} | |
111 | ||
acb7710b | 112 | %files examples |
113 | %defattr(644,root,root,755) | |
114 | %{_examplesdir}/%{name}-%{version} |