mailutils-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. %ifarch x86_64
  2. %bcond_without doc
  3. %else
  4. %bcond_with doc
  5. %endif
  6. Name: mailutils
  7. Summary: GNU Mailutils: General-Purpose Mail Package
  8. Summary(ja): GNU Mailutils: 汎用メールユーティリティパッケージ
  9. Version: 3.19
  10. Release: 1%{_dist_release}
  11. Group: internet
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. License: GPL3+
  15. URL: https://mailutils.org/
  16. Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  17. BuildRequires: bzip2-devel
  18. BuildRequires: flex
  19. BuildRequires: gdbm-devel
  20. BuildRequires: gnutls-devel
  21. BuildRequires: info
  22. BuildRequires: libgcrypt-devel
  23. BuildRequires: libunistring-devel
  24. BuildRequires: libtool-ltdl-devel
  25. BuildRequires: openldap-devel
  26. BuildRequires: pam-devel
  27. BuildRequires: perl
  28. BuildRequires: readline-devel
  29. BuildRequires: pkgconfig(zlib)
  30. Requires: mailutils-libs = %{version}-%{release}
  31. %global mailx_version 8.1.2.20180807-2
  32. Conflicts: mailx < %{mailx_version}
  33. Obsoletes: mailx < %{mailx_version}
  34. Provides: mailx = %{mailx_version}
  35. Provides: config(mailx) = %{mailx_version}
  36. Provides: /bin/mail
  37. %description
  38. GNU Mailutils is a rich and powerful protocol-independent mail
  39. framework. It contains a series of useful mail libraries, clients,
  40. and servers. These are the primary mail utilities for the GNU system.
  41. The central library is capable of handling electronic mail in various
  42. mailbox formats and protocols, both local and remote. Specifically,
  43. this project contains a POP3 server, an IMAP4 server, and a Sieve mail
  44. filter. It also provides a POSIX `mailx' client, and a collection of
  45. other handy tools.
  46. %package libs
  47. Summary: GNU Mailutils: mailbox access library.
  48. Group: system
  49. License: LGPL3+
  50. %description libs
  51. The runtime library libmailbox contains various mailbox access
  52. routines and support for a number of mailbox types, such as mbox,
  53. maildir, mh, POP3, and IMAP4. It also supports MIME message
  54. handling, and sending mail via SMTP and /sbin/sendmail.
  55. %package devel
  56. Summary: GNU Mailutils: mailbox access development.
  57. Group: programming
  58. License: LGPL3+
  59. Requires: mailutils-libs = %{version}-%{release}
  60. %description devel
  61. GNU Mailutils: mailbox access development.
  62. %package mh
  63. Summary: GNU Mailutils: The Message Handling System.
  64. Group: internet
  65. License: GPL3+
  66. Requires: mailutils-libs = %{version}-%{release}
  67. %description mh
  68. The GNU MH (Message Handling System).
  69. %if %{with doc}
  70. %package doc
  71. Summary: GNU Mailutils: documentation.
  72. Group: documentation
  73. License: GFDL-1.2
  74. BuildArch: noarch
  75. %description doc
  76. API reference for libmailbox and user documentation for the rest of
  77. the GNU Mailutils.
  78. %endif
  79. %debug_package
  80. %prep
  81. %setup -q
  82. if [ %version = 3.12 ]; then
  83. echo "#endif" >> include/mailutils/sys/streamtrans.h
  84. fi
  85. %build
  86. autoreconf -fiv
  87. export CFLAGS="%{optflags} -std=gnu17 -Wno-format-security"
  88. %configure \
  89. --disable-static \
  90. --disable-rpath \
  91. --enable-ipv6 \
  92. --with-mail-spool=/var/spool/mail \
  93. --with-mh-bindir=%{_libexecdir}/mu-mh \
  94. --disable-build-pop3d \
  95. --disable-build-imap4d \
  96. --disable-build-comsat \
  97. --disable-build-mda \
  98. --disable-build-lmtpd \
  99. --disable-build-putmail \
  100. --disable-build-sieve \
  101. --without-guile \
  102. --disable-python \
  103. %{nil}
  104. # SMP-incompatible build.
  105. make V=1
  106. %install
  107. %make_install
  108. install -d %{buildroot}/bin
  109. mv -f %{buildroot}%{_bindir}/mail %{buildroot}/bin/
  110. ln -s ./mail %{buildroot}/bin/Mail
  111. ln -s ./mail %{buildroot}/bin/mailx
  112. ln -s ../../bin/mail %{buildroot}%{_bindir}/mail
  113. ln -s ../../bin/mail %{buildroot}%{_bindir}/Mail
  114. ln -s ../../bin/mail %{buildroot}%{_bindir}/mailx
  115. %find_lang %name
  116. # unshipped files
  117. find %{buildroot}%{_libdir} -name "*.la" -delete
  118. rm -f %{buildroot}%{_mandir}/man1/{imap4d,pop3d,popauth}.1*
  119. rm -f %{buildroot}%{_infodir}/dir
  120. # x86_64 only (noarch)
  121. %if !%{with doc}
  122. rm -rf %{buildroot}%{_infodir}
  123. %endif
  124. %check
  125. #make check MH=/dev/null || { cat mh/tests/testsuite.log; exit 1; }
  126. make check
  127. %files -f %name.lang
  128. %license COPYING*
  129. %doc AUTHORS THANKS NEWS README* TODO ChangeLog
  130. /bin/Mail
  131. /bin/mail
  132. /bin/mailx
  133. %{_bindir}/mailutils
  134. %{_bindir}/dotlock
  135. %{_bindir}/frm
  136. %{_bindir}/from
  137. %{_bindir}/Mail
  138. %{_bindir}/mail
  139. %{_bindir}/mailx
  140. %{_bindir}/messages
  141. %{_bindir}/mimeview
  142. %{_bindir}/movemail
  143. %{_bindir}/readmsg
  144. %{_bindir}/decodemail
  145. %{_mandir}/*/mail*
  146. %dir %{_libexecdir}/mailutils
  147. %{_libexecdir}/mailutils/*
  148. %dir %{_datadir}/%{name}
  149. %files libs
  150. %dir %{_libdir}/mailutils
  151. %{_libdir}/mailutils/*.so
  152. %{_libdir}/*.so.*
  153. %files mh
  154. %dir %{_libexecdir}/mu-mh
  155. %{_libexecdir}/mu-mh/*
  156. %dir %{_datadir}/%{name}
  157. %{_datadir}/%{name}/mh
  158. %files devel
  159. %{_bindir}/mailutils-config
  160. %{_includedir}/mailutils
  161. %{_libdir}/*.so
  162. %{_datadir}/aclocal/mailutils.m4
  163. %if %{with doc}
  164. %files doc
  165. %{_infodir}/*
  166. %endif
  167. %changelog
  168. * Fri Jun 13 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.19-1
  169. - new upstream release.
  170. * Mon Jun 17 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.17-1
  171. - new upstream release.
  172. * Fri Nov 18 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.15-1
  173. - new upstream release.
  174. * Fri Jan 14 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.14-1
  175. - new upstream release.
  176. - dropped install-info scriptlets.
  177. * Fri Aug 06 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.13-1
  178. - new upstream release.
  179. * Thu Mar 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.12-1
  180. - initial build for Vine Linux.