rmail-mime-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define emacsen_pkgdir /usr/lib/emacsen-common/packages
  4. Summary: module to provide MIME feature for RMAIL
  5. Summary(ja): RMAIL に MIME の機能を提供するライブラリ
  6. Name: rmail-mime
  7. Version: 1.13.0
  8. Release: 1%{?_dist_release}
  9. Source0: ftp://ftp.m17n.org/pub/mule/semi/rmail-mime-1.13/%{name}-%{version}.tar.gz
  10. Source1: %{name}-install.sh
  11. Source2: %{name}-remove.sh
  12. Patch10: RMAIL-MIME-CFG.patch
  13. License: Freely Distributable
  14. Group: Applications/Editors/Emacs
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildArch: noarch
  17. PreReq: emacsen
  18. BuildPreReq: emacsen-common, semi
  19. %prereq_ge emacsen-common
  20. %prereq_ge semi
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  24. %description
  25. RMAIL-MIME is a module to provide MIME feature using SEMI required
  26. by RMAIL included in emacsen.
  27. Note: in order to rebuild this SRPM package, you need emacsen,
  28. emacsen-common and semi installed.
  29. %description -l ja
  30. RMAIL-MIME は SEMI を使って rmail に MIME 機能を提供するものです.
  31. 注意:この SRPM パッケージを rebuild するには、emacsen と emacsen-common,
  32. そして semi がインストールされている必要があります.
  33. %prep
  34. %setup
  35. %patch10 -p1
  36. %build
  37. %install
  38. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  39. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  40. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{name}
  41. #mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/install
  42. #mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/remove
  43. mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/install
  44. mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/remove
  45. #
  46. # install el files
  47. #
  48. cp Makefile RMAIL-MIME-* *.el \
  49. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  50. #
  51. # install script( bytecompile el and install elc , remove )
  52. #
  53. %_installemacsenscript %{name} %{SOURCE1}
  54. %_removeemacsenscript %{name} %{SOURCE2}
  55. %post
  56. #
  57. # bytecompile and install
  58. #
  59. if [ "$1" = 2 ]; then
  60. %_emacsenPackageRemove %{name}
  61. fi
  62. %_addemacsenlist %{name}
  63. %_emacsenPackageInstall %{name}
  64. %preun
  65. if [ "$1" = 0 ]; then
  66. %_emacsenPackageRemove %{name}
  67. %_removeemacsenlist %{name}
  68. fi
  69. %clean
  70. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  71. %files
  72. %defattr(-,root,root)
  73. %doc ChangeLog README*
  74. %{_datadir}/emacs/site-lisp/%{name}/
  75. #%{_libdir}/emacsen-common/packages/install/%{name}
  76. #%{_libdir}/emacsen-common/packages/remove/%{name}
  77. %{emacsen_pkgdir}/install/%{name}
  78. %{emacsen_pkgdir}/remove/%{name}
  79. %changelog
  80. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 1.13.0-1vl5
  81. - applied new versioning policy, spec in utf-8
  82. - added macro %%emacsen_pkgdir
  83. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.13.0-0vl3
  84. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  85. * Tue Feb 19 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.13.0-0vl2
  86. - Oops the remove script was incorrect. Fixed.
  87. - first (seperated) rmail-mime package with emacsen-common capability
  88. * Mon Dec 31 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.13.0-0vl1
  89. - first (seperated) rmail-mime package with emacsen-common capability