mailx-vl.spec 6.5 KB

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