324 lines
9.2 KiB
RPMSpec
324 lines
9.2 KiB
RPMSpec
#
|
|
# spec file for package ftgl (Version 2.1.2.99.5)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: ftgl
|
|
BuildRequires: doxygen freeglut-devel freetype2-devel gcc-c++ libdrm-devel
|
|
Version: 2.1.2.99.5
|
|
Release: 3
|
|
%define _version 2.1.3-rc5
|
|
%define __version 2.1.3~rc5
|
|
Url: http://ftgl.wiki.sourceforge.net/
|
|
Group: System/Libraries
|
|
License: LGPL v2.1 or later; X11/MIT
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
|
Source: %{name}-%{_version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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
|
|
Gérard Lanois
|
|
Matthias Kretz
|
|
Andrew Ellerton
|
|
Max Rheiner
|
|
Sébastien Barré
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
Robert Bell
|
|
Sam Hocevar <sam@zoy.org>
|
|
Éric Beets <ericbeets@free.fr>
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
|
|
|
%package -n libftgl2
|
|
License: LGPL v2.1 or later
|
|
Group: System/Libraries
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
|
Provides: ftgl:/usr/%_lib/libftgl.so.0
|
|
|
|
%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
|
|
|
|
- Outlines
|
|
|
|
- Polygon meshes
|
|
|
|
- Extruded polygon meshes
|
|
|
|
- Texture maps
|
|
|
|
- Buffer maps
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Henry Maddocks <ftgl@opengl.geek.nz>
|
|
Jed Soane
|
|
Gérard Lanois
|
|
Matthias Kretz
|
|
Andrew Ellerton
|
|
Max Rheiner
|
|
Sébastien Barré
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
Robert Bell
|
|
Sam Hocevar <sam@zoy.org>
|
|
Éric Beets <ericbeets@free.fr>
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
|
|
|
%package devel
|
|
License: LGPL v2.1 or later
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
|
Requires: libftgl2 = %{version} Mesa-devel freetype2-devel
|
|
|
|
%description devel
|
|
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
|
|
|
|
- Texture maps
|
|
|
|
- Outlines
|
|
|
|
- Polygon meshes
|
|
|
|
- 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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Henry Maddocks <ftgl@opengl.geek.nz>
|
|
Jed Soane
|
|
Gérard Lanois
|
|
Matthias Kretz
|
|
Andrew Ellerton
|
|
Max Rheiner
|
|
Sébastien Barré
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
Robert Bell
|
|
Sam Hocevar <sam@zoy.org>
|
|
Éric Beets <ericbeets@free.fr>
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
|
|
|
%package demo
|
|
License: LGPL v2.1 or later
|
|
Group: System/Libraries
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
|
Requires: %{name} = %{version}
|
|
# Up to openSUSE 11.0 and SLED 10, %{_bindir}/FTGLDemo was part of ftgl-devel:
|
|
Conflicts: %{name}-devel <= 2.1.2
|
|
|
|
%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
|
|
Gérard Lanois
|
|
Matthias Kretz
|
|
Andrew Ellerton
|
|
Max Rheiner
|
|
Sébastien Barré
|
|
Marcelo E. Magallon <mmagallo@debian.org>
|
|
Robert Bell
|
|
Sam Hocevar <sam@zoy.org>
|
|
Éric Beets <ericbeets@free.fr>
|
|
Christopher Sean Morrison <learner@brlcad.org>
|
|
Jeff Myers (JeffM2501) <JeffM2501@users.sourceforge.net>
|
|
Daniel Remenak <dtremenak@users.sourceforge.net>
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{__version}
|
|
|
|
%build
|
|
autoreconf -f -i
|
|
%configure\
|
|
--disable-static
|
|
make %{?jobs:-j%jobs} documentationdir=%{_docdir}/%{name}
|
|
|
|
%install
|
|
%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
|
|
cd ..
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libftgl2 -p /sbin/ldconfig
|
|
|
|
%postun -n libftgl2 -p /sbin/ldconfig
|
|
|
|
%files -n libftgl2
|
|
%defattr (-, root, root)
|
|
%doc %dir %{_defaultdocdir}/libftgl2
|
|
%doc %{_defaultdocdir}/libftgl2/[ABCNRT]*
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr (-, root, root)
|
|
%doc %dir %{_defaultdocdir}/%{name}
|
|
%doc %{_defaultdocdir}/%{name}/html
|
|
%doc %{_defaultdocdir}/%{name}/*.txt
|
|
%{_includedir}/FTGL
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.*a
|
|
%{_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
|
|
|
|
%changelog
|
|
* Wed Jul 23 2008 coolo@suse.de
|
|
- adding splitprovides to the library package for update
|
|
* Mon Jul 21 2008 sbrabec@suse.cz
|
|
- Added conflict for FTGLDemo moved from -devel to -demo package.
|
|
* Tue Jul 15 2008 sbrabec@suse.cz
|
|
- Updated to version 2.1.3-rc5:
|
|
* Stable API. Public headers are now frozen.
|
|
* Fixed several memory corruption and crash bugs
|
|
* Fixed several memory leaks
|
|
* Kerning and glyph performance enhancements
|
|
* The library now also exports a pure C interface
|
|
* Inset/outset contour support for fonts
|
|
* Fix the FTLayout rendering
|
|
* Added new FTLayout and FTSimpleLayout support for layout
|
|
managers
|
|
* Fixed the paths in the XCode project
|
|
* Changed the behaviour of some objects so that if there is an
|
|
error their state isn't changed
|
|
* New, fast FTBufferFont texture fonts
|
|
* UTF-8 support
|
|
* Thu Sep 13 2007 sbrabec@suse.cz
|
|
- Fixed pkg-config file to include correct freetype (#283824).
|
|
* Mon Jan 22 2007 ssommer@suse.de
|
|
- fixed same variable used twice build error
|
|
* Wed Sep 13 2006 sbrabec@suse.cz
|
|
- Split devel subpackage.
|
|
* Fri Sep 08 2006 sbrabec@suse.cz
|
|
- Build shared library (#197446).
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Tue Nov 08 2005 dmueller@suse.de
|
|
- don't build as root
|
|
* Mon Nov 07 2005 ro@suse.de
|
|
- remove extra qualification to fix build with gcc-4.1
|
|
* Thu Jan 06 2005 sbrabec@suse.cz
|
|
- Updated to version 2.1.2.
|
|
* Thu Sep 02 2004 sbrabec@suse.cz
|
|
- New SuSE package, version 2.0.11.
|