anthy-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. %define __libtoolize :
  2. %define emacsen_pkg 1
  3. %{?without_emacsen: %define emacsen_pkg 0}
  4. %if %{emacsen_pkg}
  5. %undefine without_emacsen
  6. %define anthy_el anthy-el
  7. %define anthy anthy
  8. %define emacsen_pkgdir /usr/lib/emacsen-common/packages
  9. %else
  10. %define without_emacsen 1
  11. %endif
  12. %define ut_patch_date 20090604
  13. Summary: A Japanese character input system library (with dictionary).
  14. Summary(ja): Anthy - 日本語入力システムおよび辞書
  15. Name: anthy
  16. Version: 9100h
  17. Release: 7%{?_dist_release}
  18. URL: http://www.sourceforge.jp/projects/anthy/
  19. Source: %{name}-%{version}.tar.gz
  20. Source1: anthy-el-install.sh
  21. Source2: anthy-el-remove.sh
  22. Source3: anthy-init.el
  23. Source4: vine-default-anthy.el
  24. # large dictionary and improvement patch made by UTSUMI at
  25. # http://www.geocities.jp/ep3797/anthy_dict_01.html
  26. # also it includes some patches made by G-HAL at
  27. # http://www.fenix.ne.jp/~G-HAL/soft/nosettle/#anthy
  28. Patch100: anthy-ut-patches-%{ut_patch_date}.tar.bz2
  29. License: GPL, LGPL, BSD
  30. Group: Applications/System
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. #BuildRequires: automake16, autoconf
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. Packager: Daisuke SUZUKI <daisuke@linux.or.jp>
  36. %description
  37. Anthy is free and secure Japanese input system.
  38. %description -l ja
  39. Anthy はフリーでセキュアな日本語入力システムです。
  40. %if %{emacsen_pkg}
  41. %package -n %{anthy_el}
  42. Summary: Emacs-lisp frontend for Anthy
  43. Summary(ja): Anthy 用 Emacs-lisp フロントエンド
  44. Group: Applications/Editors/Emacs
  45. BuildRequires: emacsen
  46. Requires(post,preun): emacsen, emacsen-common >= 0.1
  47. Requires: %{name} = %{version}-%{release}
  48. %description -n %{anthy_el}
  49. Emacs-lisp frontend for Anthy
  50. %description -n %{anthy_el} -l ja
  51. Anthy のための Emacs-lisp フロントエンド
  52. %endif
  53. %package devel
  54. Summary: Development files for libanthy
  55. Summary(ja): libanthy を使ったアプリケーションを開発するためのファイル
  56. Group: Development/Libraries
  57. Requires: %{name} = %{version}-%{release}
  58. Requires: pkgconfig
  59. %description devel
  60. Devepment files for anthy libraries.
  61. %description devel -l ja
  62. libanthy を利用したアプリケーションを開発するために必要なヘッダやライブラリ
  63. が含まれています。
  64. %prep
  65. %setup -q
  66. # apply conversion improvement and large dict patch set
  67. %{__tar} xjf %{PATCH100}
  68. pushd anthy-ut-patches-%{ut_patch_date}
  69. ./apply-patches.sh
  70. popd
  71. %build
  72. libtoolize --copy --force
  73. %configure --localstatedir=%{_var}
  74. #%__make %{?_smp_mflags}
  75. # don't use smp option
  76. %__make
  77. %install
  78. %__rm -rf ${RPM_BUILD_ROOT}
  79. %makeinstall
  80. %if %{emacsen_pkg}
  81. %__mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{anthy}
  82. #%__mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/install
  83. #%__mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/remove
  84. %__cp -af %{SOURCE3} %{SOURCE4} \
  85. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{anthy}
  86. %__mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  87. %__mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  88. %endif
  89. %if %{emacsen_pkg}
  90. %{?emacsen_pkg: %_installemacsenscript %{anthy} %{SOURCE1}}
  91. %{?emacsen_pkg: %_removeemacsenscript %{anthy} %{SOURCE2}}
  92. %else
  93. %__rm -rf ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{anthy}
  94. %endif
  95. ## remove unuse files
  96. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  97. %if %{emacsen_pkg}
  98. %post -n %{anthy_el}
  99. if [ "$1" = 2 ]; then
  100. %{?emacsen_pkg: %_emacsenPackageRemove %{anthy}}
  101. fi
  102. %{?emacsen_pkg: %_addemacsenlist %{anthy}}
  103. %{?emacsen_pkg: %_emacsenPackageInstall %{anthy}}
  104. %preun -n %{anthy_el}
  105. if [ "$1" = 0 ]; then
  106. %{?emacsen_pkg: %_emacsenPackageRemove %{anthy}}
  107. %{?emacsen_pkg: %_removeemacsenlist %{anthy}}
  108. fi
  109. %endif
  110. %clean
  111. %__rm -rf ${RPM_BUILD_ROOT}
  112. %post -p /sbin/ldconfig
  113. %postun -p /sbin/ldconfig
  114. %files
  115. %defattr(-,root,root)
  116. %{_bindir}/*
  117. %{_sysconfdir}/*
  118. %{_datadir}/anthy
  119. %{_libdir}/libanthy*.so
  120. %{_libdir}/libanthy*.so.*
  121. %doc AUTHORS COPYING ChangeLog DIARY NEWS README doc Doxyfile README.en
  122. %if %{emacsen_pkg}
  123. %files -n %{anthy_el}
  124. %defattr(-, root, root)
  125. %{_datadir}/emacs/site-lisp/%{anthy}
  126. #%{_prefix}/lib/emacsen-common/packages/install/%{anthy}
  127. #%{_prefix}/lib/emacsen-common/packages/remove/%{anthy}
  128. %{emacsen_pkgdir}/install/%{anthy}
  129. %{emacsen_pkgdir}/remove/%{anthy}
  130. %endif
  131. %files devel
  132. %defattr(-,root,root)
  133. %{_includedir}/*
  134. %{_libdir}/libanthy*.a
  135. #%{_libdir}/libanthy*.la
  136. %{_libdir}/pkgconfig/*.pc
  137. %changelog
  138. * Tue Jul 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 9100h-7
  139. - updated vine-default-anthy.el
  140. - set 1 for anthy-accept-timeout (because default timeout is too long)
  141. * Sat Jun 27 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 9100h-6
  142. - update Patch100 (anthy-ut-patches-20090604.tar.bz2)
  143. * Mon May 11 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 9100h-5
  144. - update Patch100 (anthy-ut-patches-20090507.tar.bz2)
  145. * Wed May 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 9100h-4
  146. - updated anthy-el-install.sh
  147. - *-init.el: changed from hard copy to symbolic link
  148. on /etc/emacs-XX.YY/site-start.d
  149. - corrected byte-compiling messages of emacs flaver
  150. * Tue Apr 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 9100h-3
  151. - added vine-default-anthy.el
  152. - updated anthy-el-install.sh, anthy-el-remove.sh for vine-default-anthy.el
  153. * Tue Apr 07 2009 Shu KONNO <owa@bg.wakwak.com> 9100h-2
  154. - removed %%{?_smp_mflags} at make
  155. * Sun Mar 15 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 9100h-1
  156. - new upstream release
  157. - update Patch100
  158. * Wed Jan 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 9100e-3
  159. - add patch100 to improve conversion logic and add large dirctionary
  160. - add License LGPL and BSD for added patches
  161. -
  162. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 9100e-2vl5
  163. - added %%emacsen_pkgdir
  164. - removed *.la
  165. - spec in utf-8
  166. * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 9100e-1vl5
  167. - new upstream release
  168. 1* Fri Dec 28 2007 IWAI, Masaharu <iwai@alib.jp> 9100d-0vl1
  169. - new upstream release
  170. * Thu Aug 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 9100-0vl1
  171. - new upstream release
  172. * Fri Jun 15 2007 IWAI, Masaharu <iwai@alib.jp> 9011-0vl1
  173. - new upstream release
  174. * Tue Oct 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7900-0vl3
  175. - use %%{_prefix}/lib instead of %%{_libdir} for elisp directory
  176. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7900-0vl2
  177. - changed anthy-el Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  178. * Fri Aug 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7900-0vl1
  179. - new upstream release
  180. * Fri Apr 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7500b-0vl1
  181. - new upstream release
  182. * Sat Mar 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7500-0vl1
  183. - new upstream release
  184. * Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7100b-0vl3
  185. - add BuildRequires: emacsen instead of emacs
  186. - add Requires: %%{name} to anthy-el package
  187. - add libanthy*.la to devel package
  188. - update anthy-el-install.sh
  189. - add anthy-azik.el, anthy-kyuri.el
  190. * Sun Dec 18 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7100b-0vl2
  191. - add BuildRequires: emacs
  192. * Tue Dec 06 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 7100b-0vl1
  193. - new upstream release
  194. * Mon Oct 17 2005 IWAI, Masaharu <iwai@alib.jp> 7015-0vl1
  195. - new upstream release
  196. * Mon Oct 10 2005 IWAI, Masaharu <iwai@alib.jp> 6829-0vl1
  197. - new upstream release
  198. * Sun Jul 31 2005 IWAI, Masaharu <iwai@alib.jp> 6724-0vl1
  199. - new upstream release
  200. - add documents: Doxyfile and README.en
  201. * Sat Jul 30 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6700b-0vl1
  202. - new upstream release
  203. * Tue May 10 2005 IWAI, Masaharu <iwai@alib.jp> 6508-0vl1
  204. - new upstream release
  205. * Sat Apr 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6300d-0vl1
  206. - new upstream release
  207. - added %{_libdir}/pkgconfig/anthy.pc to devel package
  208. * Fri Oct 15 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5812-0vl1
  209. - new upstream release
  210. * Sat Oct 09 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5714-0vl1
  211. - new upstream release
  212. * Sun Jul 04 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5500-0vl1
  213. - new upstream release
  214. * Thu Jun 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5323-0vl3
  215. - move libanthy*.so to anthy main package. it is needed by some
  216. anthy application.
  217. * Thu Jun 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5323-0vl2
  218. - split development files to anthy-devel
  219. * Thu Jun 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5323-0vl1
  220. - new upstream release
  221. * Wed Apr 21 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5220-0vl1
  222. - new upstream release
  223. * Wed Mar 31 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5122-0vl1
  224. - new upstream release
  225. * Sun Feb 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5100-0vl1
  226. - new upstream release
  227. * Mon Feb 23 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5021-0vl1
  228. - new upstream release
  229. * Wed Feb 11 2004 IWAI, Masaharu <iwai@alib.jp> 5008-0vl1
  230. - new upstream release
  231. * Tue Jan 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4925-0vl1
  232. - new upstream release
  233. * Sun Jan 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4901-0vl1
  234. - new upstream release
  235. * Thu Nov 27 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4723-0vl1
  236. - new upstream release
  237. * Mon Nov 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4708-0vl1
  238. - new upstream release
  239. * Fri Sep 26 2003 IWAI, Masaharu <iwai@alib.jp> 4524-0vl1
  240. - new upstream release
  241. * Mon Sep 22 2003 IWAI, Masaharu <iwai@alib.jp> 4520-0vl1
  242. - new upstream release
  243. * Tue Sep 9 2003 IWAI, Masaharu <iwai@alib.jp> 4507-0vl3
  244. - update anthy-el-install.sh (Source1): [VineSeed-Plus:01834]
  245. - The files to byte-compile is made the same as the upstream.
  246. * Tue Sep 9 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 4507-0vl2
  247. - not bytecompile leim-list.el for XEmacs
  248. * Sun Sep 07 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4507-0vl1
  249. - new upstream release
  250. * Sun Aug 31 2003 IWAI, Masaharu <iwai@alib.jp> 4431-0vl1
  251. - new upstream snapshot release
  252. - create anthy-el package for emacsen
  253. * Fri Aug 29 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4421-0vl1
  254. - new upstream snapshot release
  255. * Fri Jul 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4300-0vl1
  256. - initial build for Vine Linux
  257. * Thu Jul 10 2003 Yuhei Matsunaga <yuhei@users.sourceforge.jp>
  258. - up to 4200.
  259. - added description.
  260. * Fri Nov 25 2002 OGUMA "dellin" Hironori <dellin@team-ct.org>
  261. - 3500c-1
  262. - up to 3500c.
  263. - added some documents.
  264. * Fri Nov 22 2002 OGUMA "dellin" Hironori <dellin@team-ct.org>
  265. - up to 3500b.
  266. * Thu Jan 3 2002 Yusuke Tabata <yusuke@kmc.gr.jp>
  267. - changed my mail address and URL of web page
  268. * Thu Nov 11 2001 Takayoshi Nobuoka <taka@trans-nt.com>
  269. - add %{_sysconfdir}/* at %files
  270. * Wed Sep 9 2001 Takayoshi Nobuoka <taka@trans-nt.com>
  271. - use _bindir and so on.
  272. * Sun Aug 19 2001 Tabatee <yusuke@kmc.kyoto-u.ac.jp>
  273. - Initial build.