perl-time.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. ##
  2. ## perl-time.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # versions of individual parts
  24. %define V_perl 5.12
  25. %define V_time_date 1.20
  26. %define V_time_hires 1.9721
  27. %define V_time_local 1.1901
  28. %define V_date_manip 6.23
  29. %define V_date_calc 6.3
  30. %define V_class_date 1.1.10
  31. %define V_benchmark_timer 0.7102
  32. %define V_time_modules 2011.0517
  33. %define V_time_tai64 2.11
  34. %define V_datetime_locale 0.45
  35. %define V_datetime 0.66
  36. %define V_datetime_timezone 1.34
  37. %define V_datetime_businesshours 1.01a
  38. %define V_datetime_format_natural 0.95_02
  39. %define V_datetime_format_mail 0.3001
  40. %define V_datetime_format_http 0.40
  41. %define V_datetime_format_w3cdtf 0.05
  42. %define V_time_piece 1.20
  43. %define V_time_duration 1.06
  44. %define V_time_progress 1.7
  45. # package information
  46. Name: perl-time
  47. Summary: Perl Modules for Date/Time Handling
  48. URL: http://www.cpan.org/
  49. Vendor: Perl Community
  50. Packager: OpenPKG Foundation e.V.
  51. Distribution: OpenPKG Community
  52. Class: BASE
  53. Group: Perl
  54. License: GPL/Artistic
  55. Version: %{V_perl}
  56. Release: 20110529
  57. # list of sources
  58. Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{V_time_date}.tar.gz
  59. Source1: http://www.cpan.org/authors/id/J/JH/JHI/Time-HiRes-%{V_time_hires}.tar.gz
  60. Source2: http://www.cpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{V_time_local}.tar.gz
  61. Source3: http://www.cpan.org/authors/id/S/SB/SBECK/Date-Manip-%{V_date_manip}.tar.gz
  62. Source4: http://www.cpan.org/authors/id/S/ST/STBEY/Date-Calc-%{V_date_calc}.tar.gz
  63. Source5: http://www.cpan.org/authors/id/D/DL/DLUX/Class-Date-%{V_class_date}.tar.gz
  64. Source6: http://www.cpan.org/authors/id/D/DC/DCOPPIT/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
  65. Source7: http://www.cpan.org/modules/by-module/Time/Time-modules-%{V_time_modules}.tar.gz
  66. Source8: http://www.cpan.org/authors/id/J/JO/JOVAL/Time-TAI64-%{V_time_tai64}.tar.gz
  67. Source9: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-%{V_datetime_locale}.tar.gz
  68. Source10: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{V_datetime}.tar.gz
  69. Source11: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{V_datetime_timezone}.tar.gz
  70. Source12: http://www.cpan.org/authors/id/M/MS/MSERGEANT/Time-Piece-%{V_time_piece}.tar.gz
  71. Source13: http://www.cpan.org/authors/id/A/AV/AVIF/Time-Duration-%{V_time_duration}.tar.gz
  72. Source14: http://www.cpan.org/modules/by-module/DateTime/DateTime-BusinessHours-%{V_datetime_businesshours}.tar.gz
  73. Source15: http://www.cpan.org/authors/id/S/SC/SCHUBIGER/DateTime-Format-Natural-%{V_datetime_format_natural}.tar.gz
  74. Source16: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Mail-%{V_datetime_format_mail}.tar.gz
  75. Source17: http://www.cpan.org/authors/id/C/CK/CKRAS/DateTime-Format-HTTP-%{V_datetime_format_http}.tar.gz
  76. Source18: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-W3CDTF-%{V_datetime_format_w3cdtf}.tar.gz
  77. Source19: http://www.cpan.org/authors/id/C/CA/CADE/Time-Progress-%{V_time_progress}.tar.gz
  78. Patch0: perl-time.patch
  79. # build information
  80. BuildPreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  81. PreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}
  82. BuildPreReq: perl-util, perl-ds, perl-stats, perl-module
  83. PreReq: perl-util, perl-ds, perl-stats, perl-module
  84. %description
  85. Various Perl modules for Date and Time handling:
  86. - Time::Date (%{V_time_date})
  87. - Time::HiRes (%{V_time_hires})
  88. - Time::Local (%{V_time_local})
  89. - Date::Manip (%{V_date_manip})
  90. - Date::Calc (%{V_date_calc})
  91. - Class::Date (%{V_class_date})
  92. - Benchmark::Timer (%{V_benchmark_timer})
  93. - Time::Modules (%{V_time_modules})
  94. - Time::TAI64 (%{V_time_tai64})
  95. - DateTime (%{V_datetime})
  96. - DateTime::Locale (%{V_datetime_locale})
  97. - DateTime::TimeZone (%{V_datetime_timezone})
  98. - DateTime::BusinessHours (%{V_datetime_businesshours})
  99. - DateTime::Format::Natural (%{V_datetime_format_natural})
  100. - DateTime::Format::Mail (%{V_datetime_format_mail})
  101. - DateTime::Format::HTTP (%{V_datetime_format_http})
  102. - DateTime::Format::W3CDTF (%{V_datetime_format_w3cdtf})
  103. - Time::Piece (%{V_time_piece})
  104. - Time::Duration (%{V_time_duration})
  105. - Time::Progress (%{V_time_progress})
  106. %track
  107. prog perl-time:Benchmark-Timer = {
  108. version = %{V_benchmark_timer}
  109. url = http://www.cpan.org/authors/id/D/DC/DCOPPIT/
  110. regex = Benchmark-Timer-(__VER__)\.tar\.gz
  111. }
  112. prog perl-time:Class-Date = {
  113. version = %{V_class_date}
  114. url = http://www.cpan.org/authors/id/D/DL/DLUX/
  115. regex = Class-Date-(__VER__)\.tar\.gz
  116. }
  117. prog perl-time:Date-Calc = {
  118. version = %{V_date_calc}
  119. url = http://www.cpan.org/authors/id/S/ST/STBEY/
  120. regex = Date-Calc-(__VER__)\.tar\.gz
  121. }
  122. prog perl-time:DateManip = {
  123. version = %{V_date_manip}
  124. url = http://www.cpan.org/authors/id/S/SB/SBECK/
  125. regex = Date-Manip-(__VER__)\.tar\.gz
  126. }
  127. prog perl-time:Time-modules = {
  128. version = %{V_time_modules}
  129. url = http://www.cpan.org/modules/by-module/Time/
  130. regex = Time-modules-(__VER__)\.tar\.gz
  131. }
  132. prog perl-time:Time-HiRes = {
  133. version = %{V_time_hires}
  134. url = http://www.cpan.org/authors/id/J/JH/JHI/
  135. regex = Time-HiRes-(__VER__)\.tar\.gz
  136. }
  137. prog perl-time:Time-Local = {
  138. version = %{V_time_local}
  139. url = http://www.cpan.org/authors/id/D/DR/DROLSKY/
  140. regex = Time-Local-(__VER__)\.tar\.gz
  141. }
  142. prog perl-time:TimeDate = {
  143. version = %{V_time_date}
  144. url = http://www.cpan.org/authors/id/G/GB/GBARR/
  145. regex = TimeDate-(__VER__)\.tar\.gz
  146. }
  147. prog perl-time:Time-TAI64 = {
  148. version = %{V_time_tai64}
  149. url = http://www.cpan.org/authors/id/J/JO/JOVAL/
  150. regex = Time-TAI64-(__VER__)\.tar\.gz
  151. }
  152. prog perl-time:DateTime = {
  153. version = %{V_datetime}
  154. url = http://www.cpan.org/authors/id/D/DR/DROLSKY/
  155. regex = DateTime-(\d+\.\d\d\d\d)\.tar\.gz
  156. }
  157. prog perl-time:DateTime-Locale = {
  158. version = %{V_datetime_locale}
  159. url = http://www.cpan.org/authors/id/D/DR/DROLSKY/
  160. regex = DateTime-Locale-(\d+\.\d\d)\.tar\.gz
  161. }
  162. prog perl-time:DateTime-TimeZone = {
  163. version = %{V_datetime_timezone}
  164. url = http://www.cpan.org/authors/id/D/DR/DROLSKY/
  165. regex = DateTime-TimeZone-(\d+\.\d\d)\.tar\.gz
  166. }
  167. prog perl-time:DateTime-BusinessHours = {
  168. version = %{V_datetime_businesshours}
  169. url = http://www.cpan.org/modules/by-module/DateTime/
  170. regex = DateTime-BusinessHours-(__VER__)\.tar\.gz
  171. }
  172. prog perl-time:DateTime-Format-Natural = {
  173. version = %{V_datetime_format_natural}
  174. url = http://www.cpan.org/authors/id/S/SC/SCHUBIGER/
  175. regex = DateTime-Format-Natural-(__VER__)\.tar\.gz
  176. }
  177. prog perl-time:DateTime-Format-Mail = {
  178. version = %{V_datetime_format_mail}
  179. url = http://www.cpan.org/authors/id/D/DR/DROLSKY/
  180. regex = DateTime-Format-Mail-(__VER__)\.tar\.gz
  181. }
  182. prog perl-time:DateTime-Format-HTTP = {
  183. version = %{V_datetime_format_http}
  184. url = http://www.cpan.org/authors/id/C/CK/CKRAS/
  185. regex = DateTime-Format-HTTP-(__VER__)\.tar\.gz
  186. }
  187. prog perl-time:DateTime-Format-W3CDTF = {
  188. version = %{V_datetime_format_w3cdtf}
  189. url = http://www.cpan.org/authors/id/D/DR/DROLSKY/
  190. regex = DateTime-Format-W3CDTF-(__VER__)\.tar\.gz
  191. }
  192. prog perl-time:Time-Piece = {
  193. version = %{V_time_piece}
  194. url = http://www.cpan.org/authors/id/M/MS/MSERGEANT/
  195. regex = Time-Piece-(__VER__)\.tar\.gz
  196. }
  197. prog perl-time:Time-Duration = {
  198. version = %{V_time_duration}
  199. url = http://www.cpan.org/authors/id/A/AV/AVIF/
  200. regex = Time-Duration-(__VER__)\.tar\.gz
  201. }
  202. prog perl-time:Time-Progress = {
  203. version = %{V_time_progress}
  204. url = http://www.cpan.org/authors/id/C/CA/CADE/
  205. regex = Time-Progress-(__VER__)\.tar\.gz
  206. }
  207. %prep
  208. %setup -q -c
  209. %setup -q -T -D -a 1
  210. %setup -q -T -D -a 2
  211. %setup -q -T -D -a 3
  212. %setup -q -T -D -a 4
  213. %setup -q -T -D -a 5
  214. %setup -q -T -D -a 6
  215. %setup -q -T -D -a 7
  216. %setup -q -T -D -a 8
  217. %setup -q -T -D -a 9
  218. %setup -q -T -D -a 10
  219. %setup -q -T -D -a 11
  220. %setup -q -T -D -a 12
  221. %setup -q -T -D -a 13
  222. %setup -q -T -D -a 14
  223. %setup -q -T -D -a 15
  224. %setup -q -T -D -a 16
  225. %setup -q -T -D -a 17
  226. %setup -q -T -D -a 18
  227. %setup -q -T -D -a 19
  228. %patch -p0
  229. %build
  230. %install
  231. %{l_prefix}/bin/perl-openpkg prepare
  232. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  233. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  234. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  235. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  236. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  237. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  238. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  239. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  240. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  241. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  242. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  243. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  244. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  245. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  246. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  247. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  248. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  249. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  250. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  251. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  252. # FIXME: remove the Date::Calc conflict files
  253. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  254. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  255. %files -f files
  256. %clean