perl-gfx.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.3
  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: 20040218
  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, perl-ds
  48. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126, perl-ds
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Perl modules for use with Graphics:
  53. - Image::Info (%{V_image_info})
  54. - Image::Size (%{V_image_size})
  55. %track
  56. prog perl-gfx:Image-Info = {
  57. version = %{V_image_info}
  58. url = http://www.cpan.org/modules/by-module/Image/
  59. regex = Image-Info-(__VER__)\.tar\.gz
  60. }
  61. prog perl-gfx:Image-Size = {
  62. version = %{V_image_size}
  63. url = http://www.cpan.org/modules/by-module/Image/
  64. regex = Image-Size-(__VER__)\.tar\.gz
  65. }
  66. %prep
  67. %setup -q -c
  68. %setup -q -T -D -a 1
  69. %build
  70. %install
  71. %{l_prefix}/bin/perl-openpkg prepare
  72. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  73. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  74. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT