perl-MIME-Lite-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Name: perl-MIME-Lite
  2. Version: 3.028
  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. * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.028-1
  51. - updated to 3.028
  52. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.01-6
  53. - rebuild with perl-5.12.3
  54. * Tue Nov 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.01-5vl1
  55. - Initial build for Vine Linux
  56. * Sun Sep 10 2006 Mike McGrath <imlinux@gmail.com> 3.01-5
  57. - Rebuild
  58. * Thu Mar 30 2006 Mike McGrath <imlinux@gmail.com> 3.01-4
  59. - New maintainer
  60. * Thu Jun 23 2005 Ralf Corsepius <ralf@links2linux.de> 3.01-3
  61. - Add %%{dist}.
  62. * Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 3.01-2
  63. - Review suggestions from José Pedro Oliveira
  64. * Fri Mar 18 2005 Hunter Matthews <thm@duke.edu> 3.01-1
  65. - Initial packageing.