scim-bridge-el-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. Name: scim-bridge-el
  4. Version: 0.7.4
  5. Release: 1%{?_dist_release}
  6. Source0: http://www11.atwiki.jp/s-irie/pub/emacs/scim-bridge/scim-bridge.el-%{version}.tar.gz
  7. Source1: %{name}-install.sh
  8. Source2: %{name}-remove.sh
  9. Source3: %{name}-init.el
  10. Source4: vine-default-%{name}.el
  11. ## http://www11.atwiki.jp/s-irie/pages/12.html をテキスト選択して保存したもの
  12. Source10: 12.txt
  13. License: GPLv2+
  14. URL: http://www11.atwiki.jp/s-irie/pages/12.html
  15. Group: Applications/Editors/Emacs
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Summary: SCIM-Bridge client for GNU Emacs
  18. Summary(ja): GNU EmacsのSCIM-Bridgeクライアント
  19. BuildArch: noarch
  20. PreReq: emacsen
  21. %prereq_ge emacsen-common
  22. BuildRequires: emacsen-common
  23. Distribution: Vine Linux
  24. Vendor: Project Vine
  25. Packager: munepi
  26. %description
  27. The Smart Common Input Method platform (SCIM) is an input
  28. method (IM) platform containing support for more than thirty
  29. languages (CJK and many European languages) for POSIX-style
  30. operating systems including Linux and BSD.
  31. This program is SCIM-Bridge client for GNU Emacs. It is, however,
  32. not part of official SCIM-Bridge.
  33. %description -l ja
  34. The Smart Common Input Method platform (SCIM) は、
  35. Linux や BSD を含むPOSIX-styleオペレーティングシステムに対する
  36. 30より多くの言語(CJK や多くのヨーロッパ系言語)をサポートしている
  37. インプットメソッド(IM)プラットフォームです。
  38. このプログラムは、GNU Emacs の SCIM-Bridge クライアントです。
  39. しかしながら、公式な SCIM-Bridge の一部ではありません。
  40. %prep
  41. %setup -q -n scim-bridge.el-%{version}
  42. %__cp %{SOURCE10} .
  43. %build
  44. %install
  45. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  46. %__mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  47. %__mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  48. %__mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  49. #
  50. # install el files
  51. #
  52. %__cp -a scim-bridge.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  53. %__cp -ra localization ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  54. %__cp -a %{SOURCE3} %{SOURCE4} \
  55. ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/
  56. # remove unpackaged files
  57. %__rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/l10n-dev
  58. #
  59. # install script (bytecompile el and install elc, remove)
  60. #
  61. %_installemacsenscript %{name} %{SOURCE1}
  62. %_removeemacsenscript %{name} %{SOURCE2}
  63. %clean
  64. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  65. %post
  66. #
  67. # bytecompile and install
  68. #
  69. if [ "$1" = 2 ] ; then
  70. %_emacsenPackageRemove %{name}
  71. fi
  72. %_addemacsenlist %{name}
  73. %_emacsenPackageInstall %{name}
  74. %preun
  75. if [ "$1" = 0 ]; then
  76. %_emacsenPackageRemove %{name}
  77. %_removeemacsenlist %{name}
  78. fi
  79. %files
  80. %defattr(-,root,root)
  81. %doc 12.txt
  82. %{_datadir}/emacs/site-lisp/%{name}/
  83. %{emacsen_pkgdir}/install/%{name}
  84. %{emacsen_pkgdir}/remove/%{name}
  85. %changelog
  86. * Fri Jan 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.4-1
  87. - initial build