wnn7egg-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define Wnn8Exists() %([ -f /usr/lib/wnn8/ja_JP/wnnenvrc ] && echo 1 || echo 0)
  4. Name: wnn7egg
  5. Version: 1.02
  6. Release: 8%{?_dist_release}
  7. License: GPL
  8. Source0: http://www.omronsoft.co.jp/SP/unix/wnn7s/support/modules/wnn7-elisp-el-%{version}-1.tgz
  9. Source1: %{name}-install.sh
  10. Source2: %{name}-remove.sh
  11. Source3: %{name}-init.el
  12. Source4: vine-default-%{name}.el
  13. ## Required files from Wnn8 for Linux/BSD FAQ
  14. ## http://www.omronsoft.co.jp/SP/pcunix/wnn8/faq/03clients.html
  15. Source10: eggrc-wnn7_for-wnn8
  16. ## from http://www.jpl.org/ftp/pub/misc/emcws-22.1-20071010.gz
  17. Source11: busyu.el
  18. ## 母音過不足補正機能は余計なお世話!(腫瘍:しゅよう -> しゅうよう)
  19. Patch10: eggrc-wnn7-boinkabusoku-nil.patch
  20. ## for emacs23
  21. ## from ftp://ftp.jpl.org/pub/elisp/wnn7-elisp-el-1.02-1.patch.gz
  22. ## (http://www.jpl.org/ftp/pub/elisp/wnn7-elisp-el-1.02-1.patch.gz)
  23. Patch100: wnn7-elisp-el-1.02-1.patch.gz
  24. ## http://www.m17n.org/mlarchive/mule-ja/200703/msg00018.html
  25. #Patch101: wnn7egg-emacs23.patch
  26. URL: http://www.omronsoft.co.jp/SP/unix/wnn7s/support/wnn7egg_v102s.html
  27. Group: Applications/Editors/Emacs
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  29. Summary: wnn7egg - Japanese input client of Wnn7 for Emacs
  30. Summary(ja): wnnななたまご - Wnn7 対応 Emacs 用日本語入力クライアント
  31. BuildArch: noarch
  32. # %if %Wnn8Exists
  33. # Requires: wnn8-server
  34. # %else
  35. # Requires: wnn7-server
  36. # %endif
  37. PreReq: emacsen
  38. %prereq_ge emacsen-common
  39. BuildRequires: emacsen-common
  40. %description
  41. EGG for Wnn7, called "wnn-nana-tamago" is Japanese Input Method for Emacsen.
  42. It is based on Tamago ver.3 (v3.09) and incorporated the communication library
  43. part of Tamago Ver.4. This only can use with Jserver of Wnn7.
  44. This package includes eggrc-wnn7 placed on Wnn8 for Linux/BSD FAQ
  45. http://www.omronsoft.co.jp/SP/pcunix/wnn8/faq/03clients.html
  46. and busyu.el of emcws-22.1-20071010.gz.
  47. This eggrc-wnn7 is customized for user's dictionaries of Wnn8, # '
  48. so if you install Wnn8 on your system, this package sets up for Wnn8.
  49. This busyu.el requires to search BUSYU.
  50. Also this package changes to (wnn7-set-boin-kabusoku nil) for eggrc-wnn7.
  51. Further, you do NOT need the path of wnn7egg for your .emacs.el.
  52. %description -l ja
  53. wnn7egg「wnnななたまご」は,「たまご第 3 版」v3.09 をベースに
  54. 「たまご第 4 版」の通信,ライブラリ部を組み込んだ,Wnn7 の為の
  55. 専用クライアントです.
  56. このパッケージには,Wnn8 for Linux/BSD FAQ
  57. http://www.omronsoft.co.jp/SP/pcunix/wnn8/faq/03clients.html
  58. に置いてある eggrc-wnn7 と
  59. emcws-22.1-20071010.gz から busyu.el を同封しております.
  60. eggrc-wnn7 は,辞書を Wnn8 用に修正されており,
  61. もし Wnn8 がインストールされていると,Wnn8 向けに設定がされます.
  62. busyu.el がないと,部首検索などができません.
  63. また,母音過不足補正機能を有効にしない変更を施しています.
  64. なお,.emacs.el に wnn7egg のパスを通す設定などは一切不要です.
  65. %prep
  66. %setup -q -n wnn7/elisp/emacs20
  67. %{__cp} -af %{SOURCE3} .
  68. %{__cp} -af %{SOURCE4} .
  69. %{__cp} -af %{SOURCE10} .
  70. %{__cp} -af %{SOURCE11} .
  71. %{__cp} -af ../README .
  72. %patch10 -p0
  73. pushd ../../..
  74. %patch100 -p0 -b .emacs23-0
  75. #% patch101 -p0 -b .emacs23-1
  76. popd
  77. %build
  78. %install
  79. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  80. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  81. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  82. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  83. mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
  84. #
  85. # install el files
  86. #
  87. %{__cp} eggrc-wnn7* ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/
  88. %{__cp} *.el README ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/
  89. %{__cp} -r its-v309 ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/
  90. %{__install} -m 644 %{name}-init.el \
  91. ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}/
  92. #
  93. # install script (bytecompile el and install elc, remove)
  94. #
  95. %_installemacsenscript %{name} %{SOURCE1}
  96. %_removeemacsenscript %{name} %{SOURCE2}
  97. %clean
  98. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  99. %post
  100. #
  101. # bytecompile and install
  102. #
  103. if [ "$1" = 2 ] ; then
  104. %_emacsenPackageRemove %{name}
  105. fi
  106. %_addemacsenlist %{name}
  107. %_emacsenPackageInstall %{name}
  108. %preun
  109. if [ "$1" = 0 ]; then
  110. %_emacsenPackageRemove %{name}
  111. %_removeemacsenlist %{name}
  112. fi
  113. %files
  114. %defattr(-,root,root)
  115. %{_datadir}/emacs/site-lisp/%{name}/
  116. %{emacsen_pkgdir}/install/%{name}
  117. %{emacsen_pkgdir}/remove/%{name}
  118. %changelog
  119. * Sun Feb 5 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.02-8
  120. - use %%emacsen_pkgdir macro
  121. * Wed May 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-7
  122. - updated wnn7egg-install.sh
  123. - *-init.el: changed from hard copy to symbolic link
  124. on /etc/emacs-XX.YY/site-start.d
  125. - fixed wnn7egg-remove.sh
  126. - removed variable PIXMAPDIR
  127. * Thu Apr 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-6
  128. - added vine-default-wnn7egg.el
  129. - updated wnn7egg-init.el
  130. * Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-5
  131. - dropped ExclusiveArch
  132. * Sun Feb 22 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-4
  133. - added ExclusiveArch: %%{ix86} x86_64
  134. - re-applied wnn7-elisp-el-1.02-1.patch.gz: corrected in %%prep
  135. * Sat Feb 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-3
  136. - applied wnn7-elisp-el-1.02-1.patch.gz
  137. * Sun Sep 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-2
  138. - spec in utf-8
  139. * Sat Mar 22 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vl5
  140. - used %{?_dist_release}
  141. * Sat Mar 15 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vl2
  142. - delete %%if %%Wnn8Exists Requires: wnn8-server %%else Requires: wnn7-server %%endif
  143. * Sat Mar 15 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vl1.1
  144. - delete Vendor: none, Distribution: none
  145. * Sat Mar 15 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vl1
  146. - initial build for VineSeed
  147. * Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vlmp4
  148. - define Wnn8Exists
  149. - Setup Wnn8 for wnn7egg-install.sh
  150. * Tue Feb 5 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vlmp3
  151. - rebuild for VineSeed
  152. * Sun Oct 28 2007 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vlmp2
  153. - add eggrc-wnn7-boinkabusoku-nil.patch (wnn7-set-boin-kabusoku nil); default: t
  154. * Mon Oct 15 2007 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.02-1vlmp1
  155. - initial release for Vine Linux 4.1