perl-gd.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. ##
  2. ## perl-gd.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_perl 5.8.4
  27. %define V_gd 2.12
  28. %define V_gdtextutil 0.86
  29. %define V_gdbarcode 1.15
  30. %define V_gdgraph 1.43
  31. %define V_gdgraph3d 0.56
  32. %define V_gdgraphmap 1.05
  33. %define V_chart 2.3
  34. %define V_chartthreed 0.01
  35. %define V_chartplot 0.11
  36. %define V_imagetimeline 0.11
  37. # package information
  38. Name: perl-gd
  39. Summary: Perl Modules for use with GD
  40. URL: http://www.cpan.org/
  41. Vendor: Perl Community
  42. Packager: The OpenPKG Project
  43. Distribution: OpenPKG
  44. Class: BASE
  45. Group: Language
  46. License: GPL/Artistic
  47. Version: %{V_perl}
  48. Release: 20040508
  49. # list of sources
  50. Source0: http://www.cpan.org/modules/by-module/GD/GD-%{V_gd}.tar.gz
  51. Source1: http://www.cpan.org/modules/by-module/GD/GDTextUtil-%{V_gdtextutil}.tar.gz
  52. Source2: http://www.cpan.org/modules/by-module/GD/GD-Barcode-%{V_gdbarcode}.tar.gz
  53. Source3: http://www.cpan.org/modules/by-module/GD/GDGraph-%{V_gdgraph}.tar.gz
  54. Source4: http://www.cpan.org/modules/by-module/GD/GDGraph3d-%{V_gdgraph3d}.tar.gz
  55. Source5: http://www.cpan.org/modules/by-module/GD/GDGraph-Map-%{V_gdgraphmap}.tgz
  56. Source6: http://www.cpan.org/modules/by-module/Chart/Chart-%{V_chart}.tar.gz
  57. Source7: http://www.cpan.org/modules/by-module/Chart/Chart-ThreeD-%{V_chartthreed}.tar.gz
  58. Source8: http://www.cpan.org/modules/by-module/Chart/Chart-Plot-%{V_chartplot}.tar.gz
  59. Source9: http://www.cpan.org/modules/by-module/Image/Image-Timeline-%{V_imagetimeline}.tar.gz
  60. # build information
  61. Prefix: %{l_prefix}
  62. BuildRoot: %{l_buildroot}
  63. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  64. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  65. BuildPreReq: gd >= 2.0.7
  66. PreReq: gd >= 2.0.7
  67. AutoReq: no
  68. AutoReqProv: no
  69. %description
  70. Various modules for using the GD library from within the Perl
  71. language plus additional functionality for drawing various types of
  72. charts and graphs.
  73. - GD (%{V_gd})
  74. - GD::TextUtil (%{V_gdtextutil})
  75. - GD::Barcode (%{V_gdbarcode})
  76. - GD::Graph (%{V_gdgraph})
  77. - GD::Graph::3d (%{V_gdgraph3d})
  78. - GD::Graph::Map (%{V_gdgraphmap})
  79. - Chart (%{V_chart})
  80. - Chart::ThreeD (%{V_chartthreed})
  81. - Chart::Plot (%{V_chartplot})
  82. - Image::Timeline (%{V_imagetimeline})
  83. %track
  84. prog perl-gd:Chart = {
  85. version = %{V_chart}
  86. url = http://www.cpan.org/modules/by-module/Chart/
  87. regex = Chart-(__VER__)\.tar\.gz
  88. }
  89. prog perl-gd:Chart-Plot = {
  90. version = %{V_chartplot}
  91. url = http://www.cpan.org/modules/by-module/Chart/
  92. regex = Chart-Plot-(__VER__)\.tar\.gz
  93. }
  94. prog perl-gd:Chart-ThreeD = {
  95. version = %{V_chartthreed}
  96. url = http://www.cpan.org/modules/by-module/Chart/
  97. regex = Chart-ThreeD-(__VER__)\.tar\.gz
  98. }
  99. prog perl-gd:GD = {
  100. version = %{V_gd}
  101. url = http://www.cpan.org/modules/by-module/GD/
  102. regex = GD-(__VER__)\.tar\.gz
  103. }
  104. prog perl-gd:GD-Barcode = {
  105. version = %{V_gdbarcode}
  106. url = http://www.cpan.org/modules/by-module/GD/
  107. regex = GD-Barcode-(__VER__)\.tar\.gz
  108. }
  109. prog perl-gd:GDGraph = {
  110. version = %{V_gdgraph}
  111. url = http://www.cpan.org/modules/by-module/GD/
  112. regex = GDGraph-(__VER__)\.tar\.gz
  113. }
  114. prog perl-gd:GDGraph-Map = {
  115. version = %{V_gdgraphmap}
  116. url = http://www.cpan.org/modules/by-module/GD/
  117. regex = GDGraph-Map-(__VER__)\.tgz
  118. }
  119. prog perl-gd:GDGraph3d = {
  120. version = %{V_gdgraph3d}
  121. url = http://www.cpan.org/modules/by-module/GD/
  122. regex = GDGraph3d-(__VER__)\.tar\.gz
  123. }
  124. prog perl-gd:GDTextUtil = {
  125. version = %{V_gdtextutil}
  126. url = http://www.cpan.org/modules/by-module/GD/
  127. regex = GDTextUtil-(__VER__)\.tar\.gz
  128. }
  129. prog perl-gd:Image-Timeline = {
  130. version = %{V_imagetimeline}
  131. url = http://www.cpan.org/modules/by-module/Image/
  132. regex = Image-Timeline-(__VER__)\.tar\.gz
  133. }
  134. %prep
  135. %setup -q -c
  136. %setup -q -T -D -a 1
  137. %setup -q -T -D -a 2
  138. %setup -q -T -D -a 3
  139. %setup -q -T -D -a 4
  140. %setup -q -T -D -a 5
  141. %setup -q -T -D -a 6
  142. %setup -q -T -D -a 7
  143. %setup -q -T -D -a 8
  144. %setup -q -T -D -a 9
  145. %build
  146. %install
  147. rm -rf $RPM_BUILD_ROOT
  148. %{l_prefix}/bin/perl-openpkg prepare
  149. ( cd GD-%{V_gd}
  150. %{l_shtool} subst \
  151. -e 's/\(@INC = qw(\).*\();\)/\1\2/' \
  152. -e 's/\(@LIBPATH = qw(\).*\();\)/\1\2/' \
  153. Makefile.PL
  154. %{l_prefix}/bin/perl-openpkg \
  155. -A '-options JPEG,FT' \
  156. -A '-lib_gd_path %{l_prefix}' \
  157. -A '-lib_png_path %{l_prefix}' \
  158. -A '-lib_zlib_path %{l_prefix}' \
  159. -A '-lib_jpeg_path %{l_prefix}' \
  160. -A '-lib_ft_path %{l_prefix}' \
  161. configure build install
  162. ) || exit $?
  163. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  164. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  165. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  166. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  167. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  168. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  169. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  170. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  171. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  172. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  173. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  174. %files -f files
  175. %clean
  176. rm -rf $RPM_BUILD_ROOT