mhc-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. %define ruby /usr/bin/ruby
  2. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  3. %define over current-snap20010625
  4. %define xver 20010625
  5. Summary: Message Harmonized Calendaring system
  6. Name: mhc
  7. Version: 0.25+%{xver}
  8. Release: 0vl7
  9. Copyright: GPL
  10. Group: Applications/Text
  11. Source: http://www.quickhack.net/mhc/arc/%{name}-%{over}.tar.gz
  12. Source1: %{name}-install.sh
  13. Source2: %{name}-remove.sh
  14. Patch1: mhc-0.25-mhcml.1547.patch
  15. URL: http://www.quickhack.net/%{name}/
  16. Prefix: /usr
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildPreReq: ruby, ruby-devel, pilot-link-devel
  19. PreReq: emacsen, emacsen-common >= 0.1, semi
  20. Requires: ruby, ruby-gtk, openssh-clients, pilot-link
  21. %description
  22. MHC is designed to help those who receive most appointments via email.
  23. Using MHC, you can easily import schedule articles from emails.
  24. You can get the latest version from:
  25. http://www.quickhack.net/mhc/
  26. MHC has following features:
  27. + Simple data structure allows you to manipulate stored data in many ways.
  28. + Both UNIX and Windows9x support.
  29. + Appointments can be made to repeat in flexible ways.
  30. + powerful but simple expression of appointments.
  31. + Multiple User Interface such as commandline/emacs/GUI/Web.
  32. MHC currently has following interfaces:
  33. + Elisp package cooperative with Mew, Wanderlust or Gnus (popular MUA in
  34. the Emacs world) (emacs/mhc.el)
  35. + GUI (Ruby/Gtk based) desktop calendar application. (gemcal)
  36. + Command line schedule lister like the scan of MH. (mscan)
  37. %prep
  38. %setup -q -c
  39. cd %{name}-%{over}
  40. cd emacs
  41. %patch1 -p0
  42. cd ..
  43. cd ..
  44. %build
  45. cd %{name}-%{over}
  46. ruby ./configure.rb --with-icondir=%{_datadir}/pixmaps/%{name}
  47. make -C ruby-ext
  48. cd ..
  49. %install
  50. cd %{name}-%{over}
  51. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  52. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  53. mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
  54. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps/%{name}
  55. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/bitmaps/%{name}
  56. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  57. mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/install
  58. mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/remove
  59. cp emacs/*.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  60. cp emacs/Makefile ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  61. cp emacs/MHC-MK ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  62. cp xpm/*.xpm ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps/%{name}
  63. for s in adb2mhc gemcal mhc-sync mhc2palm palm2mhc today
  64. do
  65. install -m 755 $s ${RPM_BUILD_ROOT}/%{_bindir}
  66. done
  67. make -C ruby-ext install DESTDIR=${RPM_BUILD_ROOT}
  68. cp icons/*.xbm ${RPM_BUILD_ROOT}/%{_datadir}/pixmaps/%{name}
  69. cp icons/*.xpm ${RPM_BUILD_ROOT}/%{_datadir}/bitmaps/%{name}
  70. %_installemacsenscript %{name} %{SOURCE1}
  71. %_removeemacsenscript %{name} %{SOURCE2}
  72. cd ..
  73. %triggerin -- wl-el
  74. if [ "$1" = 2 ]; then
  75. %_emacsenPackageRemove mhc
  76. fi
  77. %_addemacsenlist mhc
  78. %_emacsenPackageInstall mhc
  79. %triggerun -- wl-el
  80. if [ "$1" = 2 ]; then
  81. %_emacsenPackageRemove mhc
  82. fi
  83. %_addemacsenlist mhc
  84. %_emacsenPackageInstall mhc
  85. %triggerin -- mew-el
  86. if [ "$1" = 2 ]; then
  87. %_emacsenPackageRemove mhc
  88. fi
  89. %_addemacsenlist mhc
  90. %_emacsenPackageInstall mhc
  91. %triggerun -- mew-el
  92. if [ "$1" = 2 ]; then
  93. %_emacsenPackageRemove mhc
  94. fi
  95. %_addemacsenlist mhc
  96. %_emacsenPackageInstall mhc
  97. %triggerin -- t-gnus
  98. if [ "$1" = 2 ]; then
  99. %_emacsenPackageRemove mhc
  100. fi
  101. %_addemacsenlist mhc
  102. %_emacsenPackageInstall mhc
  103. %triggerun -- t-gnus
  104. if [ "$1" = 2 ]; then
  105. %_emacsenPackageRemove mhc
  106. fi
  107. %_addemacsenlist mhc
  108. %_emacsenPackageInstall mhc
  109. %post
  110. if [ "$1" = 2 ]; then
  111. %_emacsenPackageRemove mhc
  112. fi
  113. %_addemacsenlist mhc
  114. %_emacsenPackageInstall mhc
  115. %preun
  116. if [ "$1" = 0 ]; then
  117. %_emacsenPackageRemove mhc
  118. %_removeemacsenlist mhc
  119. fi
  120. %clean
  121. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  122. %files
  123. %defattr(-, root, root)
  124. %{_bindir}
  125. %{rlibdir}
  126. %{_datadir}/pixmaps/%{name}
  127. %{_datadir}/bitmaps/%{name}
  128. %{_libdir}/emacsen-common/packages/install/%{name}
  129. %{_libdir}/emacsen-common/packages/remove/%{name}
  130. %{_datadir}/emacs/site-lisp/%{name}/
  131. %doc %{name}-%{over}/00changes.jis
  132. %doc %{name}-%{over}/00copyright
  133. %doc %{name}-%{over}/00readme
  134. %doc %{name}-%{over}/00readme.jis
  135. %doc %{name}-%{over}/00readme.w32.jis
  136. %doc %{name}-%{over}/00todo.jis
  137. %doc %{name}-%{over}/00usage.jis
  138. %doc %{name}-%{over}/ChangeLog
  139. %doc %{name}-%{over}/NEWS
  140. %doc %{name}-%{over}/NEWS.jis
  141. %doc %{name}-%{over}/samples/
  142. %changelog
  143. * Fri Feb 08 2002 akira yamada <akira@vinelinux.org> 0.25+20010625-0vl7
  144. - applied [mhc:01547] Re: message display error with wl-2.9.6.
  145. * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 0.25+20010625-0vl6
  146. - moved emacsen-common to PreReq.
  147. - added semi to PreReq.
  148. * Sun Dec 16 2001 akira yamada <akira@vinelinux.org> 0.25+20010625-0vl5
  149. - requires: pilot-link
  150. * Sun Dec 16 2001 akira yamada <akira@vinelinux.org> 0.25+20010625-0vl4
  151. - added %%triggureun.
  152. * Sat Dec 15 2001 akira yamada <akira@vinelinux.org> 0.25+20010625-0vl3
  153. - requires: ruby-gtk, openssh-clients
  154. * Sat Dec 15 2001 akira yamada <akira@vinelinux.org> 0.25+20010625-0vl2
  155. - Initial packaging.