perl-GD-vl.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. Name: perl-GD
  2. Summary: Perl interface to the GD graphics library
  3. Summary(ja): GD ライブラリの Perl 用インターフェイス
  4. Version: 2.53
  5. Release: 1%{?_dist_release}
  6. Group: Development/Libraries
  7. License: GPL+ or Artistic
  8. URL: http://search.cpan.org/dist/GD/
  9. Source0: http://www.cpan.org/authors/id/L/LD/LDS/GD-%{version}.tar.gz
  10. Patch0: perl-GD-2.41-Group.patch
  11. Patch1: perl-GD-skip-3.patch
  12. # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
  13. # and https://rt.cpan.org/Public/Bug/Display.html?id=67990
  14. Patch2: perl-GD-ccflags.patch
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: gd-devel >= 2.0.28
  17. BuildRequires: perl(ExtUtils::MakeMaker)
  18. BuildRequires: freetype2-devel, libpng-devel, zlib-devel
  19. BuildRequires: libX11-devel
  20. BuildRequires: libXpm-devel
  21. Requires: gd >= 2.0.28, libjpeg, freetype2
  22. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  23. %{?perl_default_filter}
  24. %description
  25. This is a autoloadable interface module for GD, a popular library
  26. for creating and manipulating PNG files. With this library you can
  27. create PNG images on the fly or modify existing files. Features
  28. include:
  29. a. lines, polygons, rectangles and arcs, both filled and unfilled
  30. b. flood fills
  31. c. the use of arbitrary images as brushes and as tiled fill patterns
  32. d. line styling (dashed lines and the like)
  33. e. horizontal and vertical text rendering
  34. f. support for transparency and interlacing
  35. For full information on usage, see the accompanying man and html
  36. documentation.
  37. %prep
  38. %setup -q -n GD-%{version}
  39. %patch0 -p1
  40. %ifarch %{ix86}
  41. %patch1 -p1
  42. %endif
  43. #patch2 -p1
  44. %{__perl} -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
  45. qd.pl demos/{*.{pl,cgi},truetype_test}
  46. chmod -c 644 bdf_scripts/* demos/*
  47. chmod -c 755 qd.pl
  48. %build
  49. rm -rf %{buildroot}
  50. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  51. make %{?_smp_mflags} OPTIMIZE="%{optflags}"
  52. %install
  53. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  54. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  55. find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
  56. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  57. chmod -R u+w %{buildroot}/*
  58. %check
  59. %ifarch ppc
  60. # testsuite fails on ppc
  61. %else
  62. make test
  63. %endif
  64. %ifarch %{ix86}
  65. perl t/GD.t --write
  66. : This is the file that should contain some blue color:
  67. base64 t/test.out.3.png_new
  68. %endif
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc ChangeLog README* demos/ bdf_scripts
  72. %{_bindir}/*
  73. %{perl_vendorarch}/auto/GD
  74. %{perl_vendorarch}/GD*
  75. %{perl_vendorarch}/qd.pl
  76. %{_mandir}/man1/*.1*
  77. %{_mandir}/man3/*.3pm*
  78. %changelog
  79. * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.53-1
  80. - new upstream release
  81. - built with perl-5.16.3.
  82. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.44-1
  83. - updated to 2.44
  84. - spec revamped based on Fedora's 2.44-10
  85. - previous Vine changelogs as follows:
  86. - Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.35-2
  87. - rebuild with perl-5.12.3
  88. - add BuildRequires: libX11-devel, libXpm-devel
  89. - Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.35-1vl5
  90. - applied new versioning policy, spec in utf-8
  91. - built with perl-5.10.0
  92. - Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.35-0vl1
  93. - new upstream release
  94. - changed Group to Development/Libraries
  95. - Sat Sep 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28-0vl1
  96. - new upstream release
  97. - added Japanese summary
  98. - Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 2.19-0vl1
  99. - new upstream release
  100. - update {Build,}Requires
  101. - Tue Nov 11 2003 IWAI, Masaharu <iwai@alib.jp> 2.11-0vl1
  102. - initial build
  103. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.44-10
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  105. * Thu Nov 10 2011 Iain Arnell <iarnell@gmail.com> 2.44-9
  106. - Rebuild for libpng 1.5
  107. * Sat Jun 18 2011 Iain Arnell <iarnell@gmail.com> 2.44-8
  108. - patch to avoid issue with ExtUtils::MakeMaker and CCFLAGS
  109. see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
  110. - clean up spec for modern rpmbuild
  111. - use perl_default_filter
  112. * Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.44-7
  113. - Perl mass rebuild
  114. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.44-6
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  116. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.44-5
  117. - 661697 rebuild for fixing problems with vendorach/lib
  118. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.44-4
  119. - Mass rebuild with perl-5.12.0
  120. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.44-3
  121. - rebuild against perl 5.10.1
  122. * Thu Oct 29 2009 Stepan Kasal <skasal@redhat.com> - 2.44-2
  123. - give up tests on ppc
  124. * Mon Oct 5 2009 Stepan Kasal <skasal@redhat.com> - 2.44-1
  125. - new upstream version
  126. - run tests always
  127. - do not add bdf_scripts/ to docs
  128. - switch off the test that fails in i686 koji
  129. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.41-3
  130. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  131. * Mon Mar 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.41-2
  132. - fix Makefile.PL to install GD/Group.pm (bz 490429)
  133. * Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.41-1
  134. - update to 2.41
  135. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.39-2
  136. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  137. * Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.39-1
  138. - update to 2.39
  139. * Fri Apr 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-7
  140. - tests work fine locally, one fails in mock, maybe needs a desktop?
  141. conditionalized them, default off.
  142. * Fri Apr 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-6
  143. - license fix
  144. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-5
  145. - Rebuild for perl 5.10 (again)
  146. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.35-4
  147. - Autorebuild for GCC 4.3
  148. * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-3
  149. - rebuild for new perl
  150. * Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-2.1
  151. - add BR: perl(ExtUtils::MakeMaker)
  152. * Sun Oct 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.35-2
  153. - Removed a duplicate file (bdf_scripts/bdf2gdfont.PLS).
  154. * Tue Sep 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.35-1
  155. - Update to 2.35.
  156. * Sat Jun 3 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.34-1
  157. - Update to 2.34.
  158. * Wed Mar 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.32-1
  159. - Update to 2.32.
  160. * Tue Feb 21 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.31-1
  161. - Update to 2.31.
  162. * Wed Feb 15 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-3
  163. - Missing BR: fontconfig-devel.
  164. * Mon Feb 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-2
  165. - Modular X (libX11-devel, libXpm-devel).
  166. * Fri Oct 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-1
  167. - Update to 2.30.
  168. * Mon Aug 8 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.28-1
  169. - Update to 2.28.
  170. * Tue Jul 19 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.25-1
  171. - Update to 2.25.
  172. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.23-2
  173. - rebuilt
  174. * Wed Mar 9 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.23-1
  175. - Update to 2.23.
  176. * Thu Dec 09 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.19-1
  177. - Update to 2.19.
  178. - GIF support has been restored in gd 2.0.28.
  179. - Module autoconfigures itself with the gdlib-config program.
  180. * Mon Jun 28 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.12-0.fdr.3
  181. - Avoid RPATH problem in FC1 (bug 1756).
  182. - Replaced hardcoded value by rpmmacro (%%{__perl}) (bug 1756).
  183. * Mon Jun 14 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.12-0.fdr.2
  184. - Bring up to date with current fedora.us perl spec template.
  185. * Sat Feb 7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.12-0.fdr.1
  186. - Update to 2.12.
  187. - Reduce directory ownership bloat.
  188. * Tue Nov 18 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.11-0.fdr.1
  189. - Update to 2.11.
  190. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.41-0.fdr.1
  191. - First build.