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