%define name @PACKAGE@
%define version @VERSION@
%define release 1
%define libsuffix @LIBMF_LIB_SUFFIX@

Summary: A library for acessing various model file formats
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: BSD
Group: System Environment/Libraries
Packager: Al Riddoch <alriddoch@zepler.org>
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
The %{name} library is a collection of small clean C libraries for loading 3D
models of various file formats. So far the range of model formats is limited.

%package devel
Summary: Development files for model file applications.
Group: Development/Libraries
Requires: %{name} = %{version}

%description devel
The %{name}-devel package contains libraries, include files, and other
resource you can use to develop model file applications.

%prep
%setup -q

%build
%configure --enable-static
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%doc AUTHORS ChangeLog COPYING NEWS README TODO

%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_libdir}/lib*.a
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}%{libsuffix}
