freetype2-vl.spec 16 KB

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