]> git.pld-linux.org Git - packages/cg.git/blobdiff - cg.spec
- unconditional noarch subpackages
[packages/cg.git] / cg.spec
diff --git a/cg.spec b/cg.spec
index 7a7e36ce34532bd63fe9ee8ec239c237df1d7a45..51e40ae521dc2c6aee02d69faf33cc398c12a2d4 100644 (file)
--- a/cg.spec
+++ b/cg.spec
@@ -1,16 +1,19 @@
+# TODO:
+#  - link libCg.so with -lm and -lpthread
+
 Summary:       NVIDIA Cg Compiler
-Summary(pl):   Kompilator Cg NVIDII
+Summary(pl.UTF-8):     Kompilator Cg NVIDII
 Name:          cg
-Version:       1.2.1
-Release:       1
+Version:       2.1.0017
+Release:       2
 License:       nVidia
 Group:         Development
-Source0:       ftp://download.nvidia.com/developer/cg/Cg_%{version}/Linux/Cg-%{version}-Linux.tar.gz
-# http://developer.nvidia.com/attach/6488
-Source1:       LinuxSDK.zip
-URL:           http://developer.nvidia.com/Cg
-BuildRequires: unzip
-ExclusiveArch: %{ix86}
+Source0:       http://developer.download.nvidia.com/cg/Cg_2.1/%{version}/Cg-2.1_February2009_x86.tgz
+# Source0-md5: 8752286743ddd9d5997e698714fcc556
+Source1:       http://developer.download.nvidia.com/cg/Cg_2.1/%{version}/Cg-2.1_February2009_x86_64.tgz
+# Source1-md5: 01a3d1e0936c3f221ede5b6bfd8d2e0c
+URL:           http://developer.nvidia.com/object/cg_toolkit.html
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,33 +23,69 @@ ARB_vertex_program and ARB_fragment_program extensions, the compiler
 allows developers to create advanced visual effects for today's
 programmable GPUs from NVIDIA and other vendors.
 
-%description -l pl
-Zestaw narzêdzi Cg NVIDII jest nalepszym sposobem wykorzystywania
-dzisiejszych procesorów graficznych na wielu ró¿nych platformach.
-Dziêki wsparciu rozszerzeñ OpenGL-a ARB_vertex_program i
-ARB_fragment_program, kompilator pozwala developerom tworzyæ
-zaawansowane efekty wizualne na programowalne uk³ady graficzne NVIDII
-i innych producentów.
+%description -l pl.UTF-8
+Zestaw narzędzi Cg NVIDII jest najlepszym sposobem wykorzystywania
+dzisiejszych procesorów graficznych na wielu różnych platformach.
+Dzięki wsparciu rozszerzeń OpenGL-a ARB_vertex_program i
+ARB_fragment_program, kompilator pozwala developerom tworzyć
+zaawansowane efekty wizualne na programowalne układy graficzne NVIDII
+i innych producentów.
 
-%prep
-%setup -q -c
-unzip %{SOURCE1}
+%package devel
+Summary:       Header files for Cg library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Cg
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+# for cgGL
+#Requires:     OpenGL-devel
+
+%description devel
+This is the package containing the header files for Cg library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki Cg.
 
-rm -rf usr/local/Cg/docs/runtime/cgGL/txt
+%package doc
+Summary:       NVIDIA Cg Compiler documentation
+Summary(pl.UTF-8):     Dokumentacja kompilatora Cg NVIDII
+Group:         Documentation
+BuildArch:     noarch
 
-%build
+%description doc
+NVIDIA Cg Compiler documentation.
+
+%description doc -l pl.UTF-8
+Dokumentacja kompilatora Cg NVIDII.
+
+%package examples
+Summary:       Cg examples
+Summary(pl.UTF-8):     Przykłady dla Cg
+Group:         Applications
+BuildArch:     noarch
+
+%description examples
+Cg examples.
+
+%description examples -l pl.UTF-8
+Przykłady dla Cg.
+
+%prep
+%ifarch %{ix86}
+%setup -q -c
+%endif
+%ifarch %{x8664}
+%setup -q -c -T -a 1
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg{,FX},%{_libdir},%{_examplesdir}/%{name}-%{version}}
-
-install usr/bin/* $RPM_BUILD_ROOT%{_bindir}
-install usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg
-install usr/include/CgFX/* $RPM_BUILD_ROOT%{_includedir}/CgFX
-install usr/lib/* $RPM_BUILD_ROOT%{_libdir}
-install usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_libdir},%{_examplesdir}/%{name}-%{version}}
 
-cp -r usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -p usr/bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -p usr/include/Cg/* $RPM_BUILD_ROOT%{_includedir}/Cg
+cp -p usr/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
+cp -p usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
+cp -a usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -56,9 +95,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc usr/local/Cg/{README,docs/{*.pdf,runtime/{html,cgGL}}}
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/*
-%{_mandir}/man3/*
-%{_includedir}/*
-%{_examplesdir}/*
+%doc usr/local/Cg/README
+%attr(755,root,root) %{_bindir}/cgc
+%attr(755,root,root) %{_libdir}/libCg.so
+%attr(755,root,root) %{_libdir}/libCgGL.so
+%{_mandir}/man3/cg*.3*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/Cg
+
+%files doc
+%defattr(644,root,root,755)
+%doc usr/local/Cg/docs/{*.pdf,html/*.html}
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
This page took 0.059629 seconds and 4 git commands to generate.