dma-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %define ver 0.11
  2. %define rel 1
  3. Summary: a small Mail Transport Agent (MTA)
  4. Summary(ja): 小さなメール転送エージェント(MTA)
  5. Name: dma
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: https://github.com/corecode/dma/archive/v%{ver}.tar.gz#/%{name}-%{version}.tar.gz
  9. Source1: dma-aliases
  10. Patch0: dma-0.10_owners.patch
  11. License: BSD
  12. Group: System Environment/Daemons
  13. Provides: smtpdaemon
  14. URL: https://github.com/corecode/dma/
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: byacc
  17. BuildRequires: flex
  18. BuildRequires: openssl-devel
  19. Conflicts: postfix sendmail exim
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: iwaim
  23. %description
  24. dma (DragonFly Mail Agent) is a small Mail Transport Agent (MTA), designed
  25. for home and office use. It accepts mails from locally installed
  26. Mail User Agents (MUA) and delivers the mails either locally or to
  27. a remote destination.
  28. Remote delivery includes several features like TLS/SSL support and
  29. SMTP authentication.
  30. dma is not intended as a replacement for real, big MTAs like sendmail(8)
  31. or postfix(1). Consequently, dma does not listen on port 25 for
  32. incoming connections.
  33. %prep
  34. %setup -q
  35. %patch0 -p1
  36. %build
  37. %{__make} %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC=%{_libexecdir} \
  38. CONFDIR=%{_sysconfdir}/dma MAN=%{_mandir} VAR=%{_var}
  39. %install
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %{__make} install sendmail-link mailq-link install-spool-dirs install-etc \
  42. DESTDIR=${RPM_BUILD_ROOT} PREFIX=%{_prefix} LIBEXEC=%{_libexecdir} \
  43. CONFDIR=%{_sysconfdir}/dma MAN=%{_mandir} VAR=%{_var}
  44. %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/aliases
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %files
  48. %defattr(-,root,root)
  49. %doc LICENSE README.* TODO
  50. %attr(-,root,mail) %{_sbindir}/dma
  51. %{_sbindir}/mailq
  52. %{_sbindir}/sendmail
  53. %attr(-,root,mail) %{_libexecdir}/dma-mbox-create
  54. %dir %{_sysconfdir}/dma
  55. %attr(-,root,mail) %config(noreplace) %{_sysconfdir}/dma/auth.conf
  56. %attr(-,root,mail) %config(noreplace) %{_sysconfdir}/dma/dma.conf
  57. %config(noreplace) %{_sysconfdir}/aliases
  58. %{_mandir}/man8/dma.8*
  59. %attr(-,root,mail) %dir %{_var}/spool/dma
  60. %changelog
  61. * Fri Apr 29 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.11-1
  62. - update to 0.11
  63. * Sun Dec 27 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.10-1
  64. - initial build for Vine Linux