perl-time.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##
  2. ## perl-time.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_time_date 1.1301
  27. %define V_time_hires 1.38
  28. %define V_date_manip 5.42a
  29. %define V_date_calc 5.3
  30. %define V_class_date 1.1.7
  31. %define V_benchmark_timer 0.5
  32. %define V_benchmark_timer 0.5
  33. %define V_time_modules 2003.1126
  34. # package information
  35. Name: perl-time
  36. Summary: Perl Modules for Date/Time Handling
  37. URL: http://www.cpan.org/
  38. Vendor: Perl Community
  39. Packager: The OpenPKG Project
  40. Distribution: OpenPKG [BASE]
  41. Group: Language
  42. License: GPL/Artistic
  43. Version: 20031126
  44. Release: 20031126
  45. # list of sources
  46. Source0: http://www.cpan.org/modules/by-module/Date/TimeDate-%{V_time_date}.tar.gz
  47. Source1: http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{V_time_hires}.tar.gz
  48. Source2: http://www.cpan.org/modules/by-module/Date/DateManip-%{V_date_manip}.tar.gz
  49. Source3: http://www.cpan.org/modules/by-module/Date/Date-Calc-%{V_date_calc}.tar.gz
  50. Source4: http://hacks.dlux.hu/Class-Date/download/Class-Date-%{V_class_date}.tar.gz
  51. Source5: http://www.cpan.org/authors/id/A/AN/ANDREWHO/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
  52. Source6: http://www.cpan.org/modules/by-authors/id/MUIR/modules/Time-modules-%{V_time_modules}.tar.gz
  53. # build information
  54. Prefix: %{l_prefix}
  55. BuildRoot: %{l_buildroot}
  56. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, perl-ds
  57. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, perl-ds
  58. AutoReq: no
  59. AutoReqProv: no
  60. %description
  61. Various Perl modules for Date and Time handling:
  62. - Time::Date (%{V_time_date})
  63. - Time::HiRes (%{V_time_hires})
  64. - Date::Manip (%{V_date_manip})
  65. - Date::Calc (%{V_date_calc})
  66. - Class::Date (%{V_class_date})
  67. - Benchmark::Timer (%{V_benchmark_timer})
  68. - Time::Modules (%{V_time_modules})
  69. %prep
  70. %setup0 -q -c
  71. %setup1 -q -T -D -a 1
  72. %setup2 -q -T -D -a 2
  73. %setup3 -q -T -D -a 3
  74. %setup4 -q -T -D -a 4
  75. %setup5 -q -T -D -a 5
  76. %setup6 -q -T -D -a 6
  77. %build
  78. %install
  79. # perform common prolog operations
  80. %{l_prefix}/bin/perl-openpkg prolog
  81. # build and install individual modules
  82. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  83. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  84. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  85. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  86. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  87. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  88. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  89. # FIXME: remove the Date::Calc conflict files
  90. rm -rf $RPM_BUILD_ROOT$installsitearch/Carp
  91. # perform common epilog operations
  92. %{l_prefix}/bin/perl-openpkg epilog
  93. %files -f files
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT