perl-MIME-Lite-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Name: perl-MIME-Lite
  2. Version: 3.030
  3. Release: 1%{?_dist_release}
  4. Summary: MIME::Lite - low-calorie MIME generator
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/MIME-Lite/
  8. Source0: http://www.cpan.org/authors/id/Y/YV/YVES/MIME-Lite-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl >= 1:5.6.1
  12. BuildRequires: perl(Carp)
  13. BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More)
  14. BuildRequires: perl(Email::Date::Format) perl(Mail::Address)
  15. BuildRequires: perl(File::Spec)
  16. BuildRequires: perl(MIME::Types) >= 1.28
  17. # Tests
  18. BuildRequires: perl(Test::More)
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. # not detected by automated find-requires:
  21. Requires: perl(Email::Date::Format)
  22. Requires: perl(MIME::Types) >= 1.28
  23. %description
  24. MIME::Lite is intended as a simple, standalone module for generating (not
  25. parsing!) MIME messages... specifically, it allows you to output a simple,
  26. decent single- or multi-part message with text or binaryattachments. It does
  27. not require that you have the Mail:: or MIME:: modules installed.
  28. %prep
  29. %setup -q -n MIME-Lite-%{version}
  30. sed -i 's/\r//' examples/*
  31. sed -i 's/\r//' contrib/README
  32. %build
  33. %{__perl} Makefile.PL INSTALLDIRS=vendor
  34. make %{?_smp_mflags}
  35. %install
  36. rm -rf %{buildroot}
  37. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  38. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  39. find %{buildroot} -depth -type d -empty -exec rmdir ';'
  40. %check
  41. make test
  42. %clean
  43. rm -rf %{buildroot}
  44. %files
  45. %defattr(-,root,root,-)
  46. %doc changes.pod README examples contrib COPYING LICENSE
  47. %{perl_vendorlib}/*
  48. %{_mandir}/man3/*.3*
  49. %changelog
  50. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 3.030-1
  51. - update to 3.030
  52. * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.028-1
  53. - updated to 3.028
  54. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.01-6
  55. - rebuild with perl-5.12.3
  56. * Tue Nov 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.01-5vl1
  57. - Initial build for Vine Linux
  58. * Sun Sep 10 2006 Mike McGrath <imlinux@gmail.com> 3.01-5
  59. - Rebuild
  60. * Thu Mar 30 2006 Mike McGrath <imlinux@gmail.com> 3.01-4
  61. - New maintainer
  62. * Thu Jun 23 2005 Ralf Corsepius <ralf@links2linux.de> 3.01-3
  63. - Add %%{dist}.
  64. * Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 3.01-2
  65. - Review suggestions from José Pedro Oliveira
  66. * Fri Mar 18 2005 Hunter Matthews <thm@duke.edu> 3.01-1
  67. - Initial packageing.