perl-gfx.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ##
  2. ## perl-gfx.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 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_image_info 1.16
  27. %define V_image_size 2.992
  28. # package information
  29. Name: perl-gfx
  30. Summary: Perl Modules for use with Graphics
  31. URL: http://www.cpan.org/
  32. Vendor: Perl Community
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [BASE]
  35. Group: Language
  36. License: GPL/Artistic
  37. Version: 20040107
  38. Release: 20040107
  39. # list of sources
  40. Source0: http://www.cpan.org/modules/by-module/Image/Image-Info-%{V_image_info}.tar.gz
  41. Source1: http://www.cpan.org/modules/by-module/Image/Image-Size-%{V_image_size}.tar.gz
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20021230, perl, perl-openpkg, perl-ds
  46. PreReq: OpenPKG, openpkg >= 20021230, perl, perl-openpkg, perl-ds
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Perl modules for use with Graphics:
  51. - Image::Info (%{V_image_info})
  52. - Image::Size (%{V_image_size})
  53. %prep
  54. %setup0 -q -c
  55. %setup1 -q -T -D -a 1
  56. %build
  57. %install
  58. # perform common prolog operations
  59. %{l_prefix}/bin/perl-openpkg prolog
  60. # build and install individual modules
  61. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  62. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  63. # perform common epilog operations
  64. %{l_prefix}/bin/perl-openpkg epilog
  65. %files -f files
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT