metamail-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. Summary: A program for handling multimedia mail using the mailcap file.
  2. Summary(ja): mailcap ファイルを使ってマルチメディアメールを扱うプログラム
  3. Name: metamail
  4. Version: 2.7
  5. Release: 29%{?_dist_release}
  6. License: Distributable
  7. Group: Applications/Internet
  8. Source: ftp://ftp.research.telcordia.com/pub/nsb/mm2.7.tar.Z
  9. Patch0: mm-2.7-make.patch
  10. Patch1: mm-2.7-fonts.patch
  11. Patch2: mm-2.7-glibc.patch
  12. Patch3: mm-2.7-csh.patch
  13. Patch4: mm-2.7-uudecode.patch
  14. Patch5: mm-2.7-sunquote.patch
  15. Patch6: mm-2.7-tmpfile.patch
  16. Patch7: mm-2.7-ohnonotagain.patch
  17. Patch8: mm-2.7-arghhh.patch
  18. Patch9: mm-2.7-sml.patch
  19. Patch10: metamail-2.7-nl.patch
  20. Patch11: mm-2.7-linux.patch
  21. Patch12: metamail-2.7-fixpartial.patch
  22. Patch13: metamail-2.7-fixawk.patch
  23. Patch14: metamail-2.7-usesox.patch
  24. Patch15: metamail-2.7-ulf.patch
  25. Patch16: mm2.7-shared.patch
  26. Patch17: mm2.7-richtext.patch
  27. Patch18: mm2.7-Makefile.patch
  28. Requires: mktemp sharutils csh
  29. BuildRequires: libtermcap-devel
  30. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  31. %description
  32. Metamail is a system for handling multimedia mail, using the mailcap
  33. file. Metamail reads the mailcap file, which tells Metamail what
  34. helper program to call in order to handle a particular type of
  35. non-text mail. Note that metamail can also add multimedia support to
  36. certain non-mail programs.
  37. Metamail should be installed if you need to add multimedia support to
  38. mail programs and some other programs, using the mailcap file.
  39. %description -l ja
  40. metamail は mailcap ファイルを使ってマルチメディアメールを扱うための
  41. システムです.metamail は,テキストではないメールの各部分を,mailcap
  42. ファイルを読んでそれぞれどのヘルパーアプリケーションを使って読むかを
  43. 決定します.metamail はメール以外のデータを扱うプログラムに
  44. マルチメディアサポートを追加することも出来ます.
  45. mailcap ファイルを使ってメールプログラムやその他のプログラムに
  46. マルチメディアサポートを追加したい場合は,metamail をインストールして
  47. 下さい.
  48. %prep
  49. %setup -q -n mm2.7
  50. %patch0 -p1 -b .make
  51. %patch1 -p1 -b .font
  52. %patch2 -p1 -b .glibc
  53. %patch3 -p1 -b .csh
  54. %patch4 -p1 -b .tmpfiles
  55. %patch5 -p1 -b .quote
  56. #%patch6 -p1 -b .tmpagain
  57. %patch7 -p1 -b .sigh
  58. %patch8 -p1 -b .arghhh
  59. %patch9 -p1 -b .sml
  60. %patch10 -p1
  61. %patch11 -p1 -b .linux
  62. %patch12 -p1 -b .fixpartial
  63. %patch13 -p1 -b .fixawk
  64. %patch14 -p1 -b .usesox
  65. pushd src/metamail
  66. %patch15 -p0 -b .ulf
  67. popd
  68. %patch16 -p1 -b .shared
  69. %patch17 -p1 -b .richtext
  70. %patch18 -p1 -b .Makefile
  71. %build
  72. cd src
  73. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" basics
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. #mkdir -p $RPM_BUILD_ROOT/{usr/bin,usr/lib/metamail/fonts,%{_mandir}/man{1,4}}
  77. mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man{1,4}}
  78. cd src
  79. make INSTROOT=$RPM_BUILD_ROOT%{_prefix} \
  80. MAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
  81. MAN4DIR=$RPM_BUILD_ROOT%{_mandir}/man4 \
  82. install-all || :
  83. # These fonts are now included in XFree86 4.0.2...
  84. #install -m644 fonts/*.pcf %{buildroot}/usr/lib/metamail/fonts
  85. #install -m644 fonts/fonts.alias %{buildroot}/usr/lib/metamail/fonts
  86. #mkfontdir %{buildroot}/usr/lib/metamail/fonts
  87. #rm -fr $RPM_BUILD_ROOT/usr/lib/metamail/fonts
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT
  90. %files
  91. %defattr(755,root,root)
  92. %{_bindir}/audiocompose
  93. %{_bindir}/audiosend
  94. %{_bindir}/extcompose
  95. %{_bindir}/getfilename
  96. %{_bindir}/mailserver
  97. %{_bindir}/mailto
  98. %{_bindir}/mailto-hebrew
  99. %{_bindir}/metamail
  100. %{_bindir}/metasend
  101. %{_bindir}/mimencode
  102. %{_bindir}/mmencode
  103. %{_bindir}/patch-metamail
  104. %{_bindir}/rcvAppleSingle
  105. %{_bindir}/richtext
  106. %{_bindir}/richtoatk
  107. %{_bindir}/showaudio
  108. %{_bindir}/showexternal
  109. %{_bindir}/shownonascii
  110. %{_bindir}/showpartial
  111. %{_bindir}/showpicture
  112. %{_bindir}/sndAppleSingle
  113. %{_bindir}/splitmail
  114. %{_bindir}/sun-audio-file
  115. %{_bindir}/sun-message.csh
  116. %{_bindir}/sun-to-mime
  117. %{_bindir}/sun2mime
  118. %defattr(644,root,root)
  119. %{_mandir}/man1/audiocompose.1*
  120. %{_mandir}/man1/audiosend.1*
  121. %{_mandir}/man1/extcompose.1*
  122. %{_mandir}/man1/getfilename.1*
  123. %{_mandir}/man1/mailto-hebrew.1*
  124. %{_mandir}/man1/mailto.1*
  125. %{_mandir}/man1/metamail.1*
  126. %{_mandir}/man1/metasend.1*
  127. %{_mandir}/man1/mime.1*
  128. %{_mandir}/man1/mimencode.1*
  129. %{_mandir}/man1/mmencode.1*
  130. %{_mandir}/man1/patch-metamail.1*
  131. %{_mandir}/man1/richtext.1*
  132. %{_mandir}/man1/showaudio.1*
  133. %{_mandir}/man1/showexternal.1*
  134. %{_mandir}/man1/shownonascii.1*
  135. %{_mandir}/man1/showpartial.1*
  136. %{_mandir}/man1/showpicture.1*
  137. %{_mandir}/man1/splitmail.1*
  138. #%{_libdir}/metamail
  139. %changelog
  140. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.7-29vl5
  141. - applied new versioning policy, spec in utf-8
  142. * Thu Aug 30 2007 Shu KONNO <owa@bg.wakwak.com> 2.7-29vl3
  143. - added Patch16: mm2.7-shared.patch
  144. - added Patch17: mm2.7-richtext.patch
  145. - added Patch18: mm2.7-Makefile.patch
  146. * Tue Mar 2 2004 IWAI, Masaharu <iwai@alib.jp> 2.7-29vl2
  147. - add BuildRequires: libtermcap-devel
  148. - fix changelog: build date in 2.7-29vl1
  149. * Sun Feb 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-29vl1
  150. - based on 2.7-29 from Redhat AW 2.1 updates
  151. * Tue Feb 10 2004 Nalin Dahyabhai <nalin@redhat.com> 2.7-29
  152. - update source URL
  153. - apply rollup patch from Ulf H辰rnhammar to correct some format-string
  154. vulnerabilities and buffer overflows (CAN-2004-0104, CAN-2004-0105)
  155. * Tue Feb 13 2001 Preston Brown <pbrown@redhat.com>
  156. - remove duplicate fonts (#26862)
  157. * Thu Feb 1 2001 Preston Brown <pbrown@redhat.com>
  158. - fix showpartial usage (#16029)
  159. - use sox to play files with showaudio, if present (#21494)
  160. - nawk --> gawk for sun2mime (#17429)
  161. - rebuild with new toolchains
  162. - s/Copyright/License/
  163. * Thu Jan 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  164. - 2.7-25vl1
  165. - based on 2.7-25 from Rawhide
  166. - added Japanese summary and description
  167. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  168. - automatic rebuild
  169. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  170. - use %%{_mandir}
  171. - remove stupid #defines that break building against any sane set of C
  172. libraries (patch11)
  173. * Sun Feb 06 2000 Preston Brown <pbrown@redhat.com>
  174. - rebuild w/gzipped man pages and new description
  175. * Thu Sep 09 1999 Cristian Gafton <gafton@redhat.com>
  176. - fox the newline parsing for the mailto content-type problem
  177. * Fri Jul 30 1999 Michael K. Johnson <johnsonm@redhat.com>
  178. - changed all instances of /usr/lib/sendmail to /usr/sbin/sendmail [bug #4010]
  179. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  180. - auto rebuild in the new build environment (release 20)
  181. * Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
  182. - rebuild against glibc 2.1
  183. * Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
  184. - build root
  185. * Tue Jun 23 1998 Alan Cox <alan@redhat.com>
  186. - Here we go again. One more quoting issue.
  187. * Mon Jun 22 1998 Alan Cox <alan@redhat.com>
  188. - If you want to know how not to write secure software
  189. then metamail is a good worked example. Mind you to
  190. be fair the original author wrote it as a prototype
  191. MIME tool and it stuck. Anyway it might actually be
  192. safe now. More from the Linux Security Audit Project.
  193. * Tue Jun 16 1998 Alan Cox <alan@redhat.com>
  194. - Round and round the tmp fixes go
  195. Where they stop nobody knows
  196. - More holes in metamail fixed - (Linux Security Audit Project)
  197. * Tue May 19 1998 Prospector System <bugs@redhat.com>
  198. - translations modified for de
  199. * Tue May 19 1998 Alan Cox <alan@redhat.com>
  200. - Fixed the quoting bug in sun mail handling noted by Chris Evans and
  201. a while back via bugtraq.
  202. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  203. - translations modified for de, fr, tr
  204. * Fri Oct 24 1997 Erik Troan <ewt@redhat.com>
  205. - added security fix for uudecode
  206. - requires mktemp, sharutils
  207. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  208. - built against glibc
  209. * Tue Apr 22 1997 Erik Troan <ewt@redhat.com>
  210. - Added security patch from Olaf for csh escapes.