cmigemo-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %define srcdate 20110227
  2. %define srcname cmigemo-default-src
  3. Summary: C implementation of migemo
  4. Summary(ja): Migemo の C 言語による実装
  5. Name: cmigemo
  6. Version: 1.3e
  7. Release: 1%{?_dist_release}
  8. Source0: http://cmigemo.googlecode.com/files/%{srcname}-%{srcdate}.zip
  9. # include dict file and diasble downloading at complie time.
  10. Source1: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.L.gz
  11. Patch0: cmigemo-include-fix.patch
  12. Patch1: cmigemo-utf8-dict.patch
  13. License: MIT/distributable (see README files for detail)
  14. Group: System Environment/Libraries
  15. URL: http://www.kaoriya.net/software/cmigemo
  16. #Requires:
  17. BuildRequires: ctags
  18. BuildRequires: unzip
  19. BuildRequires: nkf
  20. #BuildRequires: curl
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: kazutaka
  25. %description
  26. C/Migemo is a C implementation of Migemo(Ruby/Migemo).
  27. With this library, It is possible to implement incremantal search
  28. function for japanese using roman letter input.
  29. %description -l ja
  30. C/MigemoはMigemo(Ruby/Migemo)をC言語で実装したものです。C/Migemo
  31. ライブラリを利用するソフトウェアは「ローマ字のまま日本語を(インク
  32. リメンタルに)検索する」機能を持つことが可能になります。
  33. %prep
  34. %setup -q -n %{srcname}
  35. %patch0 -p1 -b .include
  36. %patch1 -p1 -b .utf8-dict
  37. # fix execution bit for configure
  38. %{__chmod} +x ./configure
  39. # locate SKK-JISYO.L
  40. %{__cp} %{SOURCE1} dict/
  41. %build
  42. %configure --prefix=$RPM_BUILD_ROOT/%{_prefix}
  43. %{__make} gcc
  44. %{__make} gcc-dict
  45. %install
  46. %{__rm} -rf $RPM_BUILD_ROOT
  47. %{__make} gcc-install DESTDIR=$RPM_BUILD_ROOT
  48. # fix library install location for x86_64
  49. %ifarch x86_64
  50. %{__mv} $RPM_BUILD_ROOT/%{_prefix}/lib/ $RPM_BUILD_ROOT/%{_prefix}/lib64
  51. %endif
  52. # remove unnecessary files
  53. %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/migemo/cp932/
  54. %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/migemo/euc-jp/
  55. %{__rm} -rf $RPM_BUILD_ROOT/%{_prefix}/doc/migemo/README_j.txt
  56. %post -p /sbin/ldconfig
  57. %postun -p /sbin/ldconfig
  58. %clean
  59. %{__rm} -rf $RPM_BUILD_ROOT
  60. %files
  61. %defattr(-,root,root)
  62. %doc README.txt doc/
  63. %{_bindir}/%{name}
  64. %{_includedir}/migemo.h
  65. %{_libdir}/libmigemo*
  66. %{_datadir}/migemo/
  67. %changelog
  68. * Mon Jun 20 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.3e-1
  69. - initial build for Vine Linux