bitmap-mule-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define emacsver 20.4
  2. %define version 8.0
  3. %define release 2%{?_dist_release}
  4. Name: bitmap-mule
  5. Version: %{version}
  6. Release: %{release}
  7. License: GPL2
  8. Group: Applications/Editors/Emacs
  9. Source0: ftp://ftp.jpl.org/pub/elisp/bitmap/bitmap-mule-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. Requires: xorg-x11-libs, faces, faces-xface
  13. Summary: Display Bitmaps like X-Face on FSF Emacs
  14. Summary(ja): Emacs 上で X-Face などの bitmap を表示するツール
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. bitmap-mule is a package to use bitmap in MULE or Emacs/mule.
  19. After installation, please don't forget to add the following lines
  20. to your .emacs file:
  21. (if window-system
  22. (progn
  23. (require 'bitmap)
  24. (mapcar (lambda (fontset)
  25. (set-fontset-font
  26. fontset 'bitmap
  27. "-etl-fixed-medium-r-*--16-*-100-100-m-*-bitmap.8x16-0"))
  28. (fontset-list))))
  29. (setq wl-highlight-x-face-function
  30. 'x-face-mule-x-face-decode-message-header)
  31. %description -l ja
  32. bitmap-mule は MULE や Emacs/mule 上で bitmap を扱うパッケージです.
  33. インストール後に以下の記述を .emacs に追加して下さい.
  34. (if window-system
  35. (progn
  36. (require 'bitmap)
  37. (mapcar (lambda (fontset)
  38. (set-fontset-font
  39. fontset 'bitmap
  40. "-etl-fixed-medium-r-*--16-*-100-100-m-*-bitmap.8x16-0"))
  41. (fontset-list))))
  42. (setq wl-highlight-x-face-function
  43. 'x-face-mule-x-face-decode-message-header)
  44. %prep
  45. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  46. %setup
  47. %build
  48. make EMACS=emacs
  49. %install
  50. make EMACS=emacs \
  51. PREFIX=${RPM_BUILD_ROOT}/usr \
  52. install
  53. bdftopcf -o etl8x16-bitmap.pcf etl8x16-bitmap.bdf
  54. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/X11/fonts/misc
  55. install -m 644 etl8x16-bitmap.pcf \
  56. ${RPM_BUILD_ROOT}%{_datadir}/X11/fonts/misc/.
  57. %clean
  58. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf $RPM_BUILD_ROOT
  59. %post
  60. (cd %{_datadir}/X11/fonts/misc; %{_bindir}/mkfontdir)
  61. %postun
  62. (cd %{_datadir}/X11/fonts/misc; %{_bindir}/mkfontdir)
  63. %triggerin -- XFree86
  64. (cd %{_datadir}/X11/fonts/misc; %{_bindir}/mkfontdir)
  65. %files
  66. %defattr(-,root,root)
  67. %doc ChangeLog NEWS README.en
  68. %{_datadir}/X11/fonts/misc/etl8x16-bitmap.pcf
  69. %{_datadir}/emacs/site-lisp/bitmap
  70. %changelog
  71. * Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 8.0-2vl5
  72. - applied new versioning policy, spec in utf-8
  73. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.0-1vl2
  74. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  75. - s/Copyright/License/
  76. * Thu Mar 28 2002 Jun Nishii <jun@vinelinux.org> 8.0-1vl1
  77. - fix description
  78. * Tue Dec 7 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  79. - 8.0-1
  80. - first rpm package