File libgts.spec of Package libgts

Name:           libgts-0_7-5
Version:        0.7.6
Release:        1%{?dist}
Summary:        GNU Triangulated Surface Library

Group:          System Environment/Libraries
License:        LGPL
URL:            http://gts.sourceforge.net/
Source0:        http://downloads.sourceforge.net/gts/gts-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  gcc glib2-devel 
#Requires:       

%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. The source code is available
free of charge under the Free Software LGPL license.

The code is written entirely in C with an object-oriented approach based
mostly on the design of GTK+. Careful attention is paid to performance related
issues as the initial goal of GTS is to provide a simple and efficient library
to scientists dealing with 3D computational surface meshes.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q -n gts-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%{_prefix} \
		       --libdir=%{_libdir} --disable-static
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*
%{_libdir}/*.so
%{_bindir}/*
%{_libdir}/pkgconfig/gts.pc
%{_datadir}/aclocal/gts.m4

%changelog
* Tue Mar 31 2009 Rene van Paassen <Rene.vanPaassen@gmail.com> 0.7.6-1
- Initial rpm. Completely ignored the rpm in the package
openSUSE Build Service is sponsored by