dbskkd-cdb-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. %define cdb_ver 0.62
  2. Summary: A dictionary server for the SKK Japanese input method system
  3. Summary(ja): SKK 日本語入力メソッドの辞書サーバ
  4. Name: dbskkd-cdb
  5. Version: 1.01
  6. Release: 21%{?_dist_release}
  7. License: BSD
  8. Group: Applications/Services
  9. Source0: http://www.ne.jp/asahi/bdx/info/software/%{name}-%{version}.tar.gz
  10. Source1: dbskkd-cdb.xinetd
  11. # from freecdb.spec
  12. #Source2: ftp://koobera.math.uic.edu/www/software/%{name}-%{version}.tar.gz
  13. #URL2: ftp://koobera.math.uic.edu/www/cdb.html
  14. Source2: ftp://ftp.debian.org/debian/dists/woody/main/source/utils/freecdb_%{cdb_ver}.tar.gz
  15. Patch1: dbskkd-cdb-1.01.makefile.patch
  16. Patch2: dbskkd-cdb-freecdb.makefile.patch
  17. Patch3: dbskkd-cdb-1.01.strip.patch
  18. URL: http://www.ne.jp/asahi/bdx/info/software/jp-dbskkd.html
  19. BuildRequires: skkdic >= 20020220-1
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  21. Provides: skkserv
  22. Obsoletes: skkserv
  23. Conflicts: skkdic <= 20010617-2
  24. Conflicts: rskkserv
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. %description
  28. dbskkd-cdb is a dictionary server for the SKK Japanese input method
  29. system. dbskkd-cdb is based on the code of skkserv (the original SKK
  30. server) 3.9.3, using the cdb constant database package of
  31. D. J. Bernstein (DJB) for faster dictionary access.
  32. #Add an entry for dbskkd-cdb to /etc/hosts.allow when using with tcp_wrappers.
  33. #ex. dbskkd-cdb: 127.0.0.1
  34. %prep
  35. %setup -q -a 2
  36. %patch1 -p1
  37. %patch2 -p1
  38. %patch3 -p1 -b .strip
  39. rm -fr $RPM_BUILD_ROOT
  40. %build
  41. make -C freecdb-%{cdb_ver}
  42. for JISYO in %{_datadir}/skk/SKK-JISYO.*
  43. do
  44. LJISYO=`basename $JISYO`
  45. ./skktocdbm.sh < $JISYO | freecdb-%{cdb_ver}/cdbmake $LJISYO.cdb $LJISYO.tmp
  46. done
  47. make LDFLAGS="-Lfreecdb-%{cdb_ver} -lfreecdb"
  48. %install
  49. rm -fr $RPM_BUILD_ROOT
  50. mkdir -p $RPM_BUILD_ROOT%{_prefix}/sbin
  51. mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d/
  52. mkdir -p $RPM_BUILD_ROOT%{_datadir}/skk
  53. make DESTDIR=$RPM_BUILD_ROOT install
  54. install -m0644 %SOURCE1 $RPM_BUILD_ROOT/etc/xinetd.d/dbskkd-cdb
  55. install -m0644 SKK-JISYO.*.cdb $RPM_BUILD_ROOT%{_datadir}/skk
  56. %clean
  57. rm -fr $RPM_BUILD_ROOT
  58. %files
  59. %defattr(-, root, root)
  60. %config(noreplace) /etc/xinetd.d/dbskkd-cdb
  61. %doc LICENSE Release-Notes.English Release-Notes.Japanese
  62. %{_sbindir}/*
  63. %{_datadir}/skk
  64. %config
  65. %changelog
  66. * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.01-21
  67. - rebuilt on current VineSeed
  68. - moved to Applications/Services Group
  69. * Sat Jun 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.01-20
  70. - rebuild with Vine6 environment
  71. * Sat Aug 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-19
  72. - spec in utf-8, new versioning policy
  73. * Wed Jan 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-18vl2
  74. - s/Copyright/License/
  75. * Sun May 25 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  76. - modified for VineLinux
  77. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  78. - rebuilt
  79. * Mon Nov 25 2002 Jens Petersen <petersen@redhat.com> 1.01-17
  80. - improve service description in xinetd config file (#77711)
  81. * Mon Jun 24 2002 Jens Petersen <petersen@redhat.com> 1.01-16
  82. - don't install dbskkd-cdb stripped
  83. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.01-15
  84. - automated rebuild
  85. * Thu May 23 2002 Tim Powers <timp@redhat.com> 1.01-14
  86. - automated rebuild
  87. * Mon Feb 25 2002 Jens Petersen <petersen@redhat.com> 1.01-13
  88. - rebuild in new environment
  89. * Thu Feb 21 2002 Jens Petersen <petersen@redhat.com> 1.01-12
  90. - generate and include SKK-JISYO.L.cdb (formerly in skkdic)
  91. - silence depend files warnings while building freecdb with -include
  92. - no longer include skktocdbm.sh in docs
  93. * Wed Jan 30 2002 Jens Petersen <petersen@redhat.com> 1.01-11
  94. - tidy spec
  95. - freecdb-0.62 included for build, so no longer buildrequires freecdb
  96. - build it first and link with it
  97. * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.01-10
  98. - automated rebuild
  99. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> 1.01-9
  100. - Bump release + rebuild.
  101. * Wed Feb 28 2001 SATO Satoru <ssato@redhat.com>
  102. - add /etc/xinetd.d/dbskkd-cdb
  103. * Wed Feb 28 2001 Bill Nottingham <notting@redhat.com>
  104. - remove %post, just put it in the default /etc/services (#29759)
  105. * Tue Jan 23 2001 Karsten Hopp <karsten@redhat.de>
  106. - change Conflicts: skkserv to Obsoletes: skkserv
  107. * Mon Jan 22 2001 SATO Satoru <ssato@redhat.com>
  108. - fix category
  109. * Mon Jan 21 2001 SATO Satoru <ssato@redhat.com>
  110. - remove some macros
  111. - remove the dictionary
  112. - clean up upstream sources
  113. - clean up SPEC
  114. * Mon Dec 18 2000 SATO Satoru <ssato@redhat.com>
  115. - use system macros
  116. * Mon Aug 4 2000 SATO Satoru <ssato@redhat.com>
  117. - Initial release