ftgl/ftgl.spec

163 lines
4.1 KiB
RPMSpec

#
# spec file for package ftgl (Version 2.1.2)
#
# Copyright (c) 2006 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
Release: 22
URL: http://homepages.paradise.net.nz/henryj/code/index.html#FTGL
Group: System/Libraries
License: LGPL
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}-qualification.patch
Patch1: %{name}-shared.patch
Autoreqprov: on
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
does not need 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.
Rendering modes supported 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 performance, robustness, and simplicity in mind.
Authors:
--------
Henry Maddocks <ftgl@opengl.geek.nz>
%package devel
Group: System/Libraries
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
Requires: %{name} = %{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
does not need 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.
Rendering modes supported 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 performance, robustness, and simplicity in mind.
Authors:
--------
Henry Maddocks <ftgl@opengl.geek.nz>
%prep
%setup -n FTGL
%patch
%patch1
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
cd unix
autoconf
%configure
make %{?jobs:-j%jobs}
%install
cd unix
%makeinstall\
bindir=$RPM_BUILD_ROOT/usr/bin\
libdir=$RPM_BUILD_ROOT/usr/%_lib\
datadir=$RPM_BUILD_ROOT/usr/share\
includedir=$RPM_BUILD_ROOT/usr/include\
PACKAGE_NAME=packages/%{name}
cd ..
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
cp -pr COPYING.txt HISTORY.txt README.txt license.txt $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr (-, root, root)
%doc %dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/*.txt
/usr/%_lib/*.so.*
%files devel
%defattr (-, root, root)
%doc %{_defaultdocdir}/%{name}/html
/usr/bin/FTGLDemo
/usr/include/FTGL
/usr/%_lib/*.so
/usr/%_lib/*.*a
/usr/%_lib/pkgconfig/*.pc
%changelog -n ftgl
* 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.