SPECS: cg.spec - up to 1.5.0 - updated URL - -devel, -examples

arvenil arvenil at pld-linux.org
Sat May 26 13:58:26 CEST 2007


Author: arvenil                      Date: Sat May 26 11:58:26 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 1.5.0
- updated URL
- -devel, -examples

---- Files affected:
SPECS:
   cg.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/cg.spec
diff -u SPECS/cg.spec:1.5 SPECS/cg.spec:1.6
--- SPECS/cg.spec:1.5	Mon Feb 12 22:23:50 2007
+++ SPECS/cg.spec	Sat May 26 13:58:20 2007
@@ -2,16 +2,16 @@
 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
+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
 BuildRequires:	unzip
-ExclusiveArch:	%{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,22 +29,39 @@
 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
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+This is the package containing the header files for Cg library.
+
+%package examples
+Summary:        Cg examples
+Group:          Applications
+
+%description examples
+Cg examples.
 
-rm -rf usr/local/Cg/docs/runtime/cgGL/txt
+%prep
+%setup -q -c -T
+%ifarch %{ix86}
+tar xf %{SOURCE0}
+%endif
+%ifarch %{x8664}
+tar xf %{SOURCE1}
+%endif
 
 %build
 
 %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}
@@ -57,12 +74,18 @@
 
 %files
 %defattr(644,root,root,755)
-%doc usr/local/Cg/{README,docs/{*.pdf,runtime/{html,cgGL}}}
+%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/*
+
+%files devel
+%defattr(644,root,root,755)
 %{_includedir}/*
-%{_examplesdir}/*
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -70,6 +93,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2007/05/26 11:58:20  arvenil
+- up to 1.5.0
+- updated URL
+- -devel, -examples
+
 Revision 1.5  2007/02/12 21:23:50  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cg.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list