OBS User unknown 2008-07-15 19:10:22 +00:00 committed by Git OBS Bridge
parent 586174f203
commit e2dadc10e7
8 changed files with 246 additions and 116 deletions

View File

@ -1,11 +0,0 @@
--- include/FTTextureGlyph.h
+++ include/FTTextureGlyph.h
@@ -52,7 +52,7 @@
* Reset the currently active texture to zero to get into a known state before
* drawing a string. This is to get round possible threading issues.
*/
- static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
+ static void ResetActiveTexture(){ activeTextureID = 0;}
private:
/**

View File

@ -1,12 +0,0 @@
diff -Naur FTGL.org/demo/FTGLDemo.cpp FTGL/demo/FTGLDemo.cpp
--- FTGL.org/demo/FTGLDemo.cpp 2007-01-22 15:22:39.592135000 +0100
+++ FTGL/demo/FTGLDemo.cpp 2007-01-22 15:23:36.128546000 +0100
@@ -406,7 +406,7 @@
{
myString[carat] = key;
myString[carat + 1] = 0;
- carat = carat > 14 ? 14 : ++carat;
+ carat = carat > 14 ? 14 : carat + 1;
}
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7b02b756202ca851c86e6cc15aac65ec6f5fd3c2bc90c616f2785fac4e005c6
size 483534

3
ftgl-2.1.3-rc5.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:521ff7bd62c459ff5372e269c223e2a6107a6a99a36afdc2ae634a973af70c59
size 707854

View File

@ -1,8 +0,0 @@
--- unix/ftgl.pc.in
+++ unix/ftgl.pc.in
@@ -8,4 +8,4 @@
Version: @PACKAGE_VERSION@
Requires:
Libs: @GL_LIBS@ @FT2_LIBS@ -L${libdir} -lftgl
-Cflags: -I${includedir} @GL_CFLAGS@ @FT2_CFLAGS@
+Cflags: @GL_CFLAGS@ @FT2_CFLAGS@ -I${includedir}

View File

@ -1,10 +0,0 @@
--- unix/configure.ac
+++ unix/configure.ac
@@ -4,7 +4,6 @@
FTGL_PROG_CXX
-AC_DISABLE_SHARED
AC_PROG_LIBTOOL
# Checks for typedefs, structures, and compiler characteristics.

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Jul 15 18:28:03 CEST 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 17:58:52 CEST 2007 - sbrabec@suse.cz Thu Sep 13 17:58:52 CEST 2007 - sbrabec@suse.cz

292
ftgl.spec
View File

@ -1,7 +1,7 @@
# #
# spec file for package ftgl (Version 2.1.2) # spec file for package ftgl (Version 2.1.2.99.5)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -10,55 +10,124 @@
# norootforbuild # norootforbuild
Name: ftgl Name: ftgl
BuildRequires: doxygen freeglut-devel freetype2-devel gcc-c++ libdrm-devel BuildRequires: doxygen freeglut-devel freetype2-devel gcc-c++ libdrm-devel
Version: 2.1.2 Version: 2.1.2.99.5
Release: 89 Release: 1
URL: http://homepages.paradise.net.nz/henryj/code/index.html#FTGL %define _version 2.1.3-rc5
%define __version 2.1.3~rc5
Url: http://ftgl.wiki.sourceforge.net/
Group: System/Libraries Group: System/Libraries
License: LGPL v2 or later License: LGPL v2.1 or later
Summary: Library for Using Arbitrary Fonts in OpenGL Applications Summary: Library for Using Arbitrary Fonts in OpenGL Applications
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{_version}.tar.bz2
Patch: %{name}-%{version}-qualification.patch
Patch1: %{name}-shared.patch
Patch2: ftgl-2.1.2-same-variable-used-twice.patch
Patch3: ftgl-freetype-include.patch
Autoreqprov: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
FTGL is a free open source library that enables developers to use FTGL is a free open source library that enables developers to use
arbitrary fonts in their OpenGL (www.opengl.org) applications. arbitrary fonts in their OpenGL (www.opengl.org) applications.
Unlike other OpenGL font libraries, FTGL uses standard font file Unlike other OpenGL font libraries, FTGL uses standard font file
formats, so there is no need of a preprocessing step to convert formats, so there is no need of a preprocessing step to convert the
the high quality font data into a lesser quality, proprietary high quality font data into a lesser quality, proprietary format.
format. FTGL uses the Freetype (www.freetype.org) font library to
open and 'decode' the fonts. It then takes that output and stores FTGL uses the Freetype (www.freetype.org) font library to open and
it in a format that is most efficient for OpenGL rendering. The 'decode' the fonts. It then takes that output and stores it in a format
supported rendering modes are: - Bit maps that is most efficient for OpenGL rendering.
The supported rendering modes are:
- Bit maps
- Antialiased Pix maps - Antialiased Pix maps
- Texture maps
- Outlines - Outlines
- Polygon meshes - Polygon meshes
- Extruded polygon meshes FTGL is designed to be used in commercial - Extruded polygon meshes
quality software. It has been written with a focus on performance,
robustness, and simplicity. - Texture maps
- Buffer maps
Authors: Authors:
-------- --------
Henry Maddocks <ftgl@opengl.geek.nz> 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 %package -n libftgl2
License: LGPL v2.1 or later
Group: System/Libraries Group: System/Libraries
Summary: Library for Using Arbitrary Fonts in OpenGL Applications Summary: Library for Using Arbitrary Fonts in OpenGL Applications
Requires: %{name} = %{version} Mesa-devel freetype2-devel
%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 %description devel
FTGL is a free open source library that enables developers to use FTGL is a free open source library that enables developers to use
@ -88,77 +157,160 @@ robustness, and simplicity.
Authors: Authors:
-------- --------
Henry Maddocks <ftgl@opengl.geek.nz> 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}
%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 %prep
%setup -n FTGL %setup -q -n %{name}-%{__version}
%patch
%patch1
%patch2 -p1
%patch3
chmod -x include/*
# Valid without doxygen:
#tar -z -x -f docs/html.tar.gz -C docs
#mv docs/* unix/docs/
chmod -x README.txt
%build %build
cd unix autoreconf -f -i
autoconf %configure\
%configure --disable-static
make %{?jobs:-j%jobs} make %{?jobs:-j%jobs} documentationdir=%{_docdir}/%{name}
%install %install
cd unix %makeinstall documentationdir=%{_docdir}/%{name}
%makeinstall\ mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/libftgl2
bindir=$RPM_BUILD_ROOT/usr/bin\ cp -pr AUTHORS BUGS COPYING ChangeLog NEWS README TODO $RPM_BUILD_ROOT%{_defaultdocdir}/libftgl2
libdir=$RPM_BUILD_ROOT/usr/%_lib\ mkdir -p $RPM_BUILD_ROOT%{_bindir}
datadir=$RPM_BUILD_ROOT/usr/share\ cd demo
includedir=$RPM_BUILD_ROOT/usr/include\ /bin/sh ../libtool --mode=install /usr/bin/install -c FTGLDemo $RPM_BUILD_ROOT%{_bindir}/FTGLDemo
PACKAGE_NAME=packages/%{name} /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 .. cd ..
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
cp -pr COPYING.txt HISTORY.txt README.txt license.txt $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post %post -n libftgl2 -p /sbin/ldconfig
%run_ldconfig
%postun %postun -n libftgl2 -p /sbin/ldconfig
%run_ldconfig
%files %files -n libftgl2
%defattr (-, root, root) %defattr (-, root, root)
%doc %dir %{_defaultdocdir}/%{name} %doc %dir %{_defaultdocdir}/libftgl2
%doc %{_defaultdocdir}/%{name}/*.txt %doc %{_defaultdocdir}/libftgl2/[ABCNRT]*
/usr/%_lib/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%defattr (-, root, root) %defattr (-, root, root)
%doc %dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/html %doc %{_defaultdocdir}/%{name}/html
/usr/bin/FTGLDemo %doc %{_defaultdocdir}/%{name}/*.txt
/usr/include/FTGL %{_includedir}/FTGL
/usr/%_lib/*.so %{_libdir}/*.so
/usr/%_lib/*.*a %{_libdir}/*.*a
/usr/%_lib/pkgconfig/*.pc %{_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 %changelog
* Thu Sep 13 2007 - sbrabec@suse.cz * 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). - Fixed pkg-config file to include correct freetype (#283824).
* Mon Jan 22 2007 - ssommer@suse.de * Mon Jan 22 2007 ssommer@suse.de
- fixed same variable used twice build error - fixed same variable used twice build error
* Wed Sep 13 2006 - sbrabec@suse.cz * Wed Sep 13 2006 sbrabec@suse.cz
- Split devel subpackage. - Split devel subpackage.
* Fri Sep 08 2006 - sbrabec@suse.cz * Fri Sep 08 2006 sbrabec@suse.cz
- Build shared library (#197446). - Build shared library (#197446).
* Wed Jan 25 2006 - mls@suse.de * Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires - converted neededforbuild to BuildRequires
* Tue Nov 08 2005 - dmueller@suse.de * Tue Nov 08 2005 dmueller@suse.de
- don't build as root - don't build as root
* Mon Nov 07 2005 - ro@suse.de * Mon Nov 07 2005 ro@suse.de
- remove extra qualification to fix build with gcc-4.1 - remove extra qualification to fix build with gcc-4.1
* Thu Jan 06 2005 - sbrabec@suse.cz * Thu Jan 06 2005 sbrabec@suse.cz
- Updated to version 2.1.2. - Updated to version 2.1.2.
* Thu Sep 02 2004 - sbrabec@suse.cz * Thu Sep 02 2004 sbrabec@suse.cz
- New SuSE package, version 2.0.11. - New SuSE package, version 2.0.11.