ftgl-vl.spec 4.2 KB

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