perl-DateTime-Format-Mail-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. %define _version 0.401
  2. Name: perl-DateTime-Format-Mail
  3. Version: 0.4010
  4. Release: 1%{?_dist_release}
  5. Summary: Convert between DateTime and RFC2822/822 formats
  6. Group: Development/Libraries
  7. License: GPL+ or Artistic
  8. URL: http://search.cpan.org/dist/DateTime-Format-Mail
  9. Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Mail-%{_version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Carp)
  13. BuildRequires: perl(Class::ISA)
  14. BuildRequires: perl(DateTime) >= 0.18
  15. BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
  16. BuildRequires: perl(File::Find::Rule)
  17. BuildRequires: perl(Module::Build)
  18. BuildRequires: perl(Params::Validate)
  19. BuildRequires: perl(Pod::Coverage::TrustPod)
  20. BuildRequires: perl(Test::CPAN::Meta)
  21. BuildRequires: perl(Test::More) >= 0.88
  22. BuildRequires: perl(Test::Pod) >= 1.41
  23. BuildRequires: perl(Test::Pod::Coverage) >= 1.08
  24. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  25. %description
  26. RFCs 2822 and 822 specify date formats to be used by email. This module parses
  27. and emits such dates.
  28. RFC2822 (April 2001) introduces a slightly different format of date than that
  29. used by RFC822 (August 1982). The main correction is that the preferred format
  30. is more limited, and thus easier to parse programmatically.
  31. Despite the ease of generating and parsing perfectly valid RFC822 and RFC2822
  32. people still get it wrong. This module aims to correct that.
  33. %prep
  34. %setup -q -n DateTime-Format-Mail-%{_version}
  35. # POD doesn't like E<copy> very much...
  36. perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
  37. # DateTime >= 0.1705 plays havoc with rpm's versioning system
  38. #for X in lib/DateTime/Format/Mail.pm META.yml; do
  39. #sed -i -e 's/0\.1705/0.70/g' $X
  40. #done
  41. %build
  42. %{__perl} Makefile.PL INSTALLDIRS=vendor
  43. make %{?_smp_mflags}
  44. # American English, bitte
  45. #mv LICENCE LICENSE
  46. %install
  47. rm -rf %{buildroot}
  48. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  49. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  50. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  51. chmod -R u+w %{buildroot}/*
  52. %check
  53. # we don't have a SIGNATURE, regardless of perl(Test::Signature) being around
  54. #rm t/00signature.t
  55. make test
  56. %clean
  57. rm -rf %{buildroot}
  58. %files
  59. %defattr(-,root,root,-)
  60. %doc CREDITS Changes LICENSE README
  61. %doc t/sample_dates t/invalid.t
  62. %{perl_vendorlib}/*
  63. %{_mandir}/man3/*.3*
  64. %changelog
  65. * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.4010-1
  66. - new upstream release
  67. - built with perl 5.16.3
  68. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3001-1
  69. - initial build for Vine Linux
  70. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-13
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  72. * Wed Jul 20 2011 Iain Arnell <iarnell@gmail.com> - 0.3001-12
  73. - update filtering macros for rpm 4.9
  74. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.3001-11
  75. - Perl mass rebuild
  76. * Mon Feb 14 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.3001-10
  77. - Switch to using perl-filters/Abandon filter-requires.sh
  78. (Work around mass rebuild breakdown).
  79. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-9
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  81. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.3001-8
  82. - 661697 rebuild for fixing problems with vendorach/lib
  83. * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.3001-7
  84. - Mass rebuild with perl-5.12.0
  85. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.3001-6
  86. - rebuild against perl 5.10.1
  87. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-5
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  89. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3001-4
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  91. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3001-3
  92. - Rebuild for perl 5.10 (again)
  93. * Fri Jan 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.3001-2
  94. - no more notes/ directory
  95. * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.3001-1
  96. - 0.3001
  97. - fix license tag
  98. - rebuild against new perl
  99. * Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-4
  100. - bump for mass rebuild
  101. * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-3
  102. - bump for build and release
  103. * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-2
  104. - add missing br: perl(File::Find::Rule)
  105. - additional files from the test suite added to %%doc
  106. * Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.30-1
  107. - Initial spec file for F-E