freetype2-vl.spec 14 KB

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