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

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