freetype2-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. %define enable_bytecode_interpreter 0
  2. %define enable_subpixel_rendering 0
  3. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  4. Summary: FreeType 2 library
  5. Summary(ja): FreeType 2 ライブラリ
  6. Name: freetype2
  7. Version: 2.3.12
  8. Release: 1%{?_dist_release}
  9. License: GPL/FTL dual license
  10. URL: http://www.freetype.org/
  11. Group: System Environment/Libraries
  12. Source: freetype-%{version}.tar.bz2
  13. Source1: freetype-doc-%{version}.tar.bz2
  14. Source2: ft2demos-%{version}.tar.bz2
  15. # enable bytecode interpreter
  16. Patch20: freetype-2.1.10-enable-bci.patch
  17. # enable subpixel rendering
  18. Patch21: freetype-2.3.0-enable-spr.patch
  19. # Enable otvalid and gxvalid modules
  20. Patch46: freetype-2.2.1-enable-valid.patch
  21. # Fix multilib conflicts
  22. Patch88: freetype-multilib.patch
  23. # Fix crash https://bugs.freedesktop.org/show_bug.cgi?id=6841
  24. Patch89: freetype-2.2.1-memcpy-fix.patch
  25. Patch200: freetype-2.1.10-slight-embolden.patch
  26. Patch201: freetype-2.3.11-x86_64-invalid_outline.patch
  27. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  28. BuildRequires: zlib-devel
  29. BuildRequires: libX11-devel
  30. Requires: zlib
  31. %description
  32. The FreeType project is a team of volunteers who develop free,
  33. portable and high-quality software solutions for digital typography.
  34. They specifically target embedded systems and focus on bringing small,
  35. efficient and ubiquitous products.
  36. The FreeType 2 library is their new software font engine. It has been
  37. designed to provide the following important features:
  38. * A universal and simple API to manage font files
  39. * Support for several font formats through loadable modules
  40. * High-quality anti-aliasing
  41. * High portability & performance
  42. Supported font formats include:
  43. * TrueType files (.ttf) and collections (.ttc)
  44. * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
  45. * Type 1 Multiple Master fonts. The FreeType 2 API also provides
  46. routines to manage design instances easily
  47. * Type 1 CID-keyed fonts
  48. * OpenType/CFF (.otf) fonts
  49. * CFF/Type 2 fonts
  50. * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
  51. the Adobe SVG viewer plugin.
  52. * Windows FNT/FON bitmap fonts
  53. This package contains the files needed to run programs that use the
  54. FreeType 2 library.
  55. %package demos
  56. Summary: A collection of FreeType demos
  57. Group: System Environment/Libraries
  58. Requires: %{name} = %{version}-%{release}
  59. Obsoletes: freetype-utils < 2.0
  60. Provides: freetype-utils = %{version}
  61. %description demos
  62. A collection of FreeType demos.
  63. %package -n compat32-%{name}
  64. Summary: FreeType 2 library
  65. Summary(ja): FreeType 2 ライブラリ
  66. Group: System Environment/Libraries
  67. Requires: %{name} = %{version}-%{release}
  68. %description -n compat32-%{name}
  69. The FreeType project is a team of volunteers who develop free,
  70. portable and high-quality software solutions for digital typography.
  71. They specifically target embedded systems and focus on bringing small,
  72. efficient and ubiquitous products.
  73. The FreeType 2 library is their new software font engine. It has been
  74. designed to provide the following important features:
  75. * A universal and simple API to manage font files
  76. * Support for several font formats through loadable modules
  77. * High-quality anti-aliasing
  78. * High portability & performance
  79. Supported font formats include:
  80. * TrueType files (.ttf) and collections (.ttc)
  81. * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
  82. * Type 1 Multiple Master fonts. The FreeType 2 API also provides
  83. routines to manage design instances easily
  84. * Type 1 CID-keyed fonts
  85. * OpenType/CFF (.otf) fonts
  86. * CFF/Type 2 fonts
  87. * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
  88. the Adobe SVG viewer plugin.
  89. * Windows FNT/FON bitmap fonts
  90. This package contains the files needed to run programs that use the
  91. FreeType 2 library.
  92. %package devel
  93. Summary: Development files for FreeType 2 library
  94. Summary(ja): FreeType 2 ライブラリの開発ファイル
  95. Group: Development/Libraries
  96. Requires: %{name} = %{version}-%{release}
  97. Requires: zlib-devel
  98. %description devel
  99. The FreeType project is a team of volunteers who develop free,
  100. portable and high-quality software solutions for digital typography.
  101. They specifically target embedded systems and focus on bringing small,
  102. efficient and ubiquitous products.
  103. The FreeType 2 library is their new software font engine. It has been
  104. designed to provide the following important features:
  105. * A universal and simple API to manage font files
  106. * Support for several font formats through loadable modules
  107. * High-quality anti-aliasing
  108. * High portability & performance
  109. Supported font formats include:
  110. * TrueType files (.ttf) and collections (.ttc)
  111. * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
  112. * Type 1 Multiple Master fonts. The FreeType 2 API also provides
  113. routines to manage design instances easily
  114. * Type 1 CID-keyed fonts
  115. * OpenType/CFF (.otf) fonts
  116. * CFF/Type 2 fonts
  117. * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
  118. the Adobe SVG viewer plugin.
  119. * Windows FNT/FON bitmap fonts
  120. This package contains all supplementary files (static library, headers
  121. and documentation) you need to develop your own programs using the
  122. FreeType 2 library.
  123. %package -n compat32-%{name}-devel
  124. Summary: FreeType 2 library
  125. Summary(ja): FreeType 2 ライブラリ
  126. Group: Development/Libraries
  127. Requires: compat32-%{name} = %{version}-%{release}
  128. Requires: %{name}-devel = %{version}-%{release}
  129. Requires: compat32-zlib-devel
  130. %description -n compat32-%{name}-devel
  131. The FreeType project is a team of volunteers who develop free,
  132. portable and high-quality software solutions for digital typography.
  133. They specifically target embedded systems and focus on bringing small,
  134. efficient and ubiquitous products.
  135. The FreeType 2 library is their new software font engine. It has been
  136. designed to provide the following important features:
  137. * A universal and simple API to manage font files
  138. * Support for several font formats through loadable modules
  139. * High-quality anti-aliasing
  140. * High portability & performance
  141. Supported font formats include:
  142. * TrueType files (.ttf) and collections (.ttc)
  143. * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
  144. * Type 1 Multiple Master fonts. The FreeType 2 API also provides
  145. routines to manage design instances easily
  146. * Type 1 CID-keyed fonts
  147. * OpenType/CFF (.otf) fonts
  148. * CFF/Type 2 fonts
  149. * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
  150. the Adobe SVG viewer plugin.
  151. * Windows FNT/FON bitmap fonts
  152. This package contains all supplementary files (static library, headers
  153. and documentation) you need to develop your own programs using the
  154. FreeType 2 library.
  155. %package static
  156. Summary: Static ilbrary for FreeType 2
  157. Summary(ja): FreeType 2 のスタティックライブラリ
  158. Group: Development/Libraries
  159. Requires: %{name}-devel = %{version}-%{release}
  160. %description static
  161. This package contains the static library for %{name}
  162. %prep
  163. %setup -q -n freetype-%{version} -b 1 -a 2
  164. %if %{enable_bytecode_interpreter}
  165. %patch20 -p1 -b .enable-bci
  166. %endif
  167. %if %{enable_subpixel_rendering}
  168. %patch21 -p1 -b .enable-spr
  169. %endif
  170. %patch46 -p1 -b .enable-valid
  171. %patch88 -p1 -b .multilib
  172. %patch89 -p1 -b .memcpy
  173. %patch200 -p1 -b .slight-embolden
  174. %ifarch x86_64
  175. %patch201 -p1 -b .invalid_outline
  176. %endif
  177. %build
  178. %configure
  179. %__make %{?_smp_mflags}
  180. # Build demos
  181. pushd ft2demos-%{version}
  182. make TOP_DIR=".."
  183. popd
  184. %install
  185. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  186. %makeinstall gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
  187. for ftdemo in ftbench ftdump ftlint ftvalid ftdiff ftgamma ftgrid ftmulti ftstring ftview
  188. do
  189. builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
  190. done
  191. ## remove unuse files
  192. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  193. %clean
  194. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  195. %post -p /sbin/ldconfig
  196. %postun -p /sbin/ldconfig
  197. %post -n compat32-%{name} -p /sbin/ldconfig
  198. %postun -n compat32-%{name} -p /sbin/ldconfig
  199. %files
  200. %defattr(-, root, root)
  201. %{_libdir}/*.so*
  202. %doc docs
  203. %files devel
  204. %defattr(-, root, root)
  205. %{_bindir}/freetype-config
  206. %{_libdir}/*.so
  207. %{_libdir}/pkgconfig/*.pc
  208. %{_includedir}/*
  209. %{_datadir}/aclocal/freetype2.m4
  210. %files static
  211. %defattr(-, root, root)
  212. %{_libdir}/*.a
  213. %files demos
  214. %defattr(-,root,root)
  215. %{_bindir}/ftbench
  216. %{_bindir}/ftdump
  217. %{_bindir}/ftlint
  218. %{_bindir}/ftvalid
  219. %{_bindir}/ftdiff
  220. %{_bindir}/ftgamma
  221. %{_bindir}/ftgrid
  222. %{_bindir}/ftmulti
  223. %{_bindir}/ftstring
  224. %{_bindir}/ftview
  225. %if %{build_compat32}
  226. %files -n compat32-%{name}
  227. %defattr(-, root, root)
  228. %{_libdir}/*.so*
  229. %files -n compat32-%{name}-devel
  230. %defattr(-, root, root)
  231. %{_libdir}/*.so
  232. %{_libdir}/pkgconfig/*.pc
  233. %endif
  234. %changelog
  235. * Tue Feb 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-1
  236. - new upstream release
  237. * Tue Oct 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.11-1
  238. - new upstream release
  239. - update patch201
  240. * Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-6
  241. - rebuild with gpg signing
  242. * Wed Jul 29 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.9-5
  243. - fixed "Invalid Outline" error on x86_64.
  244. * Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.9-4
  245. - removed %%if !%%{build_compat32} case condition
  246. - removed CC='gcc -m32' before make setup
  247. * Sun Apr 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-3
  248. - enable Patch200 again
  249. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-2
  250. - split static library to freetype2-static
  251. - needed by tuxonice-userui
  252. - disable Patch200
  253. * Sat Mar 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-1
  254. - new upstream release
  255. * Wed Jan 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.8-1
  256. - new upstream release
  257. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.3.7-2
  258. - removed *.la
  259. * Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.7-1
  260. - new upstream release
  261. * Wed Jun 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.6-1
  262. - new upstream release
  263. * Sun May 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-3
  264. - add Provides: freetype-utils = %%{version} to freetype2-demos
  265. * Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-2
  266. - remove %%{_bindir}/* from -devel
  267. * Fri Mar 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-1
  268. - new upstream release
  269. - add freetype2-demos
  270. - Obsoletes: freetype-utils
  271. * Wed May 23 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.3.4-0vl2
  272. - add Patch201 (CVE-2007-2754)
  273. * Sun May 20 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.4-0vl1
  274. - new upstream release
  275. * Thu Aug 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.1.10-0vl8
  276. - add Requires: zlib-devel (devel package)
  277. - compat32
  278. - add BuildRequires: compat32-zlib-devel
  279. - add Requires: compat32-zlib-devel (devel package)
  280. * Thu Jul 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl7
  281. - add Patch200 to adjust synthetic-embold font weight.
  282. - default value is too heavy...
  283. * Sat Jun 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl6
  284. - add Patch100 for autofit-cjk
  285. * Fri Feb 24 2006 Shu KONNO <owa@bg.wakwak.com> 2.1.10-0vl5
  286. - added --libdir=%%{_libdir} to make setup
  287. - added CC='gcc -m32' before make setup if compat32
  288. * Sun Feb 12 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 2.1.10-0vl4
  289. - added compat32-* packages for x86_64 architecture support
  290. * Thu Oct 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl3
  291. - add upstream patches (from MDK)
  292. - add Patch13 to fix memleak
  293. - add Patch14 to put back internal API, used by XOrg
  294. - add Patch15 to fix bad anti-aliasing
  295. * Sat Oct 01 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl2
  296. - add upstream patches (from MDK)
  297. - add Patch10 to add fixes from CVS
  298. - add Patch11 to fix autofit render setup
  299. - add Patch12 to fix kerning
  300. - add Patch20 (enable bytecode interpreter), but not applied by default
  301. * Tue Sep 6 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.10-0vl1
  302. - new upstream release
  303. - drop Patch1 (auto-hinter has been replaced with a new module)
  304. - drop Patch2 (included in freetype-2.1.8)
  305. - add pkgconfig file
  306. * Fri Apr 16 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl4
  307. - add xtt2-1.2a related patch which is merged in CVS.
  308. (http://x-tt.sourceforge.jp/index_nippon.html)
  309. * Thu Apr 01 2004 Tomoya TAKA <taka@vinelinux.org> 2.1.7-0vl3
  310. - add a fix from Fedora freetype-2.1.7-3
  311. * Wed Mar 10 2004 Mike A. Harris <mharris@redhat.com> 2.1.7-3
  312. - Added -fno-strict-aliasing to CFLAGS and CXXFLAGS to try to fix SEGV and
  313. SIGILL crashes in mkfontscale which have been traced into freetype and seem
  314. to be caused by aliasing issues in freetype macros
  315. * Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.1.7-0vl2
  316. - update patch1
  317. * Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl1
  318. - new upstream release
  319. * Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl2
  320. - rebuild for VineSeed
  321. * Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl1
  322. - source upgrade
  323. - add Patch1 from http://www.kde.gr.jp/~akito/
  324. - remove Source1
  325. - remove Patch0 (no need to 2.1.5)
  326. * Wed Aug 06 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl2
  327. - correct License tag from GPL to GPL/FTL dual license
  328. - FTL: The FreeType Project License
  329. * Wed Apr 9 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.4-0vl1
  330. - source upgrade
  331. * Sat Dec 7 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.3-0vl1
  332. - source and patch upgrade
  333. * Thu Dec 5 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl3
  334. - rebuild with new toolchain
  335. * Wed Aug 21 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl2
  336. - add Patch0 to fix problem to Dyna-Font
  337. * Mon Jul 23 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl1
  338. - source upgrade
  339. - add %{_datadir}/aclocal/freetype2.m4 to -devel
  340. * Mon Jan 28 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.6-0vl2
  341. - modified %%build section
  342. * Wed Jan 16 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.0.6-0vl1
  343. - source update
  344. - add ftdocs
  345. * Fri Nov 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.1-0vl5
  346. - small build fix
  347. * Wed May 9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl4
  348. - Added Requires for -devel
  349. - Fixed config path
  350. * Mon Apr 23 2001 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.1-0vl3
  351. - add %{_bindir} in devel package's %file section.
  352. * Tue Jan 9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl2
  353. - Added %defattr.
  354. * Sun Dec 17 2000 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl1
  355. - Initial revision.