]> git.pld-linux.org Git - packages/cg.git/blame - cg.spec
- up to 2.1.0017
[packages/cg.git] / cg.spec
CommitLineData
35833028 1# TODO:
2# - link libCg.so with -lm and -lpthread
3
af199a7b 4Summary: NVIDIA Cg Compiler
52f3b024 5Summary(pl.UTF-8): Kompilator Cg NVIDII
af199a7b 6Name: cg
d65bfc5b 7Version: 2.1.0017
af199a7b 8Release: 1
9License: nVidia
10Group: Development
d65bfc5b 11Source0: http://developer.download.nvidia.com/cg/Cg_2.1/%{version}/Cg-2.1_February2009_x86.tgz
12# Source0-md5: 8752286743ddd9d5997e698714fcc556
13Source1: http://developer.download.nvidia.com/cg/Cg_2.1/%{version}/Cg-2.1_February2009_x86_64.tgz
14# Source1-md5: 01a3d1e0936c3f221ede5b6bfd8d2e0c
acb7710b 15URL: http://developer.nvidia.com/object/cg_toolkit.html
35833028 16ExclusiveArch: %{ix86} %{x8664}
af199a7b 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
82e4d27e 24programmable GPUs from NVIDIA and other vendors.
af199a7b 25
d3dbf8be
JR
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.
af199a7b 33
acb7710b 34%package devel
a1d53ab5 35Summary: Header files for Cg library
cf553452 36Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Cg
a1d53ab5 37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
fe529ddd
JB
39# for cgGL
40#Requires: OpenGL-devel
acb7710b 41
42%description devel
43This is the package containing the header files for Cg library.
44
cf553452
JB
45%description devel -l pl.UTF-8
46Ten pakiet zawiera pliki nagłówkowe biblioteki Cg.
47
bc15f178 48%package doc
49Summary: NVIDIA Cg Compiler documentation
50Summary(pl.UTF-8): Dokumentacja kompilatora Cg NVIDII
51Group: Development/Libraries
52
53%description doc
54NVIDIA Cg Compiler documentation.
55
56%description doc -l pl.UTF-8
57Dokumentacja kompilatora Cg NVIDII.
58
acb7710b 59%package examples
a1d53ab5 60Summary: Cg examples
cf553452 61Summary(pl.UTF-8): Przykłady dla Cg
a1d53ab5 62Group: Applications
af199a7b 63
acb7710b 64%description examples
65Cg examples.
66
cf553452
JB
67%description examples -l pl.UTF-8
68Przykłady dla Cg.
69
acb7710b 70%prep
acb7710b 71%ifarch %{ix86}
cf553452 72%setup -q -c
acb7710b 73%endif
74%ifarch %{x8664}
cf553452 75%setup -q -c -T -a 1
acb7710b 76%endif
af199a7b 77
af199a7b 78%install
79rm -rf $RPM_BUILD_ROOT
acb7710b 80install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_libdir},%{_examplesdir}/%{name}-%{version}}
af199a7b 81
82install usr/bin/* $RPM_BUILD_ROOT%{_bindir}
83install usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg
acb7710b 84install usr/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
af199a7b 85install usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
86
87cp -r usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%post -p /sbin/ldconfig
93%postun -p /sbin/ldconfig
94
95%files
96%defattr(644,root,root,755)
bc15f178 97%doc usr/local/Cg/README
fe529ddd
JB
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*
acb7710b 102
103%files devel
104%defattr(644,root,root,755)
fe529ddd 105%{_includedir}/Cg
acb7710b 106
bc15f178 107%files doc
108%defattr(644,root,root,755)
109%doc usr/local/Cg/docs/{*.pdf,html/*.html}
110
acb7710b 111%files examples
112%defattr(644,root,root,755)
113%{_examplesdir}/%{name}-%{version}
This page took 0.06867 seconds and 4 git commands to generate.