tamago-tsunagi-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'Requires(pre):%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define origver 5.0.7.1
  4. %define origname tamago-tsunagi
  5. %define rel 1
  6. Summary: EGG Input Method Architecture for Emacsen
  7. Name: %{origname}
  8. Version: %{origver}
  9. Release: %{rel}%{?_dist_release}
  10. Source0: %{name}-%{version}.tar.gz
  11. Source1: %{origname}-install.sh
  12. Source2: %{origname}-remove.sh
  13. Source10: vine-default-%{origname}.el
  14. Source11: %{origname}-init.el
  15. Patch30: tamago-4.0.6-egg-helper-path.patch
  16. License: GPLv2+
  17. Group: Applications/Editors/Emacs
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Requires: emacsen
  20. Requires: emacsen-common
  21. BuildRequires: apel
  22. %prereq_ge apel
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: iwaim
  26. %description
  27. EGG Emacs24 Input Method Architecture.
  28. %description -l ja
  29. GNU Emacs 24 以降に対応した多言語入力環境を提供します。
  30. %prep
  31. %setup -n %{origname}-%{origver}
  32. %patch30 -p1
  33. %build
  34. %configure
  35. gcc %{optflags} -o helper/egg-helper helper/egg-helper.c
  36. %install
  37. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  38. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  39. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
  40. mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/install
  41. mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/remove
  42. #
  43. # install setting files
  44. #
  45. cp -a %{SOURCE10} %{SOURCE11} $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
  46. #
  47. # install el files
  48. #
  49. cp -r eggrc *.el egg its* Makefile \
  50. $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/%{origname}/
  51. #
  52. # install egg-helper
  53. #
  54. install -d $RPM_BUILD_ROOT%{_libexecdir}
  55. install -m 755 helper/egg-helper $RPM_BUILD_ROOT%{_libexecdir}
  56. #
  57. # install script( bytecompile el and install elc , remove )
  58. #
  59. %_installemacsenscript %{origname} %{SOURCE1}
  60. %_removeemacsenscript %{origname} %{SOURCE2}
  61. #
  62. # install info file
  63. #
  64. mkdir -p ${RPM_BUILD_ROOT}/usr/info
  65. %post
  66. #
  67. # bytecompile and install
  68. #
  69. if [ "$1" = 2 ]; then
  70. %_emacsenPackageRemove %{origname}
  71. fi
  72. %_addemacsenlist %{origname}
  73. %_emacsenPackageInstall %{origname}
  74. %preun
  75. if [ "$1" = 0 ]; then
  76. %_emacsenPackageRemove %{origname}
  77. %_removeemacsenlist %{origname}
  78. fi
  79. %clean
  80. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  81. %files
  82. %defattr(-,root,root)
  83. %doc AUTHORS COPYING ChangeLog* NEWS PROBLEMS TODO README.ja.UTF-8.txt doc
  84. %{_datadir}/emacs/site-lisp/%{origname}/
  85. %{emacsen_pkgdir}/install/%{origname}
  86. %{emacsen_pkgdir}/remove/%{origname}
  87. %{_libexecdir}/egg-helper
  88. %changelog
  89. * Tue Apr 28 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 5.0.7.1-1
  90. - initial release