SHA256
1
0
forked from pool/ftgl
ftgl/ftgl.spec

165 lines
4.5 KiB
RPMSpec

#
# spec file for package ftgl (Version 2.1.2)
#
# Copyright (c) 2007 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: 89
URL: http://homepages.paradise.net.nz/henryj/code/index.html#FTGL
Group: System/Libraries
License: LGPL v2 or later
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
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
%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
- 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>
%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 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>
%prep
%setup -n FTGL
%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
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
* 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.