select-xface-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. %define origver 0.15
  5. %define origname select-xface
  6. Name: %{origname}
  7. Version: %{origver}
  8. Summary: X-Face Choice Tool
  9. Summary(ja): X-Face 選択ツール
  10. Release: 1%{?_dist_release}
  11. License: GPL
  12. Distribution: Vine Linux
  13. Vendor: Project Vine
  14. Group: Applications/Editors/Emacs
  15. Source0: ftp://ftp.gohome.org/pub/elisp/%{name}/%{name}-%{version}.tar.gz
  16. Source10: %{origname}-install.sh
  17. Source11: %{origname}-remove.sh
  18. #Patch:
  19. Packager: Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildArch: noarch
  22. PreReq: emacsen
  23. %prereq_ge emacsen-common
  24. %description
  25. X-Face Choice Tool
  26. %description -l ja
  27. X-Face フィールドの挿入を顔の画像を見ながら選択的に行えます。
  28. XEmacs, Mule2.3@19.28, Mule2.3@19.34, Emacs 20.2〜 で動作確認済みです。
  29. Emacs/Mule で顔を見られるようにするには、x-face-mule.el が必要です。
  30. x-face-mule.el は、ftp://ftp.jpl.org/pub/elisp/x-face-mule-**.tar.gz から入手
  31. 可能になっています。設定方法については、x-face-mule.el のパッケージに付属の
  32. ドキュメントを参照してください。
  33. %prep
  34. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  35. %setup
  36. #%patch -p1
  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/%{origname}
  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. cp -a *.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname}
  46. %_installemacsenscript %{origname} %{SOURCE10}
  47. %_removeemacsenscript %{origname} %{SOURCE11}
  48. %clean
  49. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  50. %post
  51. ## bytecompile el and install elc
  52. if [ "$1" = 2 ] ; then
  53. %_emacsenPackageRemove %{origname}
  54. fi
  55. %_addemacsenlist %{origname}
  56. %_emacsenPackageInstall %{origname}
  57. %preun
  58. if [ "$1" = 0 ] ; then
  59. %_emacsenPackageRemove %{origname}
  60. %_removeemacsenlist %{origname}
  61. fi
  62. %files
  63. %defattr(-,root,root)
  64. %doc ChangeLog README.jis
  65. %{_datadir}/emacs/site-lisp/%{origname}
  66. #%{_libdir}/emacsen-common/packages/install/%{origname}
  67. #%{_libdir}/emacsen-common/packages/remove/%{origname}
  68. %{emacsen_pkgdir}/install/%{origname}
  69. %{emacsen_pkgdir}/remove/%{origname}
  70. %changelog
  71. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 0.15-1vl5
  72. - applied new versioning policy, spec in utf-8
  73. - added macro %%emacsen_pkgdir
  74. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-0vl3
  75. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  76. * Wed Jun 25 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.15-0vl2
  77. - rebuild
  78. * Fri Mar 29 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  79. - 0.15-0vl1
  80. - 1st for VineSeed.