dbskkd-cdb-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. %define pkg_name dbskkd-cdb
  2. %define pkg_version 2.00
  3. %define pkg_release 6%{?_dist_release}
  4. %define cdb_ver 0.78
  5. Summary: A dictionary server for the SKK Japanese input method system
  6. Summary(ja): SKK 日本語入力メソッドの辞書サーバ
  7. Name: %{pkg_name}
  8. Version: %{pkg_version}
  9. Release: %{pkg_release}
  10. License: GPL
  11. Group: Applications/System
  12. URL: http://www.ne.jp/asahi/bdx/info/software/jp-dbskkd.html
  13. Source0: https://github.com/jj1bdx/dbskkd-cdb/archive/%{name}-%{version}_IMPORTED_FROM_SVN.tar.gz
  14. Source1: http://www.corpit.ru/mjt/tinycdb/tinycdb-%{cdb_ver}.tar.gz
  15. Source2: dbskkd-cdb.xinetd
  16. Patch1: dbskkd-cdb-2.00.c.patch
  17. Patch2: dbskkd-cdb-2.00.makefile.patch
  18. BuildRequires: skkdic
  19. Requires: xinetd
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  21. Provides: skkserv
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: ara_t
  25. %description
  26. dbskkd-cdb is a dictionary server for the SKK Japanese input method
  27. system. dbskkd-cdb is based on the code of skkserv (the original SKK
  28. server) 3.9.3, using the cdb constant database package of
  29. D. J. Bernstein (DJB) for faster dictionary access.
  30. #Add an entry for dbskkd-cdb to /etc/hosts.allow when using with tcp_wrappers.
  31. #ex. dbskkd-cdb: 127.0.0.1
  32. %description -l ja
  33. dbskkd-cdbは、skkservと同様の機能を提供する
  34. SKK用の共通辞書サーバーである。
  35. 辞書は D. J. Bernsteinのcdbを使ってデータベース化し、
  36. 検索を高速化している。
  37. 本サーバーは同種のツールpskkservを基にしている。
  38. %prep
  39. %setup -q -n %{name}-%{version}_IMPORTED_FROM_SVN -q -a 1
  40. %patch1 -p1
  41. %patch2 -p1
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %build
  44. %{__make} -C tinycdb-%{cdb_ver}
  45. for JISYO in %{_datadir}/skk/SKK-JISYO.*
  46. do
  47. LJISYO=`basename $JISYO`
  48. ./skktocdbm.sh < ${JISYO} > ${LJISYO}.cdb
  49. done
  50. %{__make} CDBLIB="-Ltinycdb-%{cdb_ver} -lcdb"
  51. %install
  52. %{__rm} -rf ${RPM_BUILD_ROOT}
  53. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sbindir}
  54. %{__mkdir_p} ${RPM_BUILD_ROOT}/etc/xinetd.d/
  55. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/skk
  56. %{__install} -m0755 dbskkd-cdb ${RPM_BUILD_ROOT}%{_prefix}/sbin
  57. %{__install} -m0644 %{SOURCE2} ${RPM_BUILD_ROOT}/etc/xinetd.d/dbskkd-cdb
  58. %{__install} -m0644 SKK-JISYO.*.cdb ${RPM_BUILD_ROOT}%{_datadir}/skk
  59. %clean
  60. %{__rm} -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-, root, root)
  63. %config(noreplace) /etc/xinetd.d/dbskkd-cdb
  64. %doc CHANGES LICENSE README READMEJP
  65. %{_sbindir}/
  66. %{_datadir}/skk
  67. %config
  68. %changelog
  69. * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 2.00-6
  70. - rebuild with skkdic-2016410
  71. - add Packager tag
  72. * Sat Mar 12 2016 Toshiaki Ara <ara_t@384.jp> 2.00-5
  73. - rebuild with skkdic-20160306
  74. * Mon Dec 28 2015 Toshiaki Ara <ara_t@384.jp> 2.00-4
  75. - rebuild with skkdic-20151227
  76. * Tue Nov 17 2015 Toshiaki Ara <ara_t@384.jp> 2.00-3
  77. - rebuild with skkdic-20151115
  78. - add Requires: xinetd
  79. * Thu Sep 24 2015 Toshiaki Ara <ara_t@384.jp> 2.00-2
  80. - rebuild with skkdic-20150920
  81. * Thu Jul 09 2015 Toshiaki Ara <ara_t@384.jp> 2.00-1
  82. - update 2.00
  83. * Sat Jun 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.01-20
  84. - rebuild with Vine6 environment
  85. * Sat Aug 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-19
  86. - spec in utf-8, new versioning policy
  87. * Wed Jan 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-18vl2
  88. - s/Copyright/License/
  89. * Sun May 25 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  90. - modified for VineLinux
  91. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  92. - rebuilt
  93. * Mon Nov 25 2002 Jens Petersen <petersen@redhat.com> 1.01-17
  94. - improve service description in xinetd config file (#77711)
  95. * Mon Jun 24 2002 Jens Petersen <petersen@redhat.com> 1.01-16
  96. - don't install dbskkd-cdb stripped
  97. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.01-15
  98. - automated rebuild
  99. * Thu May 23 2002 Tim Powers <timp@redhat.com> 1.01-14
  100. - automated rebuild
  101. * Mon Feb 25 2002 Jens Petersen <petersen@redhat.com> 1.01-13
  102. - rebuild in new environment
  103. * Thu Feb 21 2002 Jens Petersen <petersen@redhat.com> 1.01-12
  104. - generate and include SKK-JISYO.L.cdb (formerly in skkdic)
  105. - silence depend files warnings while building freecdb with -include
  106. - no longer include skktocdbm.sh in docs
  107. * Wed Jan 30 2002 Jens Petersen <petersen@redhat.com> 1.01-11
  108. - tidy spec
  109. - freecdb-0.62 included for build, so no longer buildrequires freecdb
  110. - build it first and link with it
  111. * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.01-10
  112. - automated rebuild
  113. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> 1.01-9
  114. - Bump release + rebuild.
  115. * Wed Feb 28 2001 SATO Satoru <ssato@redhat.com>
  116. - add /etc/xinetd.d/dbskkd-cdb
  117. * Wed Feb 28 2001 Bill Nottingham <notting@redhat.com>
  118. - remove %post, just put it in the default /etc/services (#29759)
  119. * Tue Jan 23 2001 Karsten Hopp <karsten@redhat.de>
  120. - change Conflicts: skkserv to Obsoletes: skkserv
  121. * Mon Jan 22 2001 SATO Satoru <ssato@redhat.com>
  122. - fix category
  123. * Mon Jan 21 2001 SATO Satoru <ssato@redhat.com>
  124. - remove some macros
  125. - remove the dictionary
  126. - clean up upstream sources
  127. - clean up SPEC
  128. * Mon Dec 18 2000 SATO Satoru <ssato@redhat.com>
  129. - use system macros
  130. * Mon Aug 4 2000 SATO Satoru <ssato@redhat.com>
  131. - Initial release