From 4afd9ca5a6b66e091d0ee70fb6195a9c26ae91df Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:18:32 +0100 Subject: [PATCH] fix build and make some specfile fixes [release 2.1.3.rc5-2mamba;Fri Apr 06 2012] --- README.md | 4 ++ libftgl.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 libftgl.spec diff --git a/README.md b/README.md index c3b14a9..cb9e3b1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # libftgl +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. + diff --git a/libftgl.spec b/libftgl.spec new file mode 100644 index 0000000..938af22 --- /dev/null +++ b/libftgl.spec @@ -0,0 +1,107 @@ +%define realversion 2.1.3-rc5 +%define dotversion %(echo %{realversion} | sed 's/-/./g') +Name: libftgl +Version: 2.1.3.rc5 +Release: 2mamba +Summary: OpenGL frontend to Freetype 2 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://ftgl.wiki.sourceforge.net/ +Source: http://downloads.sourceforge.net/ftgl/ftgl-%{realversion}.tar.gz +License: LGPL, BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libGL-devel +BuildRequires: libGLU-devel +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +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. + +This package contains libraries and header files need for development. + +%package static +Group: Development/Libraries +Summary: Static libraries for %{name} +Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} + +%description static +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. + +Static %{name} library. + +%prep +%setup -q -n ftgl-2.1.3~rc5 +sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac + +%build +chmod +x autogen.sh +./autogen.sh +%configure \ + --disable-freetypetest \ + --enable-shared +%make ECHO=echo + + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall ECHO=echo + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/FTGL +%{_includedir}/FTGL/*.h +%{_libdir}/*.so +%dir %{_docdir}/ftgl +%doc %{_docdir}/ftgl/projects_using_ftgl.txt +%dir %{_docdir}/ftgl/html +%doc %{_docdir}/ftgl/html/*.html +%doc %{_docdir}/ftgl/html/*.png +%doc %{_docdir}/ftgl/html/doxygen.css +%doc %{_docdir}/ftgl/ftgl.pdf +%{_libdir}/pkgconfig/*.pc +%doc BUGS ChangeLog NEWS README TODO + +%files static +%defattr(-,root,root) +%{_libdir}/*.a +%{_libdir}/*.la + +%changelog +* Fri Apr 06 2012 Silvan Calarco 2.1.3.rc5-2mamba +- fix build and make some specfile fixes + +* Tue Sep 02 2008 gil 2.1.3-rc5-1mamba +- package created by autospec