mailx-vl.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. Summary: The /bin/mail program, which is used to send mail via shell scripts.
  2. Summary(ja): シェルスクリプトからメールを送る /bin/mail プログラム
  3. Name: mailx
  4. Version: 8.1.2.20180807
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source: http://deb.debian.org/debian/pool/main/b/bsd-mailx/bsd-mailx_8.1.2-0.20180807cvs.orig.tar.xz
  9. Patch0: 00-Makefiles.patch
  10. Patch1: 01-Fix-includes.patch
  11. Patch2: 02-Base-fixes-1.patch
  12. Patch3: 03-Base-fixes-2.patch
  13. Patch4: 04-Add-custom-header.patch
  14. Patch5: 05-Mailx-fixes.patch
  15. Patch6: 06-Use-lockf-instead-of-flock.patch
  16. Patch7: 07-Initialize-head-struct.patch
  17. Patch8: 08-Use-liblockfile-library.patch
  18. Patch9: 09-Saved-mbox-message.patch
  19. Patch10: 10-Reply-To-header.patch
  20. Patch11: 11-Showname-option.patch
  21. Patch12: 12-REPLYTO-can-be-set-in-.mailrc-too.patch
  22. Patch13: 13-Mailx-concatenates-messages.patch
  23. Patch14: 14-Truncate-mailbox-instead-of-deleting-it.patch
  24. Patch15: 15-No-space-left-in-tmp.patch
  25. Patch16: 16-Stdin-not-a-tty.patch
  26. Patch18: 18-Wait-for-sendmail.patch
  27. Patch19: 19-Fix-compilation-on-Hurd.patch
  28. Patch20: 20-Don-t-delete-temporary-file.patch
  29. Patch21: 21-Use-wordexpr-instead-of-echo.patch
  30. Patch22: 22-Replace-newlines-with-spaces.patch
  31. Patch24: 24-False-cant-send-email-errors.patch
  32. Patch25: 25-Fix-confusing-error.patch
  33. Patch26: 26-Add-missing-include.patch
  34. Patch27: 27-Use-FOPEN_MAX.patch
  35. Patch28: 28-Fix-gcc-warning.patch
  36. Patch29: 29-Document-two-dashes-separator.patch
  37. Patch30: 30-Add-missing-includes.patch
  38. Patch31: 31-Do-not-call-pledge.patch
  39. Patch32: 32-Fix-FTBFS-on-Hurd.patch
  40. Patch33: 33-Add-MIME-headers.patch
  41. Patch34: 34-Fix-strnvis.patch
  42. Patch35: 35-Fix-new-warnings-and-error.patch
  43. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  44. BuildRequires: libbsd-devel
  45. BuildRequires: liblockfile-devel
  46. Vendor: Project Vine
  47. Distribution: Vine Linux
  48. %description
  49. The mailx package installs the /bin/mail program, which is used to
  50. send quick email messages (i.e., without opening up a full-featured
  51. mail user agent). Mail is often used in shell scripts.
  52. You should install mailx because of its quick email sending ability,
  53. which is especially useful if you're planning on writing any shell
  54. scripts.
  55. %description -l ja
  56. mailx パッケージは /bin/mail プログラムをインストールします.
  57. /bin/mail は,多機能のメールクライアントを起動すること無く迅速に
  58. メールを送信するのに使われます./bin/mail はシェルスクリプトから
  59. よく使われています.
  60. メール送信が関係するシェルスクリプト作成を検討しているのならば,
  61. 迅速なメール送信機能を備えた mailx パッケージを是非インストールして下さい.
  62. %prep
  63. %setup -q -n bsd-mailx-8.1.2-0.20180807cvs.orig
  64. %autopatch -p1
  65. %build
  66. make CFLAGS="%{optflags} -D_GNU_SOURCE -DDEBIAN"
  67. %install
  68. rm -rf %{buildroot}
  69. mkdir -p %{buildroot}/{bin,etc}
  70. mkdir -p %{buildroot}%{_bindir}
  71. mkdir -p %{buildroot}%{_datadir}/bsd-mailx
  72. mkdir -p %{buildroot}%{_mandir}/man1
  73. make DESTDIR=%{buildroot} bindir=%{_bindir} mandir=%{_mandir} install
  74. ( cd %{buildroot}
  75. mv -f .%{_bindir}/bsd-mailx ./bin/mail
  76. chmod g-s ./bin/mail
  77. ln -sf ../../bin/mail .%{_bindir}/Mail
  78. ln -sf mail.1 .%{_mandir}/man1/Mail.1
  79. mv -f .%{_mandir}/man1/bsd-mailx.1 .%{_mandir}/man1/mail.1
  80. )
  81. %clean
  82. rm -rf %{buildroot}
  83. %files
  84. %defattr(-,root,root)
  85. %attr(755,root,mail) /bin/mail
  86. %{_bindir}/Mail
  87. %{_datadir}/bsd-mailx
  88. %config(noreplace) /etc/mail.rc
  89. %{_mandir}/man1/mail.1*
  90. %{_mandir}/man1/Mail.1*
  91. %changelog
  92. * Sat Mar 21 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.1.2.20180807cvs-1
  93. - updated to 8.1.2.20180807cvs.
  94. - dropped Source1.
  95. - dropped all patches.
  96. - imported patches from debian.
  97. * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.1.1-37
  98. - rebuild with VineSeed environment
  99. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 8.1.1-36
  100. - rebuilt with rpm-4.8.1-3
  101. * Sun Oct 18 2009 Shu KONNO <owa@bg.wakwak.com> 8.1.1-35
  102. - applied vine5 updates
  103. * Wed Sep 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-35
  104. - use %%{_prefix}/lib to build on x86_64
  105. * Tue Sep 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.1.1-34
  106. - man files in the wrong location - fixed.
  107. * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.1.1-33
  108. - applied new versioning policy
  109. - spec in UTF-8
  110. * Sat Sep 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-32vl2
  111. - rebuild to add gpg sign
  112. * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 8.1.1-32vl1
  113. - rebuilt with new toolchains
  114. - s/Copyright/License/
  115. - added Patch9--Patch15 from Fedora 8.1.1-32
  116. * Fri Aug 01 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  117. - fix include file order #101251
  118. * Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com>
  119. - clean up flock() usage -- LOCK_EX shouldn't work on read-only descriptors
  120. * Mon Aug 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  121. - patch to use fcntl() for locking instead of flock() (#15779)
  122. - patch to ignore ~/.mailrc if it's owned by anyone other than the owner of
  123. this process
  124. - clean up flock() emulation semantics
  125. * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
  126. - summaries from specspo.
  127. * Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com>
  128. - time to use sigsetjmp/siglongjmp (#14010).
  129. - avoid indexing on NOSTR valued pointer (#15728).
  130. - ignore MAIL enviromment variable when invoked with -u (#10074).
  131. - mailx-fio.patch dropped because it was merged Patch8
  132. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  133. - 8.1.1-16vl2
  134. - rebuilt for VineSeed, as well as adding Japanese summary/description
  135. - define %%{_mandir} on the top of this spec file :-P
  136. * Mon Sep 18 2000 Jun Nishii <jun@vinelinux.org>
  137. - added fio-patch to fix bug for `mail -f`
  138. * Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com>
  139. - disable security-prone variables-inherited-from-environment behavior
  140. - inherit only SHELL, DEAD, PAGER, LISTER, EDITOR, VISUAL, MBOX from environment
  141. - document the environment variables that are used
  142. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  143. - automatic rebuild
  144. * Wed Jun 21 2000 Preston Brown <pbrown@redhat.com>
  145. - noreplace mail.rc
  146. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  147. - FHS packaging.
  148. * Sun May 7 2000 Bill Nottingham <notting@redhat.com>
  149. - fix explosions on ia64
  150. * Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com>
  151. - Fix bug #8451
  152. - Fix bug #8100
  153. * Tue Aug 31 1999 Bill Nottingham <notting@redhat.com>
  154. - fix pathnames
  155. - take out makefile install crud
  156. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  157. - auto rebuild in the new build environment (release 8)
  158. * Thu Aug 27 1998 Alan Cox <alan@redhat.com>
  159. - Synchronized with the Debian people (more small edge case cures)
  160. * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
  161. - build root
  162. * Wed Jun 24 1998 Alan Cox <alan@redhat.com>
  163. - Switched dotlocking off. This fits the Red Hat model of not having setgid
  164. mail agents and fixes the "lock" problem reported.
  165. * Mon Jun 22 1998 Alan Cox <alan@redhat.com>
  166. - Buffer overrun patches. These dont bite us when we don't run mailx setgid
  167. but do want to be in as mailx needs to be setgid
  168. * Fri Jun 12 1998 Alan Cox <alan@redhat.com>
  169. - Moved from 5.5 to the OpenBSD 8.1 release plus Debian patches
  170. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  171. - translations modified for de, fr, tr
  172. * Tue Oct 21 1997 Donnie Barnes <djb@redhat.com>
  173. - spec file cleanups
  174. * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
  175. - built against glibc