perl-DateTime-TimeZone-vl.spec 4.4 KB

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