]> git.pld-linux.org Git - packages/cg.git/blobdiff - cg.spec
- cosmetics
[packages/cg.git] / cg.spec
diff --git a/cg.spec b/cg.spec
index 235a8ea96a52de7cb65b11f08f3295273db4bc3a..f6fbfee60e60791291ed3ccd5f91eaca68de8524 100644 (file)
--- a/cg.spec
+++ b/cg.spec
@@ -1,3 +1,6 @@
+# TODO:
+#  - link libCg.so with -lm and -lpthread
+
 Summary:       NVIDIA Cg Compiler
 Summary(pl.UTF-8):     Kompilator Cg NVIDII
 Name:          cg
@@ -10,7 +13,7 @@ Source0:      http://developer.download.nvidia.com/cg/Cg_1.5/%{version}/0019/Cg-1.5_F
 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
-BuildRequires: unzip
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,31 +32,38 @@ 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 examples
-Summary:        Cg examples
-Group:          Applications
+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
-%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}}
@@ -74,13 +84,14 @@ 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/*
+%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 examples
 %defattr(644,root,root,755)
This page took 0.092769 seconds and 4 git commands to generate.