perl-time.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. ##
  2. ## perl-time.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 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.10.0
  25. %define V_time_date 1.16
  26. %define V_time_hires 1.9719
  27. %define V_time_local 1.1901
  28. %define V_date_manip 5.54
  29. %define V_date_calc 5.6
  30. %define V_class_date 1.1.9
  31. %define V_benchmark_timer 0.7101
  32. %define V_time_modules 2006.0814
  33. %define V_time_tai64 2.11
  34. %define V_datetime_locale 0.43
  35. %define V_datetime 0.4501
  36. %define V_datetime_timezone 0.96
  37. %define V_datetime_businesshours 1.01a
  38. %define V_datetime_format_natural 0.78
  39. %define V_datetime_format_mail 0.3001
  40. %define V_datetime_format_http 0.37
  41. %define V_datetime_format_w3cdtf 0.04
  42. %define V_time_piece 1.15
  43. %define V_time_duration 1.06
  44. %define V_time_progress 1.5
  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: 20090823
  57. # list of sources
  58. Source0: http://www.cpan.org/modules/by-module/Time/TimeDate-%{V_time_date}.tar.gz
  59. Source1: http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{V_time_hires}.tar.gz
  60. Source2: http://www.cpan.org/modules/by-module/Time/Time-Local-%{V_time_local}.tar.gz
  61. Source3: http://www.cpan.org/modules/by-module/Date/Date-Manip-%{V_date_manip}.tar.gz
  62. Source4: http://www.cpan.org/modules/by-module/Date/Date-Calc-%{V_date_calc}.tar.gz
  63. Source5: http://www.cpan.org/modules/by-module/Class/Class-Date-%{V_class_date}.tar.gz
  64. Source6: http://www.cpan.org/modules/by-module/Benchmark/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/modules/by-module/Time/Time-TAI64-%{V_time_tai64}.tar.gz
  67. Source9: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{V_datetime_locale}.tar.gz
  68. Source10: http://www.cpan.org/modules/by-module/DateTime/DateTime-%{V_datetime}.tar.gz
  69. Source11: http://www.cpan.org/modules/by-module/DateTime/DateTime-TimeZone-%{V_datetime_timezone}.tar.gz
  70. Source12: http://www.cpan.org/modules/by-module/Time/Time-Piece-%{V_time_piece}.tar.gz
  71. Source13: http://www.cpan.org/modules/by-module/Time/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/modules/by-module/DateTime/DateTime-Format-Natural-%{V_datetime_format_natural}.tar.gz
  74. Source16: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Mail-%{V_datetime_format_mail}.tar.gz
  75. Source17: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-HTTP-%{V_datetime_format_http}.tar.gz
  76. Source18: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-W3CDTF-%{V_datetime_format_w3cdtf}.tar.gz
  77. Source19: http://www.cpan.org/modules/by-module/Time/Time-Progress-%{V_time_progress}.tar.gz
  78. Patch0: perl-time.patch
  79. # build information
  80. Prefix: %{l_prefix}
  81. BuildRoot: %{l_buildroot}
  82. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  83. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  84. BuildPreReq: perl-util, perl-ds, perl-stats, perl-module
  85. PreReq: perl-util, perl-ds, perl-stats, perl-module
  86. AutoReq: no
  87. AutoReqProv: no
  88. %description
  89. Various Perl modules for Date and Time handling:
  90. - Time::Date (%{V_time_date})
  91. - Time::HiRes (%{V_time_hires})
  92. - Time::Local (%{V_time_local})
  93. - Date::Manip (%{V_date_manip})
  94. - Date::Calc (%{V_date_calc})
  95. - Class::Date (%{V_class_date})
  96. - Benchmark::Timer (%{V_benchmark_timer})
  97. - Time::Modules (%{V_time_modules})
  98. - Time::TAI64 (%{V_time_tai64})
  99. - DateTime (%{V_datetime})
  100. - DateTime::Locale (%{V_datetime_locale})
  101. - DateTime::TimeZone (%{V_datetime_timezone})
  102. - DateTime::BusinessHours (%{V_datetime_businesshours})
  103. - DateTime::Format::Natural (%{V_datetime_format_natural})
  104. - DateTime::Format::Mail (%{V_datetime_format_mail})
  105. - DateTime::Format::HTTP (%{V_datetime_format_http})
  106. - DateTime::Format::W3CDTF (%{V_datetime_format_w3cdtf})
  107. - Time::Piece (%{V_time_piece})
  108. - Time::Duration (%{V_time_duration})
  109. - Time::Progress (%{V_time_progress})
  110. %track
  111. prog perl-time:Benchmark-Timer = {
  112. version = %{V_benchmark_timer}
  113. url = http://www.cpan.org/modules/by-module/Benchmark/
  114. regex = Benchmark-Timer-(__VER__)\.tar\.gz
  115. }
  116. prog perl-time:Class-Date = {
  117. version = %{V_class_date}
  118. url = http://www.cpan.org/modules/by-module/Class/
  119. regex = Class-Date-(__VER__)\.tar\.gz
  120. }
  121. prog perl-time:Date-Calc = {
  122. version = %{V_date_calc}
  123. url = http://www.cpan.org/modules/by-module/Date/
  124. regex = Date-Calc-(__VER__)\.tar\.gz
  125. }
  126. prog perl-time:DateManip = {
  127. version = %{V_date_manip}
  128. url = http://www.cpan.org/modules/by-module/Date/
  129. regex = Date-Manip-(__VER__)\.tar\.gz
  130. }
  131. prog perl-time:Time-modules = {
  132. version = %{V_time_modules}
  133. url = http://www.cpan.org/modules/by-module/Time/
  134. regex = Time-modules-(__VER__)\.tar\.gz
  135. }
  136. prog perl-time:Time-HiRes = {
  137. version = %{V_time_hires}
  138. url = http://www.cpan.org/modules/by-module/Time/
  139. regex = Time-HiRes-(__VER__)\.tar\.gz
  140. }
  141. prog perl-time:Time-Local = {
  142. version = %{V_time_local}
  143. url = http://www.cpan.org/modules/by-module/Time/
  144. regex = Time-Local-(__VER__)\.tar\.gz
  145. }
  146. prog perl-time:TimeDate = {
  147. version = %{V_time_date}
  148. url = http://www.cpan.org/modules/by-module/Time/
  149. regex = TimeDate-(__VER__)\.tar\.gz
  150. }
  151. prog perl-time:Time-TAI64 = {
  152. version = %{V_time_tai64}
  153. url = http://www.cpan.org/modules/by-module/Time/
  154. regex = Time-TAI64-(__VER__)\.tar\.gz
  155. }
  156. prog perl-time:DateTime = {
  157. version = %{V_datetime}
  158. url = http://www.cpan.org/modules/by-module/DateTime/
  159. regex = DateTime-(\d+\.\d\d\d\d)\.tar\.gz
  160. }
  161. prog perl-time:DateTime-Locale = {
  162. version = %{V_datetime_locale}
  163. url = http://www.cpan.org/modules/by-module/DateTime/
  164. regex = DateTime-Locale-(\d+\.\d\d)\.tar\.gz
  165. }
  166. prog perl-time:DateTime-TimeZone = {
  167. version = %{V_datetime_timezone}
  168. url = http://www.cpan.org/modules/by-module/DateTime/
  169. regex = DateTime-TimeZone-(\d+\.\d\d)\.tar\.gz
  170. }
  171. prog perl-time:DateTime-BusinessHours = {
  172. version = %{V_datetime_businesshours}
  173. url = http://www.cpan.org/modules/by-module/DateTime/
  174. regex = DateTime-BusinessHours-(__VER__)\.tar\.gz
  175. }
  176. prog perl-time:DateTime-Format-Natural = {
  177. version = %{V_datetime_format_natural}
  178. url = http://www.cpan.org/modules/by-module/DateTime/
  179. regex = DateTime-Format-Natural-(__VER__)\.tar\.gz
  180. }
  181. prog perl-time:DateTime-Format-Mail = {
  182. version = %{V_datetime_format_mail}
  183. url = http://www.cpan.org/modules/by-module/DateTime/
  184. regex = DateTime-Format-Mail-(__VER__)\.tar\.gz
  185. }
  186. prog perl-time:DateTime-Format-HTTP = {
  187. version = %{V_datetime_format_http}
  188. url = http://www.cpan.org/modules/by-module/DateTime/
  189. regex = DateTime-Format-HTTP-(__VER__)\.tar\.gz
  190. }
  191. prog perl-time:DateTime-Format-W3CDTF = {
  192. version = %{V_datetime_format_w3cdtf}
  193. url = http://www.cpan.org/modules/by-module/DateTime/
  194. regex = DateTime-Format-W3CDTF-(__VER__)\.tar\.gz
  195. }
  196. prog perl-time:Time-Piece = {
  197. version = %{V_time_piece}
  198. url = http://www.cpan.org/modules/by-module/Time/
  199. regex = Time-Piece-(__VER__)\.tar\.gz
  200. }
  201. prog perl-time:Time-Duration = {
  202. version = %{V_time_duration}
  203. url = http://www.cpan.org/modules/by-module/Time/
  204. regex = Time-Duration-(__VER__)\.tar\.gz
  205. }
  206. prog perl-time:Time-Progress = {
  207. version = %{V_time_progress}
  208. url = http://www.cpan.org/modules/by-module/Time/
  209. regex = Time-Progress-(__VER__)\.tar\.gz
  210. }
  211. %prep
  212. %setup -q -c
  213. %setup -q -T -D -a 1
  214. %setup -q -T -D -a 2
  215. %setup -q -T -D -a 3
  216. %setup -q -T -D -a 4
  217. %setup -q -T -D -a 5
  218. %setup -q -T -D -a 6
  219. %setup -q -T -D -a 7
  220. %setup -q -T -D -a 8
  221. %setup -q -T -D -a 9
  222. %setup -q -T -D -a 10
  223. %setup -q -T -D -a 11
  224. %setup -q -T -D -a 12
  225. %setup -q -T -D -a 13
  226. %setup -q -T -D -a 14
  227. %setup -q -T -D -a 15
  228. %setup -q -T -D -a 16
  229. %setup -q -T -D -a 17
  230. %setup -q -T -D -a 18
  231. %setup -q -T -D -a 19
  232. %patch -p0
  233. %build
  234. %install
  235. rm -rf $RPM_BUILD_ROOT
  236. %{l_prefix}/bin/perl-openpkg prepare
  237. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  238. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  239. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  240. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  241. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  242. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  243. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  244. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  245. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  246. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  247. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  248. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  249. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  250. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  251. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  252. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  253. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  254. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  255. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  256. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  257. # FIXME: remove the Date::Calc conflict files
  258. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  259. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  260. %files -f files
  261. %clean
  262. rm -rf $RPM_BUILD_ROOT