perl-gfx.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## perl-gfx.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_image_info 1.16
  28. %define V_image_size 2.992
  29. # package information
  30. Name: perl-gfx
  31. Summary: Perl Modules for use with Graphics
  32. URL: http://www.cpan.org/
  33. Vendor: Perl Community
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG
  36. Class: BASE
  37. Group: Language
  38. License: GPL/Artistic
  39. Version: %{V_perl}
  40. Release: 20040508
  41. # list of sources
  42. Source0: http://www.cpan.org/modules/by-module/Image/Image-Info-%{V_image_info}.tar.gz
  43. Source1: http://www.cpan.org/modules/by-module/Image/Image-Size-%{V_image_size}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  48. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  49. BuildPreReq: perl-ds
  50. PreReq: perl-ds
  51. AutoReq: no
  52. AutoReqProv: no
  53. %description
  54. Perl modules for use with Graphics:
  55. - Image::Info (%{V_image_info})
  56. - Image::Size (%{V_image_size})
  57. %track
  58. prog perl-gfx:Image-Info = {
  59. version = %{V_image_info}
  60. url = http://www.cpan.org/modules/by-module/Image/
  61. regex = Image-Info-(__VER__)\.tar\.gz
  62. }
  63. prog perl-gfx:Image-Size = {
  64. version = %{V_image_size}
  65. url = http://www.cpan.org/modules/by-module/Image/
  66. regex = Image-Size-(__VER__)\.tar\.gz
  67. }
  68. %prep
  69. %setup -q -c
  70. %setup -q -T -D -a 1
  71. %build
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. %{l_prefix}/bin/perl-openpkg prepare
  75. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  76. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  77. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  79. %files -f files
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT