]> git.pld-linux.org Git - packages/cg.git/blobdiff - cg.spec
- EA: x86(64)
[packages/cg.git] / cg.spec
diff --git a/cg.spec b/cg.spec
index 40f371bf906c1f2875b9f7a644b2317abaf9b1a1..fa7a62a144f3fef4afe83f9d5c1400272e9f9e10 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.UTF-8):     Kompilator Cg NVIDII
 Name:          cg
-Version:       1.2.1
+Version:       1.5.0
 Release:       1
 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_1.5/%{version}/0019/Cg-1.5_Feb2007_x86.tar.gz
+# Source0-md5: 36bc6b9916a82ea70fa638adf1d99ed0
+Source1:       http://developer.download.nvidia.com/cg/Cg_1.5/%{version}/0019/Cg-1.5_Feb2007_x86_64.tar.gz
+# Source1-md5: 4e56dce89adee688817e4337232161e0
+URL:           http://developer.nvidia.com/object/cg_toolkit.html
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -28,22 +31,46 @@ 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.
 
-rm -rf usr/local/Cg/docs/runtime/cgGL/txt
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki Cg.
 
-%build
+%package examples
+Summary:        Cg examples
+Summary(pl.UTF-8):     Przykłady dla Cg
+Group:          Applications
+
+%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 -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{_includedir}/Cg,%{_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/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
 install usr/share/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
 
 cp -r usr/local/Cg/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -56,9 +83,16 @@ 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,docs/{*.pdf,html/*.html,txt/{cg,cgGL,profiles,stdlib}}}
+%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 examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
This page took 0.417713 seconds and 4 git commands to generate.