perl-time.spec 6.4 KB

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