File gltt.spec of Package gltt
#
# spec file for package gltt
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: gltt
BuildRequires: freeglut-devel freetype gcc-c++ libdrm-devel xorg-x11
BuildRequires: libtool
License: LGPL v2.1 or later
Group: Development/Libraries/X11
Version: 2.5.2
Release: 704
Summary: Library for TrueType with OpenGL Applications
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.
Authors:
--------
Stephane Rehel <rehel@worldnet.fr>
%package devel
License: GPL v2 or later
Summary: Library for TrueType with OpenGL Applications
Group: Development/Libraries/X11
Provides: gltt:%{_includedir}/gltt/FTFace.h
# FIXME: freetype should split to freetype & freetype-devel
Requires: %{name} = %{version} xorg-x11-devel freetype
%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.
Authors:
--------
Stephane Rehel <rehel@worldnet.fr>
%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 %{?jobs:-j%jobs}
%install
%makeinstall
%clean
rm -rf "$RPM_BUILD_ROOT"
%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