]> git.pld-linux.org Git - packages/cg.git/blobdiff - cg.spec
noarch -doc, -examples
[packages/cg.git] / cg.spec
diff --git a/cg.spec b/cg.spec
index fa7a62a144f3fef4afe83f9d5c1400272e9f9e10..d634683bf5dcc677c462047ec65a147421ee1f8c 100644 (file)
--- a/cg.spec
+++ b/cg.spec
@@ -4,14 +4,14 @@
 Summary:       NVIDIA Cg Compiler
 Summary(pl.UTF-8):     Kompilator Cg NVIDII
 Name:          cg
-Version:       1.5.0
-Release:       1
+Version:       2.1.0017
+Release:       2
 License:       nVidia
 Group:         Development
-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
+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)
@@ -32,10 +32,10 @@ zaawansowane efekty wizualne na programowalne układy graficzne NVIDII
 i innych producentów.
 
 %package devel
-Summary:        Header files for Cg library
+Summary:       Header files for Cg library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Cg
-Group:          Development/Libraries
-Requires:       %{name} = %{version}-%{release}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 # for cgGL
 #Requires:     OpenGL-devel
 
@@ -45,10 +45,27 @@ 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.
 
+%package doc
+Summary:       NVIDIA Cg Compiler documentation
+Summary(pl.UTF-8):     Dokumentacja kompilatora Cg NVIDII
+Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description doc
+NVIDIA Cg Compiler documentation.
+
+%description doc -l pl.UTF-8
+Dokumentacja kompilatora Cg NVIDII.
+
 %package examples
-Summary:        Cg examples
+Summary:       Cg examples
 Summary(pl.UTF-8):     Przykłady dla Cg
-Group:          Applications
+Group:         Applications
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description examples
 Cg examples.
@@ -68,12 +85,11 @@ Przykłady dla Cg.
 rm -rf $RPM_BUILD_ROOT
 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/%{_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}
+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
@@ -83,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc usr/local/Cg/{README,docs/{*.pdf,html/*.html,txt/{cg,cgGL,profiles,stdlib}}}
+%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
@@ -93,6 +109,10 @@ rm -rf $RPM_BUILD_ROOT
 %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.066148 seconds and 4 git commands to generate.