perl-MIME-Lite-vl.spec 2.7 KB

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