Author: kwizart
Update of /cvs/nonfree/rpms/Cg/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv11875
Modified Files:
sources .cvsignore
Added Files:
Cg.spec
Log Message:
Import 2.1 for F-9
-We need to sync Fedora/Cg version nvidia does support
--- NEW FILE Cg.spec ---
%define maj_version 2.1
%define min_version 0017
%define date February2009
# No debuginfo
%define debug_package %{nil}
# Disable strip
%define __strip /bin/true
%ifarch x86_64
%define priority 10
%else
%define priority 5
%endif
Summary: NVIDIA Cg Toolkit
Name: Cg
Version: %{maj_version}.%{min_version}
Release: 1%{?dist}
URL:
http://developer.nvidia.com/object/cg_toolkit.html
Group: Development/Languages
Source0:
http://developer.download.nvidia.com/cg/Cg_%{maj_version}/%{version}/Cg-%...
Source1:
http://developer.download.nvidia.com/cg/Cg_%{maj_version}/%{version}/Cg-%...
License: Redistributable, no modification permitted
%if 0%{?fedora} >= 11
ExclusiveArch: i586 x86_64
%else
ExclusiveArch: i386 x86_64
%endif
Requires: lib%{name}(%{_target_cpu}) = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /usr/sbin/alternatives
Requires(preun): /usr/sbin/alternatives
%description
The Cg Toolkit provides a compiler for the Cg language, runtime
libraries for use with both leading graphics APIs, runtime libraries for
CgFX, example applications, and extensive documentation. Supporting over
20 different OpenGL and DirectX profile targets, Cg will allow you to
incorporate stunning interactive effects into your 3D applications.
This is the %{date} release
%package docs
Summary: NVIDIA Cg Toolkit documentation
Group: Documentation
%description docs
NVIDIA Cg Toolkit documentation.
%package -n lib%{name}
Summary: NVIDIA Cg Toolkit shared support library
Group: System Environment/Libraries
Provides: lib%{name}(%{_target_cpu}) = %{version}-%{release}
%description -n lib%{name}
This package contains Cg shared support library.
%prep
%ifarch %{ix86}
%setup -q -c %{name}-%{version}
%endif
%ifarch x86_64
%setup -q -c %{name}-%{version} -D -T -a 1
%endif
%build
# Nothing to build
echo "Nothing to build"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_mandir}}
cp -pr usr/bin/* $RPM_BUILD_ROOT%{_bindir}/
cp -pr usr/include/* $RPM_BUILD_ROOT%{_includedir}/
cp -pr .%{_libdir}/* $RPM_BUILD_ROOT%{_libdir}/
cp -pr usr/share/man/* $RPM_BUILD_ROOT%{_mandir}/
mv $RPM_BUILD_ROOT%{_bindir}/cgc $RPM_BUILD_ROOT%{_bindir}/cgc-%{_lib}
# Owernship of the alternative provides
touch $RPM_BUILD_ROOT%{_bindir}/cgc
%clean
rm -rf $RPM_BUILD_ROOT
%post
/usr/sbin/alternatives --install %{_bindir}/cgc cgc %{_bindir}/cgc-%{_lib} %{priority} ||
:
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/alternatives --remove cgc %{_bindir}/cgc-%{_lib} || :
fi
%post -n libCg -p /sbin/ldconfig
%postun -n libCg -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%ghost %{_bindir}/cgc
%attr(755,root,root) %{_bindir}/cgc-%{_lib}
%{_includedir}/Cg/
%{_mandir}/man*/*
%files docs
%defattr(644,root,root,755)
%doc usr/local/Cg/docs usr/local/Cg/examples usr/local/Cg/include
%files -n libCg
%{_libdir}/*.so
%changelog
* Fri Mar 27 2009 kwizart < kwizart at
gmail.com > - 2.1.0017-1
- Update to 2.1.0017 (February2009)
- Re-introduce disttag
- Disable strip
- Fix some conditionnals
* Fri Jan 9 2009 kwizart < kwizart at
gmail.com > - 2.1.0016-1
- Update to 2.1.0016 (November2008)
* Sun May 18 2008 kwizart < kwizart at
gmail.com > - 2.0.0015-1
- Update to 2.0.0015 (May2008)
- No debuginfo anymore
* Sat May 10 2008 kwizart < kwizart at
gmail.com > - 2.0.0012-2
- Ghost to have the owenrship of the alternative provides.
* Sat Feb 16 2008 kwizart < kwizart at
gmail.com > - 2.0.0012-1
- Update to Jan2008
- Tweak to have debuginfo
- Add alternatives to choose between cgc x86 or x86_64
* Thu Jan 3 2008 kwizart < kwizart at
gmail.com > - 2.0.0010-1
- Update to 2.0.0010 (Dec2007)
* Thu Nov 29 2007 kwizart < kwizart at
gmail.com > - 1.5.0023-1
- Update to 1.5.0023 (Sep2007)
* Tue Jul 24 2007 Dominik Mierzejewski <rpm(a)greysector.net> 1.5-1
- updated to 1.5
- split off docs
- call ldconfig for libCg
- per-arch Requires:
* Mon May 22 2006 Dominik Mierzejewski <rpm(a)greysector.net> 1.4.1-1
- initial build
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/Cg/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 May 2008 17:52:27 -0000 1.1
+++ sources 12 May 2009 14:07:16 -0000 1.2
@@ -0,0 +1,2 @@
+8752286743ddd9d5997e698714fcc556 Cg-2.1_February2009_x86.tgz
+01a3d1e0936c3f221ede5b6bfd8d2e0c Cg-2.1_February2009_x86_64.tgz
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/Cg/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 21 May 2008 17:52:27 -0000 1.1
+++ .cvsignore 12 May 2009 14:07:16 -0000 1.2
@@ -0,0 +1,2 @@
+Cg-2.1_February2009_x86.tgz
+Cg-2.1_February2009_x86_64.tgz