perl-DateTime-Locale-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Name: perl-DateTime-Locale
  2. Version: 0.45
  3. Release: 2%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: perl >= 0:5.006
  15. BuildRequires: perl(List::MoreUtils)
  16. BuildRequires: perl(Module::Build)
  17. BuildRequires: perl(Params::Validate) >= 0.91
  18. BuildRequires: perl(Test::More)
  19. BuildRequires: perl(Test::Output)
  20. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  21. # perl-DateTime-Locale used to be bundled with perl-DateTime
  22. # ideally, this would be resolved with
  23. # Requires: perl-DateTime >= 2:0.70-1
  24. # but DateTime::Locale doesn't strictly require DateTime
  25. # and this would introduce circular build dependencies
  26. Conflicts: perl-DateTime <= 1:0.7000-3.fc16
  27. %{?perl_default_filter}
  28. %description
  29. DateTime::Locale is primarily a factory for the various locale sub-classes.
  30. It also provides some functions for getting information on all the
  31. available locales.
  32. %prep
  33. %setup -q -n DateTime-Locale-%{version}
  34. iconv -f iso-8859-1 -t utf-8 Changes >Changes.iconv \
  35. && touch -r Changes Changes.iconv \
  36. && mv -f Changes.iconv Changes
  37. %build
  38. %{__perl} Build.PL installdirs=vendor
  39. ./Build
  40. %install
  41. rm -rf %{buildroot}
  42. ./Build install destdir=%{buildroot} create_packlist=0
  43. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  44. %{_fixperms} %{buildroot}/*
  45. %check
  46. ./Build test
  47. %clean
  48. rm -rf %{buildroot}
  49. %files
  50. %doc Changes LICENSE LICENSE.cldr README
  51. %{perl_vendorlib}/*
  52. %{_mandir}/man3/*
  53. %changelog
  54. * Wed Dec 17 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.45-2
  55. - rebuilt with perl 5.16.3
  56. * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.45-1
  57. - initial build for Vine Linux
  58. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.45-2
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  60. * Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 0.45-1
  61. - Specfile autogenerated by cpanspec 1.78.