gd20-vl.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A graphics library for drawing .png files.
  3. Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ
  4. Name: gd20
  5. Version: 2.0.35
  6. Release: 10%{_dist_release}
  7. Source0: http://www.libgd.org/releases/gd-%{version}.tar.bz2
  8. Patch0: gd-2.0.33-freetype.patch
  9. Patch3: gd-2.0.34-multilib.patch
  10. Patch4: gd-loop.patch
  11. Patch5: gd-2.0.34-sparc64.patch
  12. Patch6: gd-2.0.35-overflow.patch
  13. Patch7: gd-2.0.35-AALineThick.patch
  14. Patch8: gd-2.0.33-BoxBound.patch
  15. Patch9: gd-2.0.34-fonts-vine.patch
  16. Patch10: gd-2.0.35-time.patch
  17. Patch11: gd-2.0.35-security3.patch
  18. Patch12: gd-2.0.35-runtests.patch
  19. License: BSD-style
  20. URL: http://www.libgd.org/
  21. Group: System Environment/Libraries
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: libjpeg-devel zlib-devel freetype2-devel
  24. BuildRequires: libpng-devel >= 2:1.2.5
  25. BuildRequires: libX11-devel libXpm-devel
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: daisuke
  29. %description
  30. Gd is a graphics library for drawing .png files. Gd allows your code to
  31. quickly draw images (lines, arcs, text, multiple colors, cutting and
  32. pasting from other images, flood fills) and write out the result as a
  33. .png file. Gd is particularly useful in web applications, where .pngs
  34. are commonly used as inline images. Note, however, that gd is not a
  35. paint program.
  36. Install gd if you are developing applications which need to draw .png
  37. files. If you install gd, you'll also need to install the gd-devel
  38. package.
  39. %description -l ja
  40. GdはPNGファイルを描写するためのグラフックライブラリです。 Gdを使って、
  41. 画像(線や弧, テキスト, カラー, 他の画像からのカット&ペースト等々)を
  42. 簡単に描写して、PNGファイルへ結果を出力することができます。
  43. Gdは特に、一般にPNG画像を埋め込む必要のあるウェブアプリケーションで
  44. 便利です。ただし、注意して欲しいのは, Gdはペイントツールではありませ
  45. ん。
  46. PNGファイルを描写する必要のあるアプリケーションを開発する場合、
  47. Gdをインストールしてください。gdをインストールした場合、gd-devel
  48. パッケージも必要になります。
  49. %package progs
  50. Summary: Utility programs that use libgd.
  51. Summary(ja): libgd を用いたユーティリティプログラム
  52. Group: Applications/Graphics
  53. Requires: gd20 = %{version}, perl
  54. %description progs
  55. These are utility programs supplied with gd, the .png graphics library.
  56. If you install these, you must install gd.
  57. %description progs -l ja
  58. これは PNG グラフィックライブラリ gd によって提供されるユーティリティ
  59. プログラムです。これをインストールするには, gdをインストールする必要
  60. があります。
  61. %package devel
  62. Requires: gd20 = %{version}
  63. Summary: The development libraries and header files for gd.
  64. Summary(ja): gd用の開発ライブラリとヘッダファイル
  65. Group: Development/Libraries
  66. %description devel
  67. These are the development libraries and header files for gd, the .png
  68. graphics library.
  69. If you're installing the gd graphics library, you must install gd-devel.
  70. %description devel -l ja
  71. これらは開発ライブラリです。
  72. PNGグラフィックライブラリ gd 用の開発ライブラリおよびヘッダファイル
  73. です。
  74. gdをインストールした場合、gd-develパッケージも必要になります。
  75. ## to build compat32 for x86_64 architecture support
  76. %package -n compat32-%{name}
  77. Summary: A graphics library for drawing .png files.
  78. Group: System Environment/Libraries
  79. %description -n compat32-%{name}
  80. Gd is a graphics library for drawing .png files. Gd allows your code to
  81. quickly draw images (lines, arcs, text, multiple colors, cutting and
  82. pasting from other images, flood fills) and write out the result as a
  83. .png file. Gd is particularly useful in web applications, where .pngs
  84. are commonly used as inline images. Note, however, that gd is not a
  85. paint program.
  86. Install gd if you are developing applications which need to draw .png
  87. files. If you install gd, you'll also need to install the gd-devel
  88. package.
  89. %package -n compat32-%{name}-devel
  90. Summary: The development libraries and header files for gd.
  91. Group: Development/Libraries
  92. %description -n compat32-%{name}-devel
  93. These are the development libraries and header files for gd, the .png
  94. graphics library.
  95. If you're installing the gd graphics library, you must install gd-devel.
  96. %prep
  97. %setup -q -n gd-%{version}
  98. %patch0 -p1 -b .freetype
  99. %patch3 -p1 -b .mlib
  100. %patch4 -p1 -b .loop
  101. %patch6 -p1 -b .overflow
  102. %patch5 -p1 -b .sparc64
  103. %patch7 -p1 -b .AALineThick
  104. %patch8 -p1 -b .bb
  105. %patch9 -p1 -b .fonts-vine
  106. %patch10 -p1 -b .time
  107. %patch11 -p1 -b .sec3
  108. %patch12 -p1 -b .runtests
  109. %build
  110. %configure CPPFLAGS="-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H"
  111. make %{?_smp_mflags}
  112. %install
  113. [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
  114. make DESTDIR=$RPM_BUILD_ROOT install
  115. ## remove unuse files
  116. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
  117. %clean
  118. [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
  119. %post -p /sbin/ldconfig
  120. %postun -p /sbin/ldconfig
  121. %if %{build_compat32}
  122. %post -n compat32-%{name} -p /sbin/ldconfig
  123. %postun -n compat32-%{name} -p /sbin/ldconfig
  124. %endif
  125. %files
  126. %defattr(-,root,root)
  127. %doc COPYING README*
  128. %{_libdir}/*.so.*
  129. %files progs
  130. %defattr(-,root,root)
  131. %{_bindir}/*
  132. %exclude %{_bindir}/gdlib-config
  133. %files devel
  134. %defattr(-,root,root)
  135. %{_bindir}/gdlib-config
  136. %{_includedir}/*
  137. %{_libdir}/*.so
  138. %{_libdir}/pkgconfig/*.pc
  139. %if %{build_compat32}
  140. %files -n compat32-%{name}
  141. %defattr(-,root,root)
  142. %{_libdir}/*.so.*
  143. %files -n compat32-%{name}-devel
  144. %defattr(-,root,root)
  145. %{_libdir}/*.so
  146. %endif
  147. %changelog
  148. * Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.35-10
  149. - rebuild with libpng-1.6.12
  150. * Thu Oct 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.35-9
  151. - changed %%name to "gd20" for compatibility.
  152. * Tue Feb 19 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.35-8
  153. - import patches from fedora package
  154. - modified font path patch for Vine Linux
  155. - drop static library
  156. - remove "-DJISX0208"
  157. - add "-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H""
  158. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.35-7
  159. - move gdlib-config from gd-progs subpackage to gd-devel subpackage
  160. * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.0.35-6
  161. - build on current VineSeed
  162. * Tue Nov 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-5
  163. - fix build_compat32 if-endif sections
  164. * Sat Oct 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-4
  165. - add patch2 for fix CVE-2009-3546 (_gdGetColors())
  166. * Wed Apr 8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.35-3
  167. - updated URL
  168. - changed progs Group to Applications/Graphics
  169. - added %%postun section
  170. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.35-2
  171. - removed *.la
  172. - spec in utf-8
  173. * Sat Apr 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-1
  174. - add patch1 from centos5
  175. - new versioning policy
  176. * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-0vl1
  177. - new upstream release with security fix (CVE-2007-2756)
  178. * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.34-0vl1
  179. - new upstream release with security fix
  180. - change source tarball format gz -> bz2
  181. * Fri Mar 17 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.33-0vl2
  182. - added compat32-* packages for x86_64 architecture support
  183. * Sat Nov 6 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.33-0vl1
  184. - source upgrade
  185. * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.0.27-0vl1
  186. - source update
  187. - added -DJISX0208 flag
  188. * Thu Jun 17 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.26-0vl1
  189. - source upgrade
  190. - BuildPrereq: XOrg-devel instead of XFree86-devel
  191. * Wed Mar 31 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.22-0vl1
  192. - source upgrade
  193. - remove patch0 (no need for freetype2-2.1.7)
  194. * Wed Nov 19 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl2
  195. - add patch0 to build against freetype2-2.1.7
  196. * Sat Jun 7 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl1
  197. - source upgrade
  198. - add URL
  199. - remove all patches
  200. - use %%configure script
  201. - add BuildPrereq: freetype2-devel XFree86-devel
  202. - remove BuildPrereq: VFlib-devel
  203. - update %%files
  204. - update Requires:
  205. - use License tag instead of Copyright
  206. * Fri Apr 18 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.8.3-0vl4
  207. - rebuild with libpng-devel-1.2.5-0vl1
  208. * Sun Apr 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl3
  209. - rebuild with new toolchain
  210. * Sat Sep 02 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  211. - 1.8.3-0vl2
  212. - symlink to libgd.so.1 (for backward compatibility)
  213. * Tue Jun 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  214. - first gd 1.8.x release for Vine from rawhide.
  215. - enable freetype support and defined JISX208 macro.
  216. * Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
  217. - break out a -progs subpackage
  218. - disable freetype support
  219. * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com>
  220. - update to latest version (1.8.2)
  221. - disable xpm support
  222. * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
  223. - auto rebuild in the new build environment (release 6)
  224. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  225. - auto rebuild in the new build environment (release 5)
  226. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  227. - buiuld for glibc 2.1
  228. * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
  229. - built for 5.2