perl-time.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. ##
  2. ## perl-time.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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.9704
  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_locale 0.33
  36. %define V_datetime 0.35
  37. %define V_datetime_timezone 0.57
  38. # package information
  39. Name: perl-time
  40. Summary: Perl Modules for Date/Time Handling
  41. URL: http://www.cpan.org/
  42. Vendor: Perl Community
  43. Packager: OpenPKG Foundation e.V.
  44. Distribution: OpenPKG Community
  45. Class: BASE
  46. Group: Perl
  47. License: GPL/Artistic
  48. Version: %{V_perl}
  49. Release: 20070107
  50. # list of sources
  51. Source0: http://www.cpan.org/modules/by-module/Time/TimeDate-%{V_time_date}.tar.gz
  52. Source1: http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{V_time_hires}.tar.gz
  53. Source2: http://www.cpan.org/modules/by-module/Time/Time-Local-%{V_time_local}.tar.gz
  54. Source3: http://www.cpan.org/modules/by-module/Date/DateManip-%{V_date_manip}.tar.gz
  55. Source4: http://www.cpan.org/modules/by-module/Date/Date-Calc-%{V_date_calc}.tar.gz
  56. Source5: http://hacks.dlux.hu/Class-Date/download/Class-Date-%{V_class_date}.tar.gz
  57. Source6: http://www.cpan.org/modules/by-module/Benchmark/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
  58. Source7: http://www.cpan.org/modules/by-module/Time/Time-modules-%{V_time_modules}.tar.gz
  59. Source8: http://www.cpan.org/modules/by-module/Time/Time-TAI64-%{V_time_tai64}.tar.gz
  60. Source9: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{V_datetime_locale}.tar.gz
  61. Source10: http://www.cpan.org/modules/by-module/DateTime/DateTime-%{V_datetime}.tar.gz
  62. Source11: http://www.cpan.org/modules/by-module/DateTime/DateTime-TimeZone-%{V_datetime_timezone}.tar.gz
  63. Patch0: perl-time.patch
  64. # build information
  65. Prefix: %{l_prefix}
  66. BuildRoot: %{l_buildroot}
  67. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  68. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  69. BuildPreReq: perl-util, perl-ds, perl-stats
  70. PreReq: perl-util, perl-ds, perl-stats
  71. AutoReq: no
  72. AutoReqProv: no
  73. %description
  74. Various Perl modules for Date and Time handling:
  75. - Time::Date (%{V_time_date})
  76. - Time::HiRes (%{V_time_hires})
  77. - Time::Local (%{V_time_local})
  78. - Date::Manip (%{V_date_manip})
  79. - Date::Calc (%{V_date_calc})
  80. - Class::Date (%{V_class_date})
  81. - Benchmark::Timer (%{V_benchmark_timer})
  82. - Time::Modules (%{V_time_modules})
  83. - Time::TAI64 (%{V_time_tai64})
  84. - DateTime (%{V_datetime})
  85. - DateTime::Locale (%{V_datetime_locale})
  86. - DateTime::TimeZone (%{V_datetime_timezone})
  87. %track
  88. prog perl-time:Benchmark-Timer = {
  89. version = %{V_benchmark_timer}
  90. url = http://www.cpan.org/modules/by-module/Benchmark/
  91. regex = Benchmark-Timer-(__VER__)\.tar\.gz
  92. }
  93. prog perl-time:Class-Date = {
  94. version = %{V_class_date}
  95. url = http://hacks.dlux.hu/Class-Date/download/
  96. regex = Class-Date-(__VER__)\.tar\.gz
  97. }
  98. prog perl-time:Date-Calc = {
  99. version = %{V_date_calc}
  100. url = http://www.cpan.org/modules/by-module/Date/
  101. regex = Date-Calc-(__VER__)\.tar\.gz
  102. }
  103. prog perl-time:DateManip = {
  104. version = %{V_date_manip}
  105. url = http://www.cpan.org/modules/by-module/Date/
  106. regex = DateManip-(__VER__)\.tar\.gz
  107. }
  108. prog perl-time:Time-modules = {
  109. version = %{V_time_modules}
  110. url = http://www.cpan.org/modules/by-module/Time/
  111. regex = Time-modules-(__VER__)\.tar\.gz
  112. }
  113. prog perl-time:Time-HiRes = {
  114. version = %{V_time_hires}
  115. url = http://www.cpan.org/modules/by-module/Time/
  116. regex = Time-HiRes-(__VER__)\.tar\.gz
  117. }
  118. prog perl-time:Time-Local = {
  119. version = %{V_time_local}
  120. url = http://www.cpan.org/modules/by-module/Time/
  121. regex = Time-Local-(__VER__)\.tar\.gz
  122. }
  123. prog perl-time:TimeDate = {
  124. version = %{V_time_date}
  125. url = http://www.cpan.org/modules/by-module/Time/
  126. regex = TimeDate-(__VER__)\.tar\.gz
  127. }
  128. prog perl-time:Time-TAI64 = {
  129. version = %{V_time_tai64}
  130. url = http://www.cpan.org/modules/by-module/Time/
  131. regex = Time-TAI64-(__VER__)\.tar\.gz
  132. }
  133. prog perl-time:DateTime = {
  134. version = %{V_datetime}
  135. url = http://www.cpan.org/modules/by-module/DateTime/
  136. regex = DateTime-(\d+\.\d\d)\.tar\.gz
  137. }
  138. prog perl-time:DateTime-Locale = {
  139. version = %{V_datetime_locale}
  140. url = http://www.cpan.org/modules/by-module/DateTime/
  141. regex = DateTime-Locale-(\d+\.\d\d)\.tar\.gz
  142. }
  143. prog perl-time:DateTime-TimeZone = {
  144. version = %{V_datetime_timezone}
  145. url = http://www.cpan.org/modules/by-module/DateTime/
  146. regex = DateTime-TimeZone-(\d+\.\d\d)\.tar\.gz
  147. }
  148. %prep
  149. %setup -q -c
  150. %setup -q -T -D -a 1
  151. %setup -q -T -D -a 2
  152. %setup -q -T -D -a 3
  153. %setup -q -T -D -a 4
  154. %setup -q -T -D -a 5
  155. %setup -q -T -D -a 6
  156. %setup -q -T -D -a 7
  157. %setup -q -T -D -a 8
  158. %setup -q -T -D -a 9
  159. %setup -q -T -D -a 10
  160. %setup -q -T -D -a 11
  161. %patch -p0
  162. %build
  163. %install
  164. rm -rf $RPM_BUILD_ROOT
  165. %{l_prefix}/bin/perl-openpkg prepare
  166. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  167. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  168. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  169. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  170. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  171. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  172. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  173. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  174. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  175. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  176. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  177. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  178. # FIXME: remove the Date::Calc conflict files
  179. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  180. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  181. %files -f files
  182. %clean
  183. rm -rf $RPM_BUILD_ROOT