perl-Mail-Sender-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. %define pkgname Mail-Sender
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.903
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/J/JE/JENDA/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: Mail::Sender - module for sending mails with attachments through an SMTP server
  15. Summary(ja): Mail::Sender - SMTP サーバー経由で添付ファイル付メールを送信するためのモジュール
  16. # Dependency
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. BuildRequires: perl
  20. %description
  21. Mail::Sender provides an object oriented interface to sending mails. It
  22. doesn't need any outer program. It connects to a mail server directly from
  23. Perl, using Socket.
  24. %description -l ja
  25. Mail::Sender は、メール送信のためのオブジェクト指向インターフェースを提供し
  26. ます。他の外部プログラムは必要ありません。ソケットを使って Perl から直接、
  27. メールサーバーへ接続します。
  28. %prep
  29. %setup -q -n %{pkgname}-%{version}
  30. %build
  31. perl Makefile.PL
  32. %{__make} << EOM
  33. n
  34. EOM
  35. %install
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  38. # Remove the Win32 module in order to avoid requiring perl(Win32API::Registry)
  39. # This idea is from fedora.
  40. find $RPM_BUILD_ROOT -type f -name Win32.pm -exec rm -f {} ';'
  41. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  42. sed "s@^$RPM_BUILD_ROOT@@g" |
  43. grep -v ^%{_mandir} |
  44. grep -v perllocal.pod |
  45. grep -v "\.packlist" > %{name}.files
  46. if [ "$(cat %{name}.files)X" = "X" ] ; then
  47. echo "ERROR: EMPTY FILE LIST"
  48. exit -1
  49. fi
  50. # remove unnecessary files.
  51. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  52. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Mail/Sender/.packlist
  53. %clean
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %files -f %{name}.files
  56. %defattr(-,root,root)
  57. %doc Changes README
  58. %{_mandir}/man*/*
  59. %changelog
  60. * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.903-1
  61. - new upstream release.
  62. - rebuilt with perl-5.26.
  63. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.8.21-1
  64. - update to 0.8.21
  65. * Wed Jan 25 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.8.16-1
  66. - initial build for Vine Linux