perl-DateTime-Locale-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Name: perl-DateTime-Locale
  2. Version: 0.45
  3. Release: 1%{?_dist_release}
  4. Summary: Localization support for DateTime.pm
  5. # package itself is 'same terms as Perl'
  6. # modules under DateTime/Locale/ are generated from data provided by the CLDR project
  7. # tools/t/test-data contains CLDR data files under MIT license
  8. License: (GPL+ or Artistic) and MIT
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/dist/DateTime-Locale/
  11. Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-%{version}.tar.gz
  12. BuildArch: noarch
  13. BuildRequires: perl >= 0:5.006
  14. BuildRequires: perl(List::MoreUtils)
  15. BuildRequires: perl(Module::Build)
  16. BuildRequires: perl(Params::Validate) >= 0.91
  17. BuildRequires: perl(Test::More)
  18. BuildRequires: perl(Test::Output)
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. # perl-DateTime-Locale used to be bundled with perl-DateTime
  21. # ideally, this would be resolved with
  22. # Requires: perl-DateTime >= 2:0.70-1
  23. # but DateTime::Locale doesn't strictly require DateTime
  24. # and this would introduce circular build dependencies
  25. Conflicts: perl-DateTime <= 1:0.7000-3.fc16
  26. %{?perl_default_filter}
  27. %description
  28. DateTime::Locale is primarily a factory for the various locale sub-classes.
  29. It also provides some functions for getting information on all the
  30. available locales.
  31. %prep
  32. %setup -q -n DateTime-Locale-%{version}
  33. iconv -f iso-8859-1 -t utf-8 Changes >Changes.iconv \
  34. && touch -r Changes Changes.iconv \
  35. && mv -f Changes.iconv Changes
  36. %build
  37. %{__perl} Build.PL installdirs=vendor
  38. ./Build
  39. %install
  40. rm -rf %{buildroot}
  41. ./Build install destdir=%{buildroot} create_packlist=0
  42. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  43. %{_fixperms} %{buildroot}/*
  44. %check
  45. ./Build test
  46. %clean
  47. rm -rf %{buildroot}
  48. %files
  49. %doc Changes LICENSE LICENSE.cldr README
  50. %{perl_vendorlib}/*
  51. %{_mandir}/man3/*
  52. %changelog
  53. * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.45-1
  54. - initial build for Vine Linux
  55. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.45-2
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  57. * Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 0.45-1
  58. - Specfile autogenerated by cpanspec 1.78.