]> 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 235a8ea96a52de7cb65b11f08f3295273db4bc3a..d634683bf5dcc677c462047ec65a147421ee1f8c 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.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
-BuildRequires: unzip
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,41 +32,64 @@ zaawansowane efekty wizualne na programowalne układy graficzne NVIDII
 i innych producentów.
 
 %package devel
-Summary:        Header files for Cg library
-Group:          Development/Libraries
-Requires:       %{name} = %{version}-%{release}
+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.
+
+%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
-Group:          Applications
+Summary:       Cg examples
+Summary(pl.UTF-8):     Przykłady dla Cg
+Group:         Applications
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description examples
 Cg examples.
 
+%description examples -l pl.UTF-8
+Przykłady dla Cg.
+
 %prep
-%setup -q -c -T
 %ifarch %{ix86}
-tar xf %{SOURCE0}
+%setup -q -c
 %endif
 %ifarch %{x8664}
-tar xf %{SOURCE1}
+%setup -q -c -T -a 1
 %endif
 
-%build
-
 %install
 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
@@ -73,14 +99,19 @@ 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}}}
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/*
-%{_mandir}/man3/*
+%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}/*
+%{_includedir}/Cg
+
+%files doc
+%defattr(644,root,root,755)
+%doc usr/local/Cg/docs/{*.pdf,html/*.html}
 
 %files examples
 %defattr(644,root,root,755)
This page took 0.068205 seconds and 4 git commands to generate.