perl-GD-vl.spec 7.9 KB

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