ftgl-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Summary: A font rendering library for OpenGL
  2. Summary(ja): OpenGL 用のフォントレンダリングライブラリ
  3. Name: ftgl
  4. Version: 2.1.3
  5. Release: 3.rc5%{?_dist_release}
  6. License: LGPL
  7. Group: System Environment/Libraries
  8. URL: http://ftgl.wiki.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/ftgl/ftgl-%{version}-rc5.tar.bz2
  10. Patch0: ftgl-2.1.3-rc5-ttf_font.patch
  11. Patch1: ftgl-2.1.3-rc5-ldflags.patch
  12. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  13. BuildRequires: freetype2-devel, mesa-libGL-devel, freeglut-devel
  14. BuildRequires: libXi-devel, libXmu-devel, cppunit-devel
  15. BuildRequires: pkgconfig
  16. BuildRequires: doxygen
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: daisuke
  20. %description
  21. FTGL is a free, open source library to enable developers to use arbitrary
  22. fonts in their OpenGL applications. Unlike other OpenGL font libraries
  23. FTGL uses standard font file formats so doesn't need a preprocessing step
  24. to convert the high quality font data into a lesser quality, proprietary
  25. format. FTGL uses the Freetype font library to open and 'decode' the fonts.
  26. It then takes that output and stores it in a format most efficient for
  27. OpenGL rendering.
  28. Rendering modes supported are:
  29. * Bit maps
  30. * Anti aliased pix maps
  31. * Texture maps
  32. * Outlines
  33. * Polygon meshes
  34. * Extruded polygon meshes
  35. #'
  36. %package devel
  37. Summary: Development files for FTGL
  38. Summary(ja): FTGL の開発用ファイル
  39. Group: Development/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. Requires: freetype2-devel, mesa-libGL-devel
  42. Requires: pkgconfig
  43. %description devel
  44. FTGL is a free, open source library to enable developers to use arbitrary
  45. fonts in their OpenGL applications. Unlike other OpenGL font libraries
  46. FTGL uses standard font file formats so doesn't need a preprocessing step
  47. to convert the high quality font data into a lesser quality, proprietary
  48. format. FTGL uses the Freetype font library to open and 'decode' the fonts.
  49. It then takes that output and stores it in a format most efficient for
  50. OpenGL rendering.
  51. This package contains the libraries and header files necessary to develop
  52. applications with FTGL.
  53. #'
  54. %prep
  55. %setup -q -n ftgl-2.1.3~rc5
  56. %patch0 -p1 -b .destdir
  57. %patch1 -p1 -b .ldflags
  58. %build
  59. %configure \
  60. --enable-shared \
  61. --disable-static \
  62. --with-gl-inc=%{_includedir} \
  63. --with-gl-lib=%{_libdir} \
  64. --with-glut-inc=%{_includedir} \
  65. --with-glut-lib=%{_libdir} \
  66. --with-x
  67. %__make all %{?_smp_mflags}
  68. %install
  69. %__rm -rf %{buildroot}
  70. make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
  71. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  72. # Doc fixes
  73. mkdir -p __doc/html
  74. install -pm 0644 $RPM_BUILD_ROOT%{_datadir}/doc/ftgl/html/* __doc/html
  75. rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
  76. %post
  77. /sbin/ldconfig
  78. %postun
  79. /sbin/ldconfig
  80. %clean
  81. %__rm -rf %{buildroot}
  82. %files
  83. %defattr(-,root,root)
  84. %doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO
  85. %{_libdir}/lib*.so.*
  86. %files devel
  87. %defattr(-,root,root)
  88. %doc __doc/*
  89. %{_includedir}/FTGL
  90. %{_libdir}/lib*.so
  91. %{_libdir}/pkgconfig/*.pc
  92. %changelog
  93. * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> 2.1.3-3.rc5
  94. - rebuild with gcc-5.4.0
  95. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 2.1.3-2.rc5
  96. - rebuilt with rpm-4.8.1 for pkg-config
  97. * Mon May 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.3-1.rc5
  98. - update to 2.1.3-rc5
  99. - add BR: libXi-devel, libXmu-devel, cppunit-devel
  100. * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.2-1vl5
  101. - applied new versioning policy, spec in utf-8
  102. - excluded lib*.la
  103. * Thu Feb 08 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.1.2-0vl1
  104. - initial build for Vine Linux
  105. * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 2.1.2-1mdv2007.0
  106. + Revision: 113842
  107. - Import ftgl
  108. * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 2.1.2-1mdv2007.1
  109. - fix build
  110. - new version
  111. * Wed Aug 23 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 2.0.11-5mdv2007.0
  112. - fix correct usage of %%mklibname
  113. * Tue Aug 22 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 2.0.11-4mdv2007.0
  114. - rebuild for new xorg
  115. - %%mkrel
  116. * Sun Jan 08 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 2.0.11-3mdk
  117. - Rebuild
  118. * Sun Nov 21 2004 Abel Cheung <deaddog@mandrake.org> 2.0.11-2mdk
  119. - Fix build (thx Stefan's bot)
  120. * Thu Nov 04 2004 Abel Cheung <deaddog@mandrake.org> 2.0.11-1mdk
  121. - First Mandrake package
  122. - Patch0: Patch .pc file to use freetype2.pc