2 # - link libCg.so with -lm and -lpthread
4 Summary: NVIDIA Cg Compiler
5 Summary(pl.UTF-8): Kompilator Cg NVIDII
11 Source0: http://developer.download.nvidia.com/cg/Cg_2.0/%{version}/Cg-2.0_May2008_x86.tgz
12 # Source0-md5: 311069e73186b3a7837d35df08b714c8
13 Source1: http://developer.download.nvidia.com/cg/Cg_2.0/%{version}/Cg-2.0_May2008_x86_64.tgz
14 # Source1-md5: f0923e9fe9c0e0f1b1f49e9069c59815
15 URL: http://developer.nvidia.com/object/cg_toolkit.html
16 ExclusiveArch: %{ix86} %{x8664}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
24 programmable GPUs from NVIDIA and other vendors.
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
35 Summary: Header files for Cg library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Cg
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
40 #Requires: OpenGL-devel
43 This is the package containing the header files for Cg library.
45 %description devel -l pl.UTF-8
46 Ten pakiet zawiera pliki nagłówkowe biblioteki Cg.
49 Summary: NVIDIA Cg Compiler documentation
50 Summary(pl.UTF-8): Dokumentacja kompilatora Cg NVIDII
51 Group: Development/Libraries
54 NVIDIA Cg Compiler documentation.
56 %description doc -l pl.UTF-8
57 Dokumentacja kompilatora Cg NVIDII.
61 Summary(pl.UTF-8): Przykłady dla Cg
67 %description examples -l pl.UTF-8
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_libdir},%{_examplesdir}/%{name}-%{version}}
82 install usr/bin/* $RPM_BUILD_ROOT%{_bindir}
83 install usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg
84 install usr/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
85 install usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
87 cp -r usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc usr/local/Cg/README
98 %attr(755,root,root) %{_bindir}/cgc
99 %attr(755,root,root) %{_libdir}/libCg.so
100 %attr(755,root,root) %{_libdir}/libCgGL.so
101 %{_mandir}/man3/cg*.3*
104 %defattr(644,root,root,755)
108 %defattr(644,root,root,755)
109 %doc usr/local/Cg/docs/{*.pdf,html/*.html}
112 %defattr(644,root,root,755)
113 %{_examplesdir}/%{name}-%{version}