]> git.pld-linux.org Git - packages/cg.git/blob - cg.spec
noarch -doc, -examples
[packages/cg.git] / cg.spec
1 # TODO:
2 #  - link libCg.so with -lm and -lpthread
3
4 Summary:        NVIDIA Cg Compiler
5 Summary(pl.UTF-8):      Kompilator Cg NVIDII
6 Name:           cg
7 Version:        2.1.0017
8 Release:        2
9 License:        nVidia
10 Group:          Development
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
15 URL:            http://developer.nvidia.com/object/cg_toolkit.html
16 ExclusiveArch:  %{ix86} %{x8664}
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
24 programmable GPUs from NVIDIA and other vendors.
25
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.
33
34 %package devel
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}
39 # for cgGL
40 #Requires:      OpenGL-devel
41
42 %description devel
43 This is the package containing the header files for Cg library.
44
45 %description devel -l pl.UTF-8
46 Ten pakiet zawiera pliki nagłówkowe biblioteki Cg.
47
48 %package doc
49 Summary:        NVIDIA Cg Compiler documentation
50 Summary(pl.UTF-8):      Dokumentacja kompilatora Cg NVIDII
51 Group:          Documentation
52 %if "%{_rpmversion}" >= "5"
53 BuildArch:      noarch
54 %endif
55
56 %description doc
57 NVIDIA Cg Compiler documentation.
58
59 %description doc -l pl.UTF-8
60 Dokumentacja kompilatora Cg NVIDII.
61
62 %package examples
63 Summary:        Cg examples
64 Summary(pl.UTF-8):      Przykłady dla Cg
65 Group:          Applications
66 %if "%{_rpmversion}" >= "5"
67 BuildArch:      noarch
68 %endif
69
70 %description examples
71 Cg examples.
72
73 %description examples -l pl.UTF-8
74 Przykłady dla Cg.
75
76 %prep
77 %ifarch %{ix86}
78 %setup -q -c
79 %endif
80 %ifarch %{x8664}
81 %setup -q -c -T -a 1
82 %endif
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_libdir},%{_examplesdir}/%{name}-%{version}}
87
88 install -p usr/bin/* $RPM_BUILD_ROOT%{_bindir}
89 cp -p usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg
90 cp -p usr/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
91 cp -p usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
92 cp -a usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc usr/local/Cg/README
103 %attr(755,root,root) %{_bindir}/cgc
104 %attr(755,root,root) %{_libdir}/libCg.so
105 %attr(755,root,root) %{_libdir}/libCgGL.so
106 %{_mandir}/man3/cg*.3*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %{_includedir}/Cg
111
112 %files doc
113 %defattr(644,root,root,755)
114 %doc usr/local/Cg/docs/{*.pdf,html/*.html}
115
116 %files examples
117 %defattr(644,root,root,755)
118 %{_examplesdir}/%{name}-%{version}
This page took 0.085069 seconds and 3 git commands to generate.