%define version 2.1.2 %define release %mkrel 3 %define major 0 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d Summary: OpenGL Interface of Freetype2 Name: ftgl Version: %{version} Release: %{release} License: LGPL Group: System/Fonts/True type URL: http://homepages.paradise.net.nz/henryj/code/index.html#FTGL Source: http://opengl.geek.nz/ftgl/%{name}-%{version}.tar.bz2 Patch0: %{name}-2.0.11-pkgconfig.patch Patch1: ftgl-2.1.2-gcc4.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: freetype2-devel BuildRequires: MesaGLU-devel BuildRequires: doxygen %description FTGL is a free, open source library to enable developers to use arbitrary fonts in their OpenGL (www.opengl.org) applications. Unlike other OpenGL font libraries FTGL uses standard font file formats so doesn't 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 most efficient for OpenGL rendering. Rendering modes supported are: * Bit maps * Anti aliased pix maps * Texture maps * Outlines * Polygon meshes * Extruded polygon meshes %package -n %{libname} Summary: OpenGL Interface of Freetype2 Group: System/Libraries Provides: %{name} = %{version}-%{release} Provides: %{libname} = %{version}-%{release} %description -n %{libname} FTGL is a free, open source library to enable developers to use arbitrary fonts in their OpenGL (www.opengl.org) applications. Unlike other OpenGL font libraries FTGL uses standard font file formats so doesn't 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 most efficient for OpenGL rendering. Rendering modes supported are: * Bit maps * Anti aliased pix maps * Texture maps * Outlines * Polygon meshes * Extruded polygon meshes %package -n %{develname} Summary: Development related files of FTGL Group: Development/C Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Obsoletes: %{_lib}%{name}0-devel %description -n %{develname} This package contains headers and static libraries of FTGL. You need to install it if you want to develop or compile any programs that make use of OpenGL interface of freetype library. %prep %setup -q -n FTGL %patch0 -p1 -b .pkgconfig %patch1 -p1 -b .gcc find -type f -name '*.txt' -print0 | xargs -0 -r chmod 0644 cd unix libtoolize --force aclocal autoconf %build cd unix %configure2_5x --enable-shared %make %install rm -rf %{buildroot} cd unix %makeinstall # include doc ourselves, don't let software do it rm -rf %{buildroot}%{_docdir} # remove files not bundled rm -f %{buildroot}%{_bindir}/FTGLDemo rmdir %{buildroot}%{_bindir} || true %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc *.txt %{_libdir}/libftgl.so.%{major}* %files -n %{develname} %defattr(-,root,root) %doc unix/docs/html unix/README.txt %{_includedir}/* %{_libdir}/lib*.so %{_libdir}/lib*.a %{_libdir}/lib*.la %{_libdir}/pkgconfig/*.pc %changelog * Sun Sep 07 2008 Emmanuel Andry <eandry@mandriva.org> 2.1.2-3mdv2009.0 + Revision: 282375 - apply devel policy * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.1.2-2mdv2009.0 + Revision: 221006 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Dec 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 2.1.2-1mdv2008.1 + Revision: 125324 - kill re-definition of %%buildroot on Pixel's request * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 2.1.2-1mdv2007.0 + Revision: 113842 - Import ftgl * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 2.1.2-1mdv2007.1 - fix build - new version * Thu Aug 24 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 2.0.11-5mdv2007.0 - fix correct usage of %%mklibname * Wed Aug 23 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 2.0.11-4mdv2007.0 - rebuild for new xorg - %%mkrel * Sun Jan 08 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 2.0.11-3mdk - Rebuild * Sun Nov 21 2004 Abel Cheung <deaddog@mandrake.org> 2.0.11-2mdk - Fix build (thx Stefan's bot) * Thu Nov 04 2004 Abel Cheung <deaddog@mandrake.org> 2.0.11-1mdk - First Mandrake package - Patch0: Patch .pc file to use freetype2.pc