perl-util.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ##
  2. ## perl-util.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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_alias 2.32
  27. %define V_class_loader 2.02
  28. %define V_class_makemethods 1.005
  29. %define V_class_methodmaker 1.08
  30. %define V_class_returnvalue 0.40
  31. %define V_devel_stacktrace 1.02
  32. # package information
  33. Name: perl-util
  34. Summary: Perl Modules for general utility usage
  35. URL: http://www.cpan.org/
  36. Vendor: Perl Community
  37. Packager: The OpenPKG Project
  38. Distribution: OpenPKG [BASE]
  39. Group: Language
  40. License: GPL/Artistic
  41. Version: 20021210
  42. Release: 20021210
  43. # list of sources
  44. Source0: http://www.cpan.org/modules/by-module/Alias/Alias-%{V_alias}.tar.gz
  45. Source1: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz
  46. Source2: http://www.cpan.org/modules/by-module/Class/Class-MakeMethods-%{V_class_makemethods}.tar.gz
  47. Source3: http://www.cpan.org/modules/by-module/Class/Class-MethodMaker-%{V_class_methodmaker}.tar.gz
  48. Source4: http://www.cpan.org/modules/by-module/Devel/Devel-StackTrace-%{V_devel_stacktrace}.tar.gz
  49. Source5: http://www.cpan.org/modules/by-module/Class/Class-ReturnValue-%{V_class_returnvalue}.tar.gz
  50. # build information
  51. Prefix: %{l_prefix}
  52. BuildRoot: %{l_buildroot}
  53. BuildPreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0
  54. PreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0
  55. AutoReq: no
  56. AutoReqProv: no
  57. %description
  58. Perl modules for general utility usage:
  59. - Alias (%{V_alias})
  60. - Class::Loader (%{V_class_loader})
  61. - Class::MakeMethods (%{V_class_makemethods})
  62. - Class::MethodMaker (%{V_class_methodmaker})
  63. - Class::ReturnValue (%{V_class_returnvalue})
  64. - Devel::StackTrace (%{V_devel_stacktrace})
  65. %prep
  66. %setup0 -q -c
  67. %setup1 -q -T -D -a 1
  68. %setup2 -q -T -D -a 2
  69. %setup3 -q -T -D -a 3
  70. %setup4 -q -T -D -a 4
  71. %setup5 -q -T -D -a 5
  72. %build
  73. %install
  74. # perform common prolog operations
  75. %{l_prefix}/bin/perl-openpkg prolog
  76. # build and install individual modules
  77. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  78. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  79. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  80. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  81. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  82. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  83. # perform common epilog operations
  84. %{l_prefix}/bin/perl-openpkg epilog
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT