skkdic-vl.spec 5.5 KB

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