304 lines
8.5 KiB
RPMSpec
304 lines
8.5 KiB
RPMSpec
#
|
||
# spec file for package ftgl
|
||
#
|
||
# 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: ftgl
|
||
BuildRequires: doxygen
|
||
BuildRequires: freeglut-devel
|
||
BuildRequires: freetype2-devel
|
||
BuildRequires: gcc-c++
|
||
BuildRequires: libdrm-devel
|
||
BuildRequires: libtool
|
||
BuildRequires: pkgconfig(glu)
|
||
Version: 2.1.2.99.5
|
||
Release: 0
|
||
%define _version 2.1.3-rc5
|
||
%define __version 2.1.3~rc5
|
||
Url: http://ftgl.wiki.sourceforge.net/
|
||
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
||
License: LGPL-2.1+
|
||
Group: System/Libraries
|
||
Source: %{name}-%{_version}.tar.bz2
|
||
Patch: %{name}-autoreconf.patch
|
||
Patch1: ftgl-pkgconfig.patch
|
||
Patch2: ftgl-fix-no-add-needed.patch
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
%define debug_package_requires libftgl2 = %{version}-%{release}
|
||
|
||
%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<EFBFBD>rard Lanois
|
||
Matthias Kretz
|
||
Andrew Ellerton
|
||
Max Rheiner
|
||
S<EFBFBD>bastien Barr<EFBFBD>
|
||
Marcelo E. Magallon <mmagallo@debian.org>
|
||
Robert Bell
|
||
Sam Hocevar <sam@zoy.org>
|
||
<EFBFBD>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
|
||
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
||
Group: System/Libraries
|
||
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<EFBFBD>rard Lanois
|
||
Matthias Kretz
|
||
Andrew Ellerton
|
||
Max Rheiner
|
||
S<EFBFBD>bastien Barr<EFBFBD>
|
||
Marcelo E. Magallon <mmagallo@debian.org>
|
||
Robert Bell
|
||
Sam Hocevar <sam@zoy.org>
|
||
<EFBFBD>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
|
||
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
||
Group: Development/Libraries/C and C++
|
||
Requires: Mesa-devel
|
||
Requires: freetype2-devel
|
||
Requires: libftgl2 = %{version}
|
||
Requires: pkgconfig(glu)
|
||
|
||
%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<EFBFBD>rard Lanois
|
||
Matthias Kretz
|
||
Andrew Ellerton
|
||
Max Rheiner
|
||
S<EFBFBD>bastien Barr<EFBFBD>
|
||
Marcelo E. Magallon <mmagallo@debian.org>
|
||
Robert Bell
|
||
Sam Hocevar <sam@zoy.org>
|
||
<EFBFBD>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
|
||
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
||
Group: System/Libraries
|
||
# 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<EFBFBD>rard Lanois
|
||
Matthias Kretz
|
||
Andrew Ellerton
|
||
Max Rheiner
|
||
S<EFBFBD>bastien Barr<EFBFBD>
|
||
Marcelo E. Magallon <mmagallo@debian.org>
|
||
Robert Bell
|
||
Sam Hocevar <sam@zoy.org>
|
||
<EFBFBD>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}
|
||
%patch
|
||
%patch1
|
||
%patch2
|
||
|
||
%build
|
||
autoreconf -f -i -v
|
||
%configure --with-pic \
|
||
--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 ..
|
||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||
grep -r include %{buildroot}%{_includedir} | awk -F: '{print $2}'
|
||
|
||
%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}/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
|