mailx-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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: 36%{?_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 Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 8.1.1-36
  91. - rebuilt with rpm-4.8.1-3
  92. * Sun Oct 18 2009 Shu KONNO <owa@bg.wakwak.com> 8.1.1-35
  93. - applied vine5 updates
  94. * Wed Sep 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-35
  95. - use %%{_prefix}/lib to build on x86_64
  96. * Tue Sep 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.1.1-34
  97. - man files in the wrong location - fixed.
  98. * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.1.1-33
  99. - applied new versioning policy
  100. - spec in UTF-8
  101. * Sat Sep 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 8.1.1-32vl2
  102. - rebuild to add gpg sign
  103. * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 8.1.1-32vl1
  104. - rebuilt with new toolchains
  105. - s/Copyright/License/
  106. - added Patch9--Patch15 from Fedora 8.1.1-32
  107. * Fri Aug 01 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  108. - fix include file order #101251
  109. * Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com>
  110. - clean up flock() usage -- LOCK_EX shouldn't work on read-only descriptors
  111. * Mon Aug 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  112. - patch to use fcntl() for locking instead of flock() (#15779)
  113. - patch to ignore ~/.mailrc if it's owned by anyone other than the owner of
  114. this process
  115. - clean up flock() emulation semantics
  116. * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
  117. - summaries from specspo.
  118. * Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com>
  119. - time to use sigsetjmp/siglongjmp (#14010).
  120. - avoid indexing on NOSTR valued pointer (#15728).
  121. - ignore MAIL enviromment variable when invoked with -u (#10074).
  122. - mailx-fio.patch dropped because it was merged Patch8
  123. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  124. - 8.1.1-16vl2
  125. - rebuilt for VineSeed, as well as adding Japanese summary/description
  126. - define %%{_mandir} on the top of this spec file :-P
  127. * Mon Sep 18 2000 Jun Nishii <jun@vinelinux.org>
  128. - added fio-patch to fix bug for `mail -f`
  129. * Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com>
  130. - disable security-prone variables-inherited-from-environment behavior
  131. - inherit only SHELL, DEAD, PAGER, LISTER, EDITOR, VISUAL, MBOX from environment
  132. - document the environment variables that are used
  133. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  134. - automatic rebuild
  135. * Wed Jun 21 2000 Preston Brown <pbrown@redhat.com>
  136. - noreplace mail.rc
  137. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  138. - FHS packaging.
  139. * Sun May 7 2000 Bill Nottingham <notting@redhat.com>
  140. - fix explosions on ia64
  141. * Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com>
  142. - Fix bug #8451
  143. - Fix bug #8100
  144. * Tue Aug 31 1999 Bill Nottingham <notting@redhat.com>
  145. - fix pathnames
  146. - take out makefile install crud
  147. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  148. - auto rebuild in the new build environment (release 8)
  149. * Thu Aug 27 1998 Alan Cox <alan@redhat.com>
  150. - Synchronized with the Debian people (more small edge case cures)
  151. * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
  152. - build root
  153. * Wed Jun 24 1998 Alan Cox <alan@redhat.com>
  154. - Switched dotlocking off. This fits the Red Hat model of not having setgid
  155. mail agents and fixes the "lock" problem reported.
  156. * Mon Jun 22 1998 Alan Cox <alan@redhat.com>
  157. - Buffer overrun patches. These dont bite us when we don't run mailx setgid
  158. but do want to be in as mailx needs to be setgid
  159. * Fri Jun 12 1998 Alan Cox <alan@redhat.com>
  160. - Moved from 5.5 to the OpenBSD 8.1 release plus Debian patches
  161. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  162. - translations modified for de, fr, tr
  163. * Tue Oct 21 1997 Donnie Barnes <djb@redhat.com>
  164. - spec file cleanups
  165. * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
  166. - built against glibc