perl-time.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. ##
  2. ## perl-time.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # versions of individual parts
  25. %define V_perl 5.8.8
  26. %define V_time_date 1.16
  27. %define V_time_hires 1.91
  28. %define V_time_local 1.13
  29. %define V_date_manip 5.44
  30. %define V_date_calc 5.4
  31. %define V_class_date 1.1.9
  32. %define V_benchmark_timer 0.7100
  33. %define V_time_modules 2006.0814
  34. %define V_time_tai64 2.11
  35. %define V_datetime 0.34
  36. %define V_datetime_timezone 0.49
  37. # package information
  38. Name: perl-time
  39. Summary: Perl Modules for Date/Time Handling
  40. URL: http://www.cpan.org/
  41. Vendor: Perl Community
  42. Packager: OpenPKG
  43. Distribution: OpenPKG
  44. Class: BASE
  45. Group: Perl
  46. License: GPL/Artistic
  47. Version: %{V_perl}
  48. Release: 20061003
  49. # list of sources
  50. Source0: http://www.cpan.org/modules/by-module/Time/TimeDate-%{V_time_date}.tar.gz
  51. Source1: http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{V_time_hires}.tar.gz
  52. Source2: http://www.cpan.org/modules/by-module/Time/Time-Local-%{V_time_local}.tar.gz
  53. Source3: http://www.cpan.org/modules/by-module/Date/DateManip-%{V_date_manip}.tar.gz
  54. Source4: http://www.cpan.org/modules/by-module/Date/Date-Calc-%{V_date_calc}.tar.gz
  55. Source5: http://hacks.dlux.hu/Class-Date/download/Class-Date-%{V_class_date}.tar.gz
  56. Source6: http://www.cpan.org/modules/by-module/Benchmark/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
  57. Source7: http://www.cpan.org/modules/by-module/Time/Time-modules-%{V_time_modules}.tar.gz
  58. Source8: http://www.cpan.org/modules/by-module/Time/Time-TAI64-%{V_time_tai64}.tar.gz
  59. Source9: http://www.cpan.org/modules/by-module/DateTime/DateTime-%{V_datetime}.tar.gz
  60. Source10: http://www.cpan.org/modules/by-module/DateTime/DateTime-TimeZone-%{V_datetime_timezone}.tar.gz
  61. Patch0: perl-time.patch
  62. # build information
  63. Prefix: %{l_prefix}
  64. BuildRoot: %{l_buildroot}
  65. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  66. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  67. BuildPreReq: perl-ds, perl-stats
  68. PreReq: perl-ds, perl-stats
  69. AutoReq: no
  70. AutoReqProv: no
  71. %description
  72. Various Perl modules for Date and Time handling:
  73. - Time::Date (%{V_time_date})
  74. - Time::HiRes (%{V_time_hires})
  75. - Time::Local (%{V_time_local})
  76. - Date::Manip (%{V_date_manip})
  77. - Date::Calc (%{V_date_calc})
  78. - Class::Date (%{V_class_date})
  79. - Benchmark::Timer (%{V_benchmark_timer})
  80. - Time::Modules (%{V_time_modules})
  81. - Time::TAI64 (%{V_time_tai64})
  82. - DateTime (%{V_datetime})
  83. - DateTime::TimeZone (%{V_datetime_timezone})
  84. %track
  85. prog perl-time:Benchmark-Timer = {
  86. version = %{V_benchmark_timer}
  87. url = http://www.cpan.org/modules/by-module/Benchmark/
  88. regex = Benchmark-Timer-(__VER__)\.tar\.gz
  89. }
  90. prog perl-time:Class-Date = {
  91. version = %{V_class_date}
  92. url = http://hacks.dlux.hu/Class-Date/download/
  93. regex = Class-Date-(__VER__)\.tar\.gz
  94. }
  95. prog perl-time:Date-Calc = {
  96. version = %{V_date_calc}
  97. url = http://www.cpan.org/modules/by-module/Date/
  98. regex = Date-Calc-(__VER__)\.tar\.gz
  99. }
  100. prog perl-time:DateManip = {
  101. version = %{V_date_manip}
  102. url = http://www.cpan.org/modules/by-module/Date/
  103. regex = DateManip-(__VER__)\.tar\.gz
  104. }
  105. prog perl-time:Time-modules = {
  106. version = %{V_time_modules}
  107. url = http://www.cpan.org/modules/by-module/Time/
  108. regex = Time-modules-(__VER__)\.tar\.gz
  109. }
  110. prog perl-time:Time-HiRes = {
  111. version = %{V_time_hires}
  112. url = http://www.cpan.org/modules/by-module/Time/
  113. regex = Time-HiRes-(__VER__)\.tar\.gz
  114. }
  115. prog perl-time:Time-Local = {
  116. version = %{V_time_local}
  117. url = http://www.cpan.org/modules/by-module/Time/
  118. regex = Time-Local-(__VER__)\.tar\.gz
  119. }
  120. prog perl-time:TimeDate = {
  121. version = %{V_time_date}
  122. url = http://www.cpan.org/modules/by-module/Time/
  123. regex = TimeDate-(__VER__)\.tar\.gz
  124. }
  125. prog perl-time:Time-TAI64 = {
  126. version = %{V_time_tai64}
  127. url = http://www.cpan.org/modules/by-module/Time/
  128. regex = Time-TAI64-(__VER__)\.tar\.gz
  129. }
  130. prog perl-time:DateTime = {
  131. version = %{V_datetime}
  132. url = http://www.cpan.org/modules/by-module/DateTime/
  133. regex = DateTime-(\d+\.\d\d)\.tar\.gz
  134. }
  135. prog perl-time:DateTime-TimeZone = {
  136. version = %{V_datetime_timezone}
  137. url = http://www.cpan.org/modules/by-module/DateTime/
  138. regex = DateTime-TimeZone-(\d+\.\d\d)\.tar\.gz
  139. }
  140. %prep
  141. %setup -q -c
  142. %setup -q -T -D -a 1
  143. %setup -q -T -D -a 2
  144. %setup -q -T -D -a 3
  145. %setup -q -T -D -a 4
  146. %setup -q -T -D -a 5
  147. %setup -q -T -D -a 6
  148. %setup -q -T -D -a 7
  149. %setup -q -T -D -a 8
  150. %setup -q -T -D -a 9
  151. %setup -q -T -D -a 10
  152. %patch -p0
  153. %build
  154. %install
  155. rm -rf $RPM_BUILD_ROOT
  156. %{l_prefix}/bin/perl-openpkg prepare
  157. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  158. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  159. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  160. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  161. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  162. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  163. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  164. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  165. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  166. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  167. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  168. # FIXME: remove the Date::Calc conflict files
  169. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  170. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  171. %files -f files
  172. %clean
  173. rm -rf $RPM_BUILD_ROOT