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