2007-01-16 00:13:10 +01:00
|
|
|
|
#
|
2008-07-15 21:10:22 +02:00
|
|
|
|
# spec file for package ftgl (Version 2.1.2.99.5)
|
2007-01-16 00:13:10 +01:00
|
|
|
|
#
|
2011-04-26 15:17:12 +02:00
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:13:10 +01:00
|
|
|
|
#
|
2008-10-14 17:52:00 +02:00
|
|
|
|
# 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.
|
|
|
|
|
|
2007-01-16 00:13:10 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
|
2007-01-16 00:13:10 +01:00
|
|
|
|
Name: ftgl
|
|
|
|
|
BuildRequires: doxygen freeglut-devel freetype2-devel gcc-c++ libdrm-devel
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Version: 2.1.2.99.5
|
2011-04-26 15:17:12 +02:00
|
|
|
|
Release: 9
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%define _version 2.1.3-rc5
|
|
|
|
|
%define __version 2.1.3~rc5
|
|
|
|
|
Url: http://ftgl.wiki.sourceforge.net/
|
2007-01-16 00:13:10 +01:00
|
|
|
|
Group: System/Libraries
|
2011-04-26 15:17:12 +02:00
|
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:13:10 +01:00
|
|
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Source: %{name}-%{_version}.tar.bz2
|
2008-10-14 17:52:00 +02:00
|
|
|
|
Patch: %{name}-autoreconf.patch
|
2011-04-26 15:17:12 +02:00
|
|
|
|
Patch1: ftgl-pkgconfig.patch
|
2007-01-16 00:13:10 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-22 23:43:49 +02:00
|
|
|
|
%define debug_package_requires libftgl2 = %{version}-%{release}
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
FTGL is a free open source library that enables developers to use
|
2008-07-15 21:10:22 +02:00
|
|
|
|
arbitrary fonts in their OpenGL (www.opengl.org) applications.
|
|
|
|
|
|
|
|
|
|
Unlike other OpenGL font libraries, FTGL uses standard font file
|
|
|
|
|
formats, so there is no need of a preprocessing step to convert the
|
|
|
|
|
high quality font data into a lesser quality, proprietary format.
|
|
|
|
|
|
|
|
|
|
FTGL uses the Freetype (www.freetype.org) font library to open and
|
|
|
|
|
'decode' the fonts. It then takes that output and stores it in a format
|
|
|
|
|
that is most efficient for OpenGL rendering.
|
|
|
|
|
|
|
|
|
|
The supported rendering modes are:
|
|
|
|
|
|
|
|
|
|
- Bit maps
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
- Antialiased Pix maps
|
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
- Outlines
|
|
|
|
|
|
|
|
|
|
- Polygon meshes
|
|
|
|
|
|
|
|
|
|
- Extruded polygon meshes
|
|
|
|
|
|
2007-01-16 00:13:10 +01:00
|
|
|
|
- Texture maps
|
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
- Buffer maps
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Henry Maddocks <ftgl@opengl.geek.nz>
|
|
|
|
|
Jed Soane
|
2011-04-26 15:17:12 +02:00
|
|
|
|
G<EFBFBD>rard Lanois
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Matthias Kretz
|
|
|
|
|
Andrew Ellerton
|
|
|
|
|
Max Rheiner
|
2011-04-26 15:17:12 +02:00
|
|
|
|
S<EFBFBD>bastien Barr<EFBFBD>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
|
|
|
Robert Bell
|
|
|
|
|
Sam Hocevar <sam@zoy.org>
|
2011-04-26 15:17:12 +02:00
|
|
|
|
<EFBFBD>ric Beets <ericbeets@free.fr>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
|
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
|
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
%package -n libftgl2
|
2011-04-26 15:17:12 +02:00
|
|
|
|
License: LGPLv2.1+
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
2008-07-25 00:45:25 +02:00
|
|
|
|
Provides: ftgl:/usr/%_lib/libftgl.so.0
|
2008-07-15 21:10:22 +02:00
|
|
|
|
|
|
|
|
|
%description -n libftgl2
|
|
|
|
|
FTGL is a free open source library that enables developers to use
|
|
|
|
|
arbitrary fonts in their OpenGL (www.opengl.org) applications.
|
|
|
|
|
|
|
|
|
|
Unlike other OpenGL font libraries, FTGL uses standard font file
|
|
|
|
|
formats, so there is no need of a preprocessing step to convert the
|
|
|
|
|
high quality font data into a lesser quality, proprietary format.
|
|
|
|
|
|
|
|
|
|
FTGL uses the Freetype (www.freetype.org) font library to open and
|
|
|
|
|
'decode' the fonts. It then takes that output and stores it in a format
|
|
|
|
|
that is most efficient for OpenGL rendering.
|
|
|
|
|
|
|
|
|
|
The supported rendering modes are:
|
|
|
|
|
|
|
|
|
|
- Bit maps
|
|
|
|
|
|
|
|
|
|
- Antialiased Pix maps
|
|
|
|
|
|
2007-01-16 00:13:10 +01:00
|
|
|
|
- Outlines
|
|
|
|
|
|
|
|
|
|
- Polygon meshes
|
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
- Extruded polygon meshes
|
|
|
|
|
|
|
|
|
|
- Texture maps
|
|
|
|
|
|
|
|
|
|
- Buffer maps
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Henry Maddocks <ftgl@opengl.geek.nz>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Jed Soane
|
2011-04-26 15:17:12 +02:00
|
|
|
|
G<EFBFBD>rard Lanois
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Matthias Kretz
|
|
|
|
|
Andrew Ellerton
|
|
|
|
|
Max Rheiner
|
2011-04-26 15:17:12 +02:00
|
|
|
|
S<EFBFBD>bastien Barr<EFBFBD>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
|
|
|
Robert Bell
|
|
|
|
|
Sam Hocevar <sam@zoy.org>
|
2011-04-26 15:17:12 +02:00
|
|
|
|
<EFBFBD>ric Beets <ericbeets@free.fr>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
|
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
|
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%package devel
|
2011-04-26 15:17:12 +02:00
|
|
|
|
License: LGPLv2.1+
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-01-16 00:13:10 +01:00
|
|
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Requires: libftgl2 = %{version} Mesa-devel freetype2-devel
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
FTGL is a free open source library that enables developers to use
|
2007-09-13 18:42:09 +02:00
|
|
|
|
arbitrary fonts in their OpenGL (www.opengl.org) applications.
|
|
|
|
|
Unlike other OpenGL font libraries, FTGL uses standard font file
|
|
|
|
|
formats, so there is no need of a preprocessing step to convert
|
|
|
|
|
the high quality font data into a lesser quality, proprietary
|
|
|
|
|
format. FTGL uses the Freetype (www.freetype.org) font library to
|
|
|
|
|
open and 'decode' the fonts. It then takes that output and stores
|
|
|
|
|
it in a format that is most efficient for OpenGL rendering. The
|
|
|
|
|
supported rendering modes are: - Bit maps
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
- Antialiased Pix maps
|
|
|
|
|
|
|
|
|
|
- Texture maps
|
|
|
|
|
|
|
|
|
|
- Outlines
|
|
|
|
|
|
|
|
|
|
- Polygon meshes
|
|
|
|
|
|
2007-09-13 18:42:09 +02:00
|
|
|
|
- Extruded polygon meshes FTGL is designed to be used in commercial
|
|
|
|
|
quality software. It has been written with a focus on performance,
|
|
|
|
|
robustness, and simplicity.
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Henry Maddocks <ftgl@opengl.geek.nz>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Jed Soane
|
2011-04-26 15:17:12 +02:00
|
|
|
|
G<EFBFBD>rard Lanois
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Matthias Kretz
|
|
|
|
|
Andrew Ellerton
|
|
|
|
|
Max Rheiner
|
2011-04-26 15:17:12 +02:00
|
|
|
|
S<EFBFBD>bastien Barr<EFBFBD>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
|
|
|
Robert Bell
|
|
|
|
|
Sam Hocevar <sam@zoy.org>
|
2011-04-26 15:17:12 +02:00
|
|
|
|
<EFBFBD>ric Beets <ericbeets@free.fr>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
|
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
|
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
%package demo
|
2011-04-26 15:17:12 +02:00
|
|
|
|
License: LGPLv2.1+
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
2011-04-26 15:17:12 +02:00
|
|
|
|
# Up to openSUSE 11.0 and SLED 10, %%{_bindir}/FTGLDemo was part of ftgl-devel:
|
2008-07-21 17:51:54 +02:00
|
|
|
|
Conflicts: %{name}-devel <= 2.1.2
|
2008-07-15 21:10:22 +02:00
|
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
|
FTGL is a free open source library that enables developers to use
|
|
|
|
|
arbitrary fonts in their OpenGL (www.opengl.org) applications.
|
|
|
|
|
|
|
|
|
|
Unlike other OpenGL font libraries, FTGL uses standard font file
|
|
|
|
|
formats, so there is no need of a preprocessing step to convert the
|
|
|
|
|
high quality font data into a lesser quality, proprietary format.
|
|
|
|
|
|
|
|
|
|
FTGL uses the Freetype (www.freetype.org) font library to open and
|
|
|
|
|
'decode' the fonts. It then takes that output and stores it in a format
|
|
|
|
|
that is most efficient for OpenGL rendering.
|
|
|
|
|
|
|
|
|
|
The supported rendering modes are:
|
|
|
|
|
|
|
|
|
|
- Bit maps
|
|
|
|
|
|
|
|
|
|
- Antialiased Pix maps
|
|
|
|
|
|
|
|
|
|
- Outlines
|
|
|
|
|
|
|
|
|
|
- Polygon meshes
|
|
|
|
|
|
|
|
|
|
- Extruded polygon meshes
|
|
|
|
|
|
|
|
|
|
- Texture maps
|
|
|
|
|
|
|
|
|
|
- Buffer maps
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Henry Maddocks <ftgl@opengl.geek.nz>
|
|
|
|
|
Jed Soane
|
2011-04-26 15:17:12 +02:00
|
|
|
|
G<EFBFBD>rard Lanois
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Matthias Kretz
|
|
|
|
|
Andrew Ellerton
|
|
|
|
|
Max Rheiner
|
2011-04-26 15:17:12 +02:00
|
|
|
|
S<EFBFBD>bastien Barr<EFBFBD>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
|
|
|
Robert Bell
|
|
|
|
|
Sam Hocevar <sam@zoy.org>
|
2011-04-26 15:17:12 +02:00
|
|
|
|
<EFBFBD>ric Beets <ericbeets@free.fr>
|
2008-07-15 21:10:22 +02:00
|
|
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
|
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
|
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%setup -q -n %{name}-%{__version}
|
2008-10-14 17:52:00 +02:00
|
|
|
|
%patch
|
2011-04-26 15:17:12 +02:00
|
|
|
|
%patch1
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2009-01-27 01:57:53 +01:00
|
|
|
|
autoreconf -f -i -v
|
|
|
|
|
%configure --with-pic \
|
2008-07-15 21:10:22 +02:00
|
|
|
|
--disable-static
|
|
|
|
|
make %{?jobs:-j%jobs} documentationdir=%{_docdir}/%{name}
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%makeinstall documentationdir=%{_docdir}/%{name}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/libftgl2
|
|
|
|
|
cp -pr AUTHORS BUGS COPYING ChangeLog NEWS README TODO $RPM_BUILD_ROOT%{_defaultdocdir}/libftgl2
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
cd demo
|
|
|
|
|
/bin/sh ../libtool --mode=install /usr/bin/install -c FTGLDemo $RPM_BUILD_ROOT%{_bindir}/FTGLDemo
|
|
|
|
|
/bin/sh ../libtool --mode=install /usr/bin/install -c FTGLMFontDemo $RPM_BUILD_ROOT%{_bindir}/FTGLMFontDemo
|
|
|
|
|
/bin/sh ../libtool --mode=install /usr/bin/install -c c-demo $RPM_BUILD_ROOT%{_bindir}/FTGL-c-demo
|
|
|
|
|
/bin/sh ../libtool --mode=install /usr/bin/install -c simple $RPM_BUILD_ROOT%{_bindir}/FTGL-simple-demo
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-demo
|
|
|
|
|
cp -pr *.cpp *.c *.h $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-demo
|
2007-01-16 00:13:10 +01:00
|
|
|
|
cd ..
|
2009-01-27 01:57:53 +01:00
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
grep -r include %{buildroot}%{_includedir} | awk -F: '{print $2}'
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%post -n libftgl2 -p /sbin/ldconfig
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%postun -n libftgl2 -p /sbin/ldconfig
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%files -n libftgl2
|
2007-01-16 00:13:10 +01:00
|
|
|
|
%defattr (-, root, root)
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%doc %dir %{_defaultdocdir}/libftgl2
|
|
|
|
|
%doc %{_defaultdocdir}/libftgl2/[ABCNRT]*
|
|
|
|
|
%{_libdir}/*.so.*
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr (-, root, root)
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%doc %dir %{_defaultdocdir}/%{name}
|
2007-01-16 00:13:10 +01:00
|
|
|
|
%doc %{_defaultdocdir}/%{name}/html
|
2008-07-15 21:10:22 +02:00
|
|
|
|
%doc %{_defaultdocdir}/%{name}/*.txt
|
|
|
|
|
%{_includedir}/FTGL
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
|
%defattr (-, root, root)
|
|
|
|
|
%doc %dir %{_defaultdocdir}/%{name}
|
|
|
|
|
%doc %{_defaultdocdir}/%{name}-demo
|
|
|
|
|
%{_bindir}/FTGLDemo
|
|
|
|
|
%{_bindir}/FTGLMFontDemo
|
|
|
|
|
%{_bindir}/FTGL-c-demo
|
|
|
|
|
%{_bindir}/FTGL-simple-demo
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
2007-09-13 18:42:09 +02:00
|
|
|
|
%changelog
|