perl-gfx.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ##
  2. ## perl-gfx.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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.12
  27. %define V_image_size 2.99
  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: 20021231
  38. Release: 20021231
  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 >= 5.8.0, perl-ds
  46. PreReq: OpenPKG, openpkg >= 20021230, perl >= 5.8.0, 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. %options
  54. %prep
  55. %setup0 -q -c
  56. %setup1 -q -T -D -a 1
  57. %build
  58. %install
  59. # perform common prolog operations
  60. %{l_prefix}/bin/perl-openpkg prolog
  61. # build and install individual modules
  62. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  63. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  64. # perform common epilog operations
  65. %{l_prefix}/bin/perl-openpkg epilog
  66. %files -f files
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT