perl-time.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. ##
  2. ## perl-time.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.4
  27. %define V_time_date 1.1301
  28. %define V_time_hires 1.59
  29. %define V_time_local 1.10
  30. %define V_date_manip 5.42a
  31. %define V_date_calc 5.3
  32. %define V_class_date 1.1.7
  33. %define V_benchmark_timer 0.5
  34. %define V_benchmark_timer 0.5
  35. %define V_time_modules 2003.1126
  36. # package information
  37. Name: perl-time
  38. Summary: Perl Modules for Date/Time Handling
  39. URL: http://www.cpan.org/
  40. Vendor: Perl Community
  41. Packager: The OpenPKG Project
  42. Distribution: OpenPKG
  43. Class: BASE
  44. Group: Language
  45. License: GPL/Artistic
  46. Version: %{V_perl}
  47. Release: 20040622
  48. # list of sources
  49. Source0: http://www.cpan.org/modules/by-module/Date/TimeDate-%{V_time_date}.tar.gz
  50. Source1: http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{V_time_hires}.tar.gz
  51. Source2: http://www.cpan.org/modules/by-module/Time/Time-Local-%{V_time_local}.tar.gz
  52. Source3: http://www.cpan.org/modules/by-module/Date/DateManip-%{V_date_manip}.tar.gz
  53. Source4: http://www.cpan.org/modules/by-module/Date/Date-Calc-%{V_date_calc}.tar.gz
  54. Source5: http://hacks.dlux.hu/Class-Date/download/Class-Date-%{V_class_date}.tar.gz
  55. Source6: http://www.cpan.org/authors/id/A/AN/ANDREWHO/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
  56. Source7: http://www.cpan.org/modules/by-authors/id/MUIR/modules/Time-modules-%{V_time_modules}.tar.gz
  57. # build information
  58. Prefix: %{l_prefix}
  59. BuildRoot: %{l_buildroot}
  60. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  61. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  62. BuildPreReq: perl-ds
  63. PreReq: perl-ds
  64. AutoReq: no
  65. AutoReqProv: no
  66. %description
  67. Various Perl modules for Date and Time handling:
  68. - Time::Date (%{V_time_date})
  69. - Time::HiRes (%{V_time_hires})
  70. - Time::Local (%{V_time_local})
  71. - Date::Manip (%{V_date_manip})
  72. - Date::Calc (%{V_date_calc})
  73. - Class::Date (%{V_class_date})
  74. - Benchmark::Timer (%{V_benchmark_timer})
  75. - Time::Modules (%{V_time_modules})
  76. %track
  77. prog perl-time:Benchmark-Timer = {
  78. version = %{V_benchmark_timer}
  79. url = http://www.cpan.org/modules/by-module/Benchmark/
  80. regex = Benchmark-Timer-(__VER__)\.tar\.gz
  81. }
  82. prog perl-time:Class-Date = {
  83. version = %{V_class_date}
  84. url = http://hacks.dlux.hu/Class-Date/download/
  85. regex = Class-Date-(__VER__)\.tar\.gz
  86. }
  87. prog perl-time:Date-Calc = {
  88. version = %{V_date_calc}
  89. url = http://www.cpan.org/modules/by-module/Date/
  90. regex = Date-Calc-(__VER__)\.tar\.gz
  91. }
  92. prog perl-time:DateManip = {
  93. version = %{V_date_manip}
  94. url = http://www.cpan.org/modules/by-module/Date/
  95. regex = DateManip-(__VER__)\.tar\.gz
  96. }
  97. prog perl-time:Time-modules = {
  98. version = %{V_time_modules}
  99. url = http://www.cpan.org/modules/by-authors/id/MUIR/modules/
  100. regex = Time-modules-(__VER__)\.tar\.gz
  101. }
  102. prog perl-time:Time-HiRes = {
  103. version = %{V_time_hires}
  104. url = http://www.cpan.org/modules/by-module/Time/
  105. regex = Time-HiRes-(__VER__)\.tar\.gz
  106. }
  107. prog perl-time:Time-Local = {
  108. version = %{V_time_local}
  109. url = http://www.cpan.org/modules/by-module/Time/
  110. regex = Time-Local-(__VER__)\.tar\.gz
  111. }
  112. prog perl-time:TimeDate = {
  113. version = %{V_time_date}
  114. url = http://www.cpan.org/modules/by-module/Date/
  115. regex = TimeDate-(__VER__)\.tar\.gz
  116. }
  117. %prep
  118. %setup -q -c
  119. %setup -q -T -D -a 1
  120. %setup -q -T -D -a 2
  121. %setup -q -T -D -a 3
  122. %setup -q -T -D -a 4
  123. %setup -q -T -D -a 5
  124. %setup -q -T -D -a 6
  125. %setup -q -T -D -a 7
  126. %build
  127. %install
  128. rm -rf $RPM_BUILD_ROOT
  129. %{l_prefix}/bin/perl-openpkg prepare
  130. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  131. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  132. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  133. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  134. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  135. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  136. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  137. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  138. # FIXME: remove the Date::Calc conflict files
  139. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  140. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  141. %files -f files
  142. %clean
  143. rm -rf $RPM_BUILD_ROOT