anthy-vl.spec 12 KB

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