mailx-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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.1
  5. Release: 37%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source: ftp://ftp.debian.org/pub/debian/hamm/source/mail/mailx-8.1.1.tar.gz
  9. Source1: flock.c
  10. Patch0: mailx-8.1.1.debian.patch
  11. Patch1: mailx-8.1.1.security.patch
  12. Patch2: mailx-8.1.1.nolock.patch
  13. Patch3: mailx-8.1.1.debian2.patch
  14. Patch4: mailx-noroot.patch
  15. Patch5: mailx-nopanic.patch
  16. Patch6: mailx-nullchar.patch
  17. Patch7: mailx-8.1.1-fhs.patch
  18. Patch8: mailx-8.1.1-environ.patch
  19. Patch9: mailx-8.1.1-siglj.patch
  20. Patch10: mailx-8.1.1-bug15728.patch
  21. Patch11: mailx-8.1.1-bug10074.patch
  22. Patch12: mailx-8.1.1-uidcheck.patch
  23. Patch13: mailx-8.1.1-flock.patch
  24. Patch14: mailx-8.1.1-nostrip.patch
  25. Patch15: mailx-8.1.1-ctime.patch
  26. # bug fix for environ patch for Vine Linux
  27. #Patch9: mailx-fio.patch
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. %description
  32. The mailx package installs the /bin/mail program, which is used to
  33. send quick email messages (i.e., without opening up a full-featured
  34. mail user agent). Mail is often used in shell scripts.
  35. You should install mailx because of its quick email sending ability,
  36. which is especially useful if you're planning on writing any shell
  37. scripts.
  38. %description -l ja
  39. mailx パッケージは /bin/mail プログラムをインストールします.
  40. /bin/mail は,多機能のメールクライアントを起動すること無く迅速に
  41. メールを送信するのに使われます./bin/mail はシェルスクリプトから
  42. よく使われています.
  43. メール送信が関係するシェルスクリプト作成を検討しているのならば,
  44. 迅速なメール送信機能を備えた mailx パッケージを是非インストールして下さい.
  45. %prep
  46. %setup -q
  47. cp %{SOURCE1} .
  48. %patch0 -p1 -b .debian
  49. %patch1 -p1 -b .security
  50. %patch2 -p1 -b .nolock
  51. %patch3 -p1 -b .debian2
  52. %patch4 -p1 -b .noroot
  53. %patch5 -p1 -b .nopanic
  54. %patch6 -p1 -b .nullchar
  55. %patch7 -p1 -b .fhs
  56. %patch8 -p1 -b .environ
  57. %patch9 -p1 -b .siglj
  58. %patch10 -p1 -b .bug15728
  59. %patch11 -p1 -b .bug10074
  60. %patch12 -p1 -b .uidcheck
  61. %patch13 -p1 -b .flock
  62. %patch14 -p1
  63. %patch15 -p1
  64. #%patch9 -p0 -b .fio
  65. %build
  66. make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
  67. %install
  68. rm -rf ${RPM_BUILD_ROOT}
  69. mkdir -p ${RPM_BUILD_ROOT}/{bin,etc}
  70. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  71. mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/lib
  72. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
  73. make DESTDIR=${RPM_BUILD_ROOT} bindir=%{_bindir} mandir=%{_mandir} install
  74. ( cd ${RPM_BUILD_ROOT}
  75. mv .%{_bindir}/mail ./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. )
  80. %clean
  81. rm -rf ${RPM_BUILD_ROOT}
  82. %files
  83. %defattr(-,root,root)
  84. %attr(755,root,mail) /bin/mail
  85. %{_bindir}/Mail
  86. %{_prefix}/lib/mail.help
  87. %{_prefix}/lib/mail.tildehelp
  88. %config(noreplace) /etc/mail.rc
  89. %{_mandir}/man1/mail.1*
  90. %{_mandir}/man1/Mail.1*
  91. %changelog
  92. * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.1.1-37
  93. - rebuild with VineSeed environment
  94. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 8.1.1-36
  95. - rebuilt with rpm-4.8.1-3
  96. * Sun Oct 18 2009 Shu KONNO <owa@bg.wakwak.com> 8.1.1-35
  97. - applied vine5 updates
  98. * Wed Sep 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-35
  99. - use %%{_prefix}/lib to build on x86_64
  100. * Tue Sep 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.1.1-34
  101. - man files in the wrong location - fixed.
  102. * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.1.1-33
  103. - applied new versioning policy
  104. - spec in UTF-8
  105. * Sat Sep 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-32vl2
  106. - rebuild to add gpg sign
  107. * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 8.1.1-32vl1
  108. - rebuilt with new toolchains
  109. - s/Copyright/License/
  110. - added Patch9--Patch15 from Fedora 8.1.1-32
  111. * Fri Aug 01 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  112. - fix include file order #101251
  113. * Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com>
  114. - clean up flock() usage -- LOCK_EX shouldn't work on read-only descriptors
  115. * Mon Aug 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  116. - patch to use fcntl() for locking instead of flock() (#15779)
  117. - patch to ignore ~/.mailrc if it's owned by anyone other than the owner of
  118. this process
  119. - clean up flock() emulation semantics
  120. * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
  121. - summaries from specspo.
  122. * Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com>
  123. - time to use sigsetjmp/siglongjmp (#14010).
  124. - avoid indexing on NOSTR valued pointer (#15728).
  125. - ignore MAIL enviromment variable when invoked with -u (#10074).
  126. - mailx-fio.patch dropped because it was merged Patch8
  127. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  128. - 8.1.1-16vl2
  129. - rebuilt for VineSeed, as well as adding Japanese summary/description
  130. - define %%{_mandir} on the top of this spec file :-P
  131. * Mon Sep 18 2000 Jun Nishii <jun@vinelinux.org>
  132. - added fio-patch to fix bug for `mail -f`
  133. * Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com>
  134. - disable security-prone variables-inherited-from-environment behavior
  135. - inherit only SHELL, DEAD, PAGER, LISTER, EDITOR, VISUAL, MBOX from environment
  136. - document the environment variables that are used
  137. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  138. - automatic rebuild
  139. * Wed Jun 21 2000 Preston Brown <pbrown@redhat.com>
  140. - noreplace mail.rc
  141. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  142. - FHS packaging.
  143. * Sun May 7 2000 Bill Nottingham <notting@redhat.com>
  144. - fix explosions on ia64
  145. * Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com>
  146. - Fix bug #8451
  147. - Fix bug #8100
  148. * Tue Aug 31 1999 Bill Nottingham <notting@redhat.com>
  149. - fix pathnames
  150. - take out makefile install crud
  151. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  152. - auto rebuild in the new build environment (release 8)
  153. * Thu Aug 27 1998 Alan Cox <alan@redhat.com>
  154. - Synchronized with the Debian people (more small edge case cures)
  155. * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
  156. - build root
  157. * Wed Jun 24 1998 Alan Cox <alan@redhat.com>
  158. - Switched dotlocking off. This fits the Red Hat model of not having setgid
  159. mail agents and fixes the "lock" problem reported.
  160. * Mon Jun 22 1998 Alan Cox <alan@redhat.com>
  161. - Buffer overrun patches. These dont bite us when we don't run mailx setgid
  162. but do want to be in as mailx needs to be setgid
  163. * Fri Jun 12 1998 Alan Cox <alan@redhat.com>
  164. - Moved from 5.5 to the OpenBSD 8.1 release plus Debian patches
  165. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  166. - translations modified for de, fr, tr
  167. * Tue Oct 21 1997 Donnie Barnes <djb@redhat.com>
  168. - spec file cleanups
  169. * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
  170. - built against glibc