mh-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. Summary: MH mail handling system
  2. Summary(ja): MH メールハンドリングシステム
  3. Name: mh
  4. Version: 6.8.4_jp
  5. Release: 13vl6
  6. License: freeware
  7. URL: http://www.chem.eng.himeji-tech.ac.jp/~hayashi/internet/mh-plus.html
  8. Group: Applications/Internet
  9. #Source: ftp://ftp.chem.eng.himeji-tech.ac.jp/pub/net/mh/mh-6.8.4-JP-3.03.tar.gz
  10. Source: mh-6.8.4-JP-3.05.tar.gz
  11. Source1: mh.sh
  12. Source2: mh.csh
  13. Patch0: mh-6.8.4-JP-3.02-glibc.patch
  14. Patch1: mh-6.8.4-JP-3.05-20030114.patch.gz
  15. Patch2: mh-6.8.4-JP-3.05-20030326.patch.gz
  16. Patch3: mh-6.8.4-JP-3.05-20031023.patch.gz
  17. Patch4: mh-6.8.4-JP-3.05-20031106.patch.gz
  18. #Patch5: mh-6.8.4-stdarg.patch
  19. BuildRequires: readline-devel ncurses-devel
  20. BuildPrereq: sed gcc295
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine
  24. %description
  25. MH mail handling system (with POP support). MH is a popular
  26. mail handling system but includes only a command line interface. It is
  27. an important base, however, for programs like xmh and exmh.
  28. %description -l ja
  29. このパッケージは、MH メールハンドリングシステム(POP サポート付き)です。
  30. MH は有名なメールハンドリングシステムですが、コマンドラインインター
  31. フェースのみしか含みません。しかしながら、xmh や exmh といったプログラム
  32. にとって重要な基礎をなします。
  33. %prep
  34. %setup -q -n mh-6.8.4-JP-3.05
  35. %patch0 -p1
  36. %patch1 -p0 -b .20030114
  37. %patch2 -p0 -b .20030326
  38. %patch3 -p0 -b .20031023
  39. %patch4 -p0 -b .20031106
  40. #%patch5 -p1 -b .stdarg
  41. %build
  42. #sh configure --prefix=/usr --bindir=/usr/bin/mh --enable-smtp --enable-batchmode --enable-sharedlib
  43. export CC=gcc-2.95.3
  44. %configure --bindir=%{_bindir}/mh --libexecdir=%{_libdir}/mh --enable-smtp --enable-batchmode --enable-sharedlib
  45. make
  46. %install
  47. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  48. %makeinstall DESTDIR=$RPM_BUILD_ROOT
  49. #cd $RPM_BUILD_ROOT/usr/lib
  50. #ln -sf libmh.so.3.2 libmh.so
  51. mkdir -p $RPM_BUILD_ROOT/etc/profile.d
  52. install -m755 %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/mh.sh
  53. install -m755 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/mh.csh
  54. #echo "export PATH=\$PATH:/usr/bin/mh" > $RPM_BUILD_ROOT/etc/profile.d/mh.sh
  55. #echo "set path=(\$path /usr/bin/mh)" > $RPM_BUILD_ROOT/etc/profile.d/mh.csh
  56. chmod 755 $RPM_BUILD_ROOT/etc/profile.d/mh.sh
  57. chmod 755 $RPM_BUILD_ROOT/etc/profile.d/mh.csh
  58. chmod u+s $RPM_BUILD_ROOT%{_bindir}/mh/inc
  59. %clean
  60. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  61. %post -p /sbin/ldconfig
  62. %postun -p /sbin/ldconfig
  63. %files
  64. %defattr(-,root,root)
  65. %doc READ-ME FAQ CHANGES doc-JP/*
  66. %config /etc/profile.d/mh.sh
  67. %config /etc/profile.d/mh.csh
  68. %dir %{_bindir}/mh
  69. %{_bindir}/mh/*
  70. %{_libdir}/libmh.so.3.2
  71. %{_libdir}/libmh.so
  72. %dir %{_libdir}/mh
  73. %config %{_libdir}/mh/mtstailor
  74. %config %{_libdir}/mh/MailAliases
  75. %config %{_libdir}/mh/components
  76. %config %{_libdir}/mh/digestcomps
  77. %config %{_libdir}/mh/distcomps
  78. %config %{_libdir}/mh/forwcomps
  79. %config %{_libdir}/mh/rcvdistcomps
  80. %config %{_libdir}/mh/replcomps
  81. %config %{_libdir}/mh/mhl.digest
  82. %config %{_libdir}/mh/mhl.format
  83. %config %{_libdir}/mh/mhl.forward
  84. %config %{_libdir}/mh/mhl.body
  85. %config %{_libdir}/mh/mhl.headers
  86. %config %{_libdir}/mh/scan.mailx
  87. %config %{_libdir}/mh/scan.default
  88. %config %{_libdir}/mh/scan.size
  89. %config %{_libdir}/mh/scan.time
  90. %config %{_libdir}/mh/scan.timely
  91. %{_libdir}/mh/packmbox
  92. %{_libdir}/mh/mhn_defaults
  93. %{_libdir}/mh/viamail
  94. #%{_libdir}/mh/popaka
  95. #%{_libdir}/mh/popwrd
  96. %{_libdir}/mh/ap
  97. %{_libdir}/mh/conflict
  98. %{_libdir}/mh/dp
  99. %{_libdir}/mh/install-mh
  100. %{_libdir}/mh/mhl
  101. %{_libdir}/mh/post
  102. %{_libdir}/mh/rcvdist
  103. %{_libdir}/mh/rcvpack
  104. %{_libdir}/mh/rcvstore
  105. %{_libdir}/mh/rcvtty
  106. %{_libdir}/mh/fmtdump
  107. %{_libdir}/mh/spost
  108. #%{_libdir}/mh/spop
  109. %{_libdir}/mh/slocal
  110. %{_libdir}/mh/tmac.h
  111. %{_mandir}/man?/*
  112. %{_mandir}/ja/man?/*
  113. %changelog
  114. * Tue Jul 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 6.8.4_jp-13vl6
  115. - changed Group to Applications/Internet
  116. * Tue Nov 9 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 6.8.4_jp-13vl5
  117. - used gcc-2.95.3 instead of Patch5,
  118. * Thu Nov 4 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 6.8.4_jp-13vl4
  119. - fixed mh.csh, "EOF" was removed
  120. * Thu Nov 4 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 6.8.4_jp-13vl3
  121. - split /etc/profile.d/*.[c]sh files to SOURCE1 and 2
  122. * Sun Oct 31 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 6.8.4_jp-13vl2
  123. - rebuilt with new toolchains
  124. - updated jp patch to version 3.05
  125. - added Patch1--4 from upstream
  126. - added Patch5 to avoid using varargs.h
  127. - added BuildRequires: and BuildPrereq:
  128. - s/Copyright/License/
  129. - used better macros
  130. - updated script at /etc/profile.d
  131. * Fri Sep 15 2000 Jun Nishii <jun@vinelinux.org>
  132. - 6.8.4_jp-13
  133. - added %defattr
  134. * Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  135. - 6.8.4_jp-12
  136. - modified %files section to handle compressed man page(s)
  137. * Sun Oct 10 1999 Norihito Ohmori <ohmori@flatout.org>
  138. - update mh-6.8.4-JP-3.03
  139. * Wed Sep 29 1999 Norihito Ohmori <ohmori@flatout.org>
  140. - fix alpha compilation bug (by Toru Hoshina)
  141. * Wed Aug 26 1999 Norihito Ohmori <ohmori@flatout.org>
  142. - apply glibc-2.1.x patch
  143. - fix pick -search bug (19990309)
  144. - fix (hencode(trim{subject})) core dump bug (19990611)
  145. - fix long From: core dump bug (19990806)
  146. - disable rpop
  147. * Thu May 13 1999 Jun Nishii <jun@flatout.org>
  148. - merged patch for rpop
  149. * Tue Mar 13 1999 Daisuke SUZUKI <daisuke@linux.or.jp>
  150. - updated to mh-6.8.4-JP3.02
  151. * Tue Jan 19 1999 Daisuke SUZUKI <daisuke@linux.or.jp>
  152. - updated to mh-6.8.4-JP3.01
  153. * Tue Aug 18 1998 Daisuke SUZUKI <daisuke@linux.or.jp>
  154. - added a patch to configure script for PentiumPRO/PentiumII
  155. * Mon Aug 17 1998 Daisuke SUZUKI <daisuke@linux.or.jp>
  156. - added MH-JP patch