skkdic-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. %define pkg_name skkdic
  2. %define pkg_version 20160424
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: SKK Dictionaries
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. BuildArch: noarch
  9. License: Distrubutable
  10. Group: Applications/Text
  11. URL: http://openlab.ring.gr.jp/skk/
  12. Source0: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.L.gz
  13. Source1: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.JIS2.gz
  14. Source2: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.JIS3_4.gz
  15. Source3: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.pubdic+.gz
  16. Source4: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.edict.tar.gz
  17. Source5: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.assoc.gz
  18. Source6: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.china_taiwan.gz
  19. #Source7: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.fukugo.gz
  20. Source8: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.geo.gz
  21. Source9: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.itaiji.gz
  22. Source10: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.law.gz
  23. Source11: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.mazegaki.gz
  24. Source12: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.okinawa.gz
  25. Source13: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.jinmei.gz
  26. Source14: http://openlab.ring.gr.jp/skk/dic/zipcode.tar.gz
  27. Source15: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.fullname.gz
  28. Source16: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.itaiji.JIS3_4.gz
  29. Source17: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.JIS2004.gz
  30. Source18: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.L.unannotated.gz
  31. Source19: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.lisp.gz
  32. Source20: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.propernoun.gz
  33. Source21: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.requested.gz
  34. Source22: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.station.gz
  35. Source100: dot-dic.skk
  36. Source200: skktocdbm.sh
  37. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  38. BuildRequires: gzip
  39. Vendor: Project Vine
  40. Distribution: Vine Linux
  41. Packager: ara_t
  42. %description
  43. SKK dictionaries
  44. %description -l ja
  45. SKK 辞書パッケージです。
  46. /usr/share/doc/skkdic-%{version}/dot-dic.skk
  47. を ~/.skk としてコピーして使用してください。
  48. %package cdb
  49. Summary: standard dictionary file for SKK in cdb format for faster access
  50. Summary(ja): より高速なアクセスが可能な cdb フォーマットの SKK 標準辞書ファイル
  51. Group: Applications/Text
  52. %description cdb
  53. This package provides the standard dictionary file for
  54. SKK Japanese input systems, converted to constant database (cdb)
  55. for faster access.
  56. %description -l ja cdb
  57. このパッケージはSKK日本語入力システムの標準辞書ファイルを
  58. constant database (cdb) に変換し、より高速なアクセスを可能とした
  59. ファイルを提供します。
  60. %prep
  61. %setup -n %{name} -c -T -a 4 -a 14
  62. %build
  63. %{__cp} \
  64. %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE5} %{SOURCE6} \
  65. %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
  66. %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} %{SOURCE20} \
  67. %{SOURCE21} %{SOURCE22} .
  68. gzip -d *.gz
  69. %{__cp} %{SOURCE100} .
  70. %{__mkdir_p} DOCS/zipcode
  71. %{__cp} \
  72. zipcode/configure zipcode/configure.ac zipcode/Makefile.in zipcode/README.ja \
  73. zipcode/ZIPCODE-MK zipcode/words.zipcode \
  74. DOCS/zipcode/
  75. for JISYO in SKK-JISYO.*
  76. do
  77. LJISYO=`basename $JISYO`
  78. %{SOURCE200} < ${JISYO} > ${LJISYO}.cdb
  79. done
  80. %install
  81. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/skk
  82. %{__install} -m 644 SKK-JISYO.* ${RPM_BUILD_ROOT}%{_datadir}/skk
  83. %{__install} -m 644 zipcode/SKK-JISYO.* ${RPM_BUILD_ROOT}%{_datadir}/skk
  84. %clean
  85. %{__rm} -rf ${RPM_BUILD_ROOT}
  86. %files
  87. %defattr(-,root,root)
  88. %doc DOCS/* dot-dic.skk edict_doc.txt
  89. %{_datadir}/skk/SKK-JISYO.*[^{cdb}]
  90. %{_datadir}/skk/SKK-JISYO.L.unannotated
  91. %{_datadir}/skk/SKK-JISYO.assoc
  92. %{_datadir}/skk/SKK-JISYO.requested
  93. %files cdb
  94. %defattr(-, root, root)
  95. %{_datadir}/skk/SKK-JISYO.*.cdb
  96. %changelog
  97. * Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 20160410-1
  98. - update to 20160424
  99. - make subpackage skkdic-cdb
  100. * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 20160410-1
  101. - update to 20160410
  102. - correct SPEC file
  103. * Sat Mar 12 2016 Toshiaki Ara <ara_t@384.jp> 20160306-1
  104. - update to 20160306
  105. * Mon Dec 28 2015 Toshiaki Ara <ara_t@384.jp> 20151227-1
  106. - update to 20151227
  107. * Tue Nov 17 2015 Toshiaki Ara <ara_t@384.jp> 20151115-1
  108. - update to 20151115
  109. * Wed Sep 23 2015 Toshiaki Ara <ara_t@384.jp> 20150920-1
  110. - update to 20150920
  111. * Thu Jul 09 2015 Toshiaki Ara <ara_t@384.jp> 20150705-2
  112. - rebuild
  113. * Thu Jul 09 2015 Toshiaki Ara <ara_t@384.jp> 20150705-1
  114. - update to 20150705
  115. - update dot-dic.skk (Source100):
  116. - modify by http://openlab.ring.gr.jp/skk/skk/main/etc/dot.skk
  117. - add new dictionary file (Sources from 15 to 22)
  118. * Sat Jun 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 20100126-2
  119. - rebuild
  120. * Sun Aug 29 2010 IWAI, Masaharu <iwai@alib.jp> 20100126-1
  121. - update to 20100126
  122. - drop SKK-JISYO.fukugo.gz (Source7): upstream removed 2003-04-05
  123. - update dot-dic.skk (Source100): drop SKK-JISYO.fukugo
  124. - s/BuildArchitectures/BuildArch/
  125. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 20030520-1vl5
  126. - applied new versioning policy, spec in utf-8
  127. * Sat May 24 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  128. - 20030520-0vl2
  129. - added dot-dic.skk
  130. * Tue May 20 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  131. - 20030520-0vl1
  132. * Tue Mar 7 2001 Uechi Yasumasa <uh@u.dhis.portside.net>
  133. - 20010306-0vl1
  134. - 1st release