File nvidia-texture-tools.spec of Package nvidia-texture-tools

# spec file for package nvidia-texture-tools
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           nvidia-texture-tools
Summary:        NVIDIA Texture Tools
License:        MIT
Group:          Development/Tools/Other
Version:        2.0.6
Release:        0
BuildRequires:  Mesa-devel
BuildRequires:  cmake
BuildRequires:  freeglut-devel
BuildRequires:  gcc-c++
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
BuildRequires:  zlib-devel
# BuildRequires:  cg-devel
Patch0:         nvidia-texture-tools-gcc47.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc

This is the first alpha release of the new NVIDIA Texture Tools. The main highlights of 
this release are support for all DX10 texture formats, higher speed and improved
compression quality.

In addition to that it also comes with a hardware accelerated compressor that 
uses CUDA to compress blocks in parallel on the GPU and runs around 10 times 
faster than the CPU counterpart.

You can obtain CUDA from our developer site at:

The source code of the Texture Tools is being released under the terms of 
the MIT license.

%setup -q -n %name
%patch0 -p1

cmake	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
     	-DDOC_INSTALL_DIR=%{_docdir} \
make VERBOSE=1

if [ "%_lib" != "lib" ];
	mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/%_lib


%defattr(-, root, root)
%doc NVIDIA_Texture_Tools_LICENSE.txt NVIDIA_Texture_Tools_README.txt ChangeLog