perl-DateTime-TimeZone-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. %global perl_bootstrap 1
  2. Name: perl-DateTime-TimeZone
  3. Version: 1.81
  4. Release: 1%{?_dist_release}
  5. Summary: Time zone object base class and factory
  6. License: Artistic License 2.0
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/DateTime-TimeZone/
  9. Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Class::Load)
  13. BuildRequires: perl(Class::Singleton) >= 1.03
  14. BuildRequires: perl(constant)
  15. BuildRequires: perl(Cwd) >= 3
  16. BuildRequires: perl(ExtUtils::MakeMaker)
  17. BuildRequires: perl(File::Compare)
  18. BuildRequires: perl(File::Spec)
  19. BuildRequires: perl(List::AllUtils)
  20. BuildRequires: perl(List::Util)
  21. BuildRequires: perl(Params::Validate) >= 0.72
  22. BuildRequires: perl(parent)
  23. BuildRequires: perl(Pod::Man) >= 1.14
  24. BuildRequires: perl(Test::Fatal)
  25. BuildRequires: perl(Test::More) >= 0.88
  26. BuildRequires: perl(Test::Output)
  27. BuildRequires: perl(Test::Requires)
  28. # not automatically detected
  29. Requires: perl(Cwd) >= 3
  30. Requires: perl(File::Compare)
  31. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  32. %{?filter_setup:
  33. %filter_from_requires /^perl(Win32/d
  34. %if 0%{?perl_bootstrap}
  35. %filter_from_requires /^perl(DateTime\(::Duration\)?)/d
  36. %endif
  37. %?perl_default_filter}
  38. %if 0%{?perl_bootstrap}
  39. # perl-DateTime-TimeZone used to be bundled with perl-DateTime
  40. # when bootstrapping, we can't require the unbundled version, so
  41. # need to conflict with the old package
  42. Conflicts: perl-DateTime <= 1:0.7000-3
  43. %else
  44. # explicitly require the unbundled perl-DateTime to avoid implicit conflicts
  45. Requires: perl-DateTime >= 2:0.70-1
  46. # and BR perl(DateTime) to enable testing
  47. BuildRequires: perl(DateTime)
  48. %endif
  49. %description
  50. This class is the base class for all time zone objects. A time zone is
  51. represented internally as a set of observances, each of which describes the
  52. offset from GMT for a given time period.
  53. %prep
  54. %setup -q -n DateTime-TimeZone-%{version}
  55. %if "%{_dist_release}" > "vl6"
  56. %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Win32
  57. %if 0%{?perl_bootstrap}
  58. # avoid circular dependencies - DateTime strictly requires DateTime::TimeZone
  59. %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\)
  60. %global __requires_exclude %{__requires_exclude}|perl\\(DateTime::Duration\\)
  61. %endif
  62. %else
  63. cat << \EOF > %{name}-req
  64. #!/bin/sh
  65. %{__perl_requires} $* |\
  66. sed -e '/perl(Win32/d' |\
  67. EOF
  68. %if 0%{?perl_bootstrap}
  69. cat << \EOF >> %{name}-req
  70. sed -e '/perl(DateTime)/d' |\
  71. sed -e '/perl(DateTime::Duration)/d'
  72. EOF
  73. %endif
  74. %global __perl_requires %{_builddir}/DateTime-TimeZone-%{version}/%{name}-req
  75. chmod +x %{__perl_requires}
  76. %endif
  77. %build
  78. %{__perl} Makefile.PL INSTALLDIRS=vendor
  79. make %{?_smp_mflags}
  80. %install
  81. make pure_install DESTDIR=%{buildroot}
  82. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  83. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  84. %{_fixperms} %{buildroot}/*
  85. %check
  86. make test
  87. %files
  88. %doc Changes LICENSE README.md
  89. %{perl_vendorlib}/*
  90. %{_mandir}/man3/*
  91. %changelog
  92. * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.81-1
  93. - updated to 1.81
  94. - added BR: perl(List::AllUtils), perl(Test::Fatal) and perl(Test::Requires)
  95. - built with perl 5.16.3 (bootstrap)
  96. * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.45-2
  97. - now without bootstrapping
  98. * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.45-1
  99. - initial build for Vine Linux (bootstrap)
  100. * Sun Mar 04 2012 Iain Arnell <iarnell@gmail.com> 1.45-1
  101. - update to latest upstream version
  102. * Fri Mar 02 2012 Iain Arnell <iarnell@gmail.com> 1.44-1
  103. - update to latest upstream version - Olson 2012b
  104. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-2
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  106. * Wed Nov 09 2011 Iain Arnell <iarnell@gmail.com> 1.42-1
  107. - update to latest upstream - Olson 2011n
  108. * Tue Oct 25 2011 Iain Arnell <iarnell@gmail.com> 1.41-1
  109. - update to latest upstream - Olson 2011m
  110. * Tue Oct 11 2011 Iain Arnell <iarnell@gmail.com> 1.40-1
  111. - update to latest upstream - Olson 2011l
  112. * Tue Sep 27 2011 Iain Arnell <iarnell@gmail.com> 1.39-1
  113. - update to latest upstream - Olson 2011k
  114. * Wed Sep 14 2011 Iain Arnell <iarnell@gmail.com> 1.37-1
  115. - update to latest upstream - Olson 2011j
  116. * Tue Aug 30 2011 Iain Arnell <iarnell@gmail.com> 1.36-1
  117. - update to latest upstream - Olson 2011i
  118. * Thu Aug 18 2011 Iain Arnell <iarnell@gmail.com> 1.35-3
  119. - rebuild against unbunled perl-DateTime
  120. * Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 1.35-2
  121. - additional explicit (build)requires for core modules
  122. * Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 1.35-1
  123. - Specfile autogenerated by cpanspec 1.78.
  124. - Add bootstrapping logic