File gltt.spec of Package gltt

#
# spec file for package gltt
#
# 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 http://bugs.opensuse.org/
#
Name:           gltt
BuildRequires:  freeglut-devel
BuildRequires:  freetype-devel
BuildRequires:  gcc-c++
BuildRequires:  libdrm-devel
BuildRequires:  libtool
BuildRequires:  xorg-x11
Version:        2.5.2
Release:        0
Summary:        Library for TrueType with OpenGL Applications
License:        LGPL-2.1+
Group:          Development/Libraries/X11
Url:            http://gltt.sourceforge.net
Source:         gltt-%{version}.tar.bz2
Patch:          gltt-%{version}-autoconf.patch
Patch2:         gltt-%{version}-ia64.patch
Patch3:         gltt-%{version}-gcc3.dif
Patch4:         gltt-%{version}-automake.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gltt is a library that allows you to read and draw TrueType fonts in
any OpenGL application.

It supports bitmapped and antialiased font drawing as well as
vectorized and polygonized drawing.

%package devel
Summary:        Library for TrueType with OpenGL Applications
License:        GPL-2.0+
Group:          Development/Libraries/X11
Provides:       gltt:%{_includedir}/gltt/FTFace.h
Requires:       %{name} = %{version} xorg-x11-devel freetype-devel

%description devel
gltt is a library that allows you to read and draw TrueType fonts in
any OpenGL application.

It supports bitmapped and antialiased font drawing as well as
vectorized and polygonized drawing.

%prep
%setup
%patch
%patch2
%patch3
%patch4
rm aclocal.m4 

%build
autoreconf --force --install
%configure\
	--with-ttf-libraries=%{_libdir}\
	--with-ttf-includes=%{_includedir}\
	--with-gl-libraries=%{_libdir}
make %{?_smp_mflags}

%install
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files devel
%defattr(-,root,root)
%{_includedir}/gltt
%{_libdir}/libgltt.*a
%{_libdir}/libgltt.so

%changelog
openSUSE Build Service is sponsored by