gts/gts.spec
Philipp Thomas 12d4d11988 - Clone package from KDE:KDE3.
- Submit to Factory as it's needed for graphviz-smyrna.
- Pass include direrctories in AM_CPPFLAGS instead of by
  --includedir.
- Add the gts headers to the devel package.

OBS-URL: https://build.opensuse.org/package/show/graphics/gts?expand=0&rev=2
2013-10-24 09:34:23 +00:00

119 lines
3.2 KiB
RPMSpec

#
# spec file for package gts (0.7.6)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
%define soname 0_7-5
Name: gts
Version: 0.7.6
Release: 1
Summary: GNU Triangulated Surface Library (GTS)
#Source: http://optusnet.dl.sourceforge.net/sourceforge/gts/gts-%{version}.tar.gz
Source0: %{name}-%{version}.tar.bz2
URL: http://gts.sourceforge.net/
Group: System/Libraries
License: LGPL-2.0
BuildRequires: autoconf libtool
BuildRequires: automake
BuildRequires: glib2-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: libnetpbm-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libgts-%{soname} = %{version}
%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.
%package -n libgts-%{soname}
Summary: GTS Libraries
Group: System/libraries
%description -n libgts-%{soname}
This package provides libgst libraries
%package devel
Summary: Development files and documentation for GTS
Group: Development/Libraries/C and C++
Requires: glib2-devel
Requires: gcc
Requires: gcc-c++
Requires: %{name} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q -n "gts-%{version}"
%{?suse_update_config:%{suse_update_config -f}}
%build
export AM_CPPFLAGS="-I/usr/include/netpbm"
%{configure}
make %{?jobs:-j%{jobs}}
%install
make DESTDIR=%buildroot install
rm %{buildroot}/%{_libdir}/*.a
rm %{buildroot}/%{_libdir}/*.la
rm -rf '%{buildroot}/usr/include -I'
%post -n libgts-%{soname} -p /sbin/ldconfig
%postun -n libgts-%{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
%{_bindir}/delaunay
%{_bindir}/gts2dxf
%{_bindir}/gts2oogl
%{_bindir}/gts2stl
%{_bindir}/gtscheck
%{_bindir}/gts-config
%{_bindir}/gtscompare
%{_bindir}/gtstemplate
%{_bindir}/stl2gts
%{_bindir}/transform
%files -n libgts-%{soname}
%defattr(-,root,root)
%{_libdir}/libgts-0.7.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/gts.h
%{_includedir}/gtsconfig.h
%{_bindir}/happrox
%{_libdir}/libgts.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4
%changelog