File libgts.spec of Package libgts

# norootforbuild

%define _prefix	/usr

Name:		libgts
Version:	0.7.6
Release:	1OS102DSB
Summary:	GNU Triangulated Surface Library (GTS)
Source:		http://optusnet.dl.sourceforge.net/sourceforge/gts/gts-%{version}.tar.gz
URL:		http://gts.sourceforge.net/
Packager:	Donnie S Bhayangkara - http://donnie.110mb.com
Group:		System/Libraries
License:	GPL
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires:	autoconf automake glib-devel
BuildRequires: 	gcc gcc-c++
BuildRequires: 	libstdc++-devel
Requires: glib

%package devel
Summary: 	Development files and documentation for GTS
Group:		Development/Libraries/C and C++
Requires: 	glib gcc gcc-c++ libgts

%description
GTS stands for the GNU Triangulated Surface Library. It is an Open
Source Free Software Library intended to provide a set of useful
functions to deal with 3D surfaces meshed with interconnected
triangles.

A brief summary of its main features:

  Simple object-oriented structure giving easy access to topological properties.
  2D dynamic Delaunay and constrained Delaunay triangulations. 
  Robust geometric predicates (orientation, in circle) using fast adaptive floating point arithmetic (adapted from the fine work of Jonathan R. Shewchuk).
  Robust set operations on surfaces (union, intersection, difference). 
  Surface refinement and coarsening (multiresolution models). 
  Dynamic view-independent continuous level-of-detail. 
  Preliminary support for view-dependent level-of-detail. 
  Bounding-boxes trees and Kd-trees for efficient point location and collision/intersection detection.
  Graph operations: traversal, graph partitioning. 
  Metric operations (area, volume, curvature ...). 
  Triangle strips generation for fast rendering. 

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%if %suse_version >= 930
%debug_package
%endif
%prep
%setup -q -n "gts-%{version}"
%{?suse_update_config:%{suse_update_config -f}}

%build

%configure

%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif

%clean
%__rm -rf "%{buildroot}"

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
%{_bindir}/*
%exclude %{_bindir}/gts-config
%{_libdir}/*
%exclude %{_libdir}/pkgconfig

%files devel
%defattr(-,root,root)
%doc examples doc
%{_bindir}/gts-config
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_datadir}/aclocal/*

%changelog
* Sat Jan 13 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.7.6
- initial package.

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by