dbskkd-cdb-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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: 19%{?_dist_release}
  7. License: GPL
  8. Group: Applications/System
  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. * Sat Aug 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-19
  67. - spec in utf-8, new versioning policy
  68. * Wed Jan 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-18vl2
  69. - s/Copyright/License/
  70. * Sun May 25 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  71. - modified for VineLinux
  72. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  73. - rebuilt
  74. * Mon Nov 25 2002 Jens Petersen <petersen@redhat.com> 1.01-17
  75. - improve service description in xinetd config file (#77711)
  76. * Mon Jun 24 2002 Jens Petersen <petersen@redhat.com> 1.01-16
  77. - don't install dbskkd-cdb stripped
  78. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.01-15
  79. - automated rebuild
  80. * Thu May 23 2002 Tim Powers <timp@redhat.com> 1.01-14
  81. - automated rebuild
  82. * Mon Feb 25 2002 Jens Petersen <petersen@redhat.com> 1.01-13
  83. - rebuild in new environment
  84. * Thu Feb 21 2002 Jens Petersen <petersen@redhat.com> 1.01-12
  85. - generate and include SKK-JISYO.L.cdb (formerly in skkdic)
  86. - silence depend files warnings while building freecdb with -include
  87. - no longer include skktocdbm.sh in docs
  88. * Wed Jan 30 2002 Jens Petersen <petersen@redhat.com> 1.01-11
  89. - tidy spec
  90. - freecdb-0.62 included for build, so no longer buildrequires freecdb
  91. - build it first and link with it
  92. * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.01-10
  93. - automated rebuild
  94. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> 1.01-9
  95. - Bump release + rebuild.
  96. * Wed Feb 28 2001 SATO Satoru <ssato@redhat.com>
  97. - add /etc/xinetd.d/dbskkd-cdb
  98. * Wed Feb 28 2001 Bill Nottingham <notting@redhat.com>
  99. - remove %post, just put it in the default /etc/services (#29759)
  100. * Tue Jan 23 2001 Karsten Hopp <karsten@redhat.de>
  101. - change Conflicts: skkserv to Obsoletes: skkserv
  102. * Mon Jan 22 2001 SATO Satoru <ssato@redhat.com>
  103. - fix category
  104. * Mon Jan 21 2001 SATO Satoru <ssato@redhat.com>
  105. - remove some macros
  106. - remove the dictionary
  107. - clean up upstream sources
  108. - clean up SPEC
  109. * Mon Dec 18 2000 SATO Satoru <ssato@redhat.com>
  110. - use system macros
  111. * Mon Aug 4 2000 SATO Satoru <ssato@redhat.com>
  112. - Initial release