gd-vl.spec 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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: gd
  5. Version: 2.0.35
  6. Release: 8%{_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: gd = %{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: gd = %{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
  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. * Tue Feb 19 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.35-8
  149. - import patches from fedora package
  150. - modified font path patch for Vine Linux
  151. - drop static library
  152. - remove "-DJISX0208"
  153. - add "-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H""
  154. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.35-7
  155. - move gdlib-config from gd-progs subpackage to gd-devel subpackage
  156. * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.0.35-6
  157. - build on current VineSeed
  158. * Tue Nov 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-5
  159. - fix build_compat32 if-endif sections
  160. * Sat Oct 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-4
  161. - add patch2 for fix CVE-2009-3546 (_gdGetColors())
  162. * Wed Apr 8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.35-3
  163. - updated URL
  164. - changed progs Group to Applications/Graphics
  165. - added %%postun section
  166. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.35-2
  167. - removed *.la
  168. - spec in utf-8
  169. * Sat Apr 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-1
  170. - add patch1 from centos5
  171. - new versioning policy
  172. * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-0vl1
  173. - new upstream release with security fix (CVE-2007-2756)
  174. * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.34-0vl1
  175. - new upstream release with security fix
  176. - change source tarball format gz -> bz2
  177. * Fri Mar 17 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.33-0vl2
  178. - added compat32-* packages for x86_64 architecture support
  179. * Sat Nov 6 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.33-0vl1
  180. - source upgrade
  181. * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.0.27-0vl1
  182. - source update
  183. - added -DJISX0208 flag
  184. * Thu Jun 17 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.26-0vl1
  185. - source upgrade
  186. - BuildPrereq: XOrg-devel instead of XFree86-devel
  187. * Wed Mar 31 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.22-0vl1
  188. - source upgrade
  189. - remove patch0 (no need for freetype2-2.1.7)
  190. * Wed Nov 19 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl2
  191. - add patch0 to build against freetype2-2.1.7
  192. * Sat Jun 7 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl1
  193. - source upgrade
  194. - add URL
  195. - remove all patches
  196. - use %%configure script
  197. - add BuildPrereq: freetype2-devel XFree86-devel
  198. - remove BuildPrereq: VFlib-devel
  199. - update %%files
  200. - update Requires:
  201. - use License tag instead of Copyright
  202. * Fri Apr 18 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.8.3-0vl4
  203. - rebuild with libpng-devel-1.2.5-0vl1
  204. * Sun Apr 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl3
  205. - rebuild with new toolchain
  206. * Sat Sep 02 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  207. - 1.8.3-0vl2
  208. - symlink to libgd.so.1 (for backward compatibility)
  209. * Mon Jun 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  210. - first gd 1.8.x release for Vine from rawhide.
  211. - enable freetype support and defined JISX208 macro.
  212. * Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
  213. - break out a -progs subpackage
  214. - disable freetype support
  215. * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com>
  216. - update to latest version (1.8.2)
  217. - disable xpm support
  218. * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
  219. - auto rebuild in the new build environment (release 6)
  220. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  221. - auto rebuild in the new build environment (release 5)
  222. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  223. - buiuld for glibc 2.1
  224. * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
  225. - built for 5.2