rskkserv-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. %define rlibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  2. %define rarchdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
  3. Summary: Simple Kana to Kanji conversion server on ruby
  4. Name: rskkserv
  5. Version: 2.94.13
  6. Release: 0vl2
  7. License: GPL
  8. Group: Applications/System
  9. Source0: http://www.unixuser.org/~ysjj/rskkserv/%{name}-%{version}.tar.gz
  10. Source1: rskkserv.init
  11. Patch0: rskkserv.conf.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. #PreReq: chkconfig
  14. BuildPreReq: autoconf ruby ruby-devel >= 1.8
  15. Requires: ruby >= 1.8
  16. Requires: gdbm skkdic
  17. Conflicts: dbskkd-cdb
  18. Provides: skkserv
  19. %description
  20. rskkserv is an alternate version of skkserv implemented by Ruby.
  21. Please use ruby-tcpwrap library for security.
  22. Now, supports multi skkdic and epwing dictionaries(*1).
  23. *1: Needs ruby-eb library for epwing dictionary.
  24. %prep
  25. rm -rf $RPM_BUILD_ROOT
  26. %setup -n rskkserv-cvs -q
  27. %patch0
  28. %build
  29. autoconf
  30. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  31. --with-rubylibdir=%{rlibdir} --with-rubyarchdir=%{rarchdir}
  32. make
  33. %install
  34. #make install DESTDIR=${RPM_BUILD_ROOT} libdir=${RPM_BUILD_ROOT}/usr/lib
  35. make install DESTDIR=${RPM_BUILD_ROOT} \
  36. rsslibdir=${RPM_BUILD_ROOT}%{rlibdir} \
  37. rssarchdir=${RPM_BUILD_ROOT}%{rarchdir}
  38. cd ext
  39. make install DESTDIR=${RPM_BUILD_ROOT} RUBYLIBDIR=${RPM_BUILD_ROOT}%{rlibdir}/skkserv
  40. cd ..
  41. mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/init.d
  42. install -m 755 ${RPM_SOURCE_DIR}/rskkserv.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/rskkserv
  43. %clean
  44. rm -fr ${RPM_BUILD_ROOT}
  45. %post
  46. /sbin/chkconfig --add rskkserv
  47. if test -r /var/run/rskkserv.pid; then
  48. /etc/rc.d/init.d/rskkserv stop
  49. /etc/rc.d/init.d/rskkserv start
  50. fi
  51. %preun
  52. if [ "$1" = 0 ]; then
  53. if test -r /var/run/rskkserv.pid; then
  54. /etc/rc.d/init.d/rskkserv stop
  55. fi
  56. /sbin/chkconfig --del rskkserv
  57. fi
  58. %files
  59. %defattr(-,root,root)
  60. %doc COPYING ChangeLog README TODO
  61. %config /etc/rskkserv.conf
  62. %config /etc/rc.d/init.d/rskkserv
  63. /usr/sbin/skkserv.rb
  64. %{rlibdir}/skkserv
  65. %{rarchdir}/skkserv
  66. %dir /var/cache/rskkserv
  67. %ChangeLog
  68. * Fri Jul 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.94.13-0vl2
  69. - rebuilt with ruby 1.8
  70. - changed Group to Applications/System
  71. * Wed Oct 08 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 2.94.13-0vl1
  72. - new upstream version
  73. - add rsslibdir/rssarchdir to 'make install'
  74. - add 'make install' in ext directory
  75. - add patch0 (rskkserv.conf.patch)
  76. - build with ruby-1.8.0
  77. * Tue May 27 2003 UECHI Yasumasa <uh@u.dhis.portside.net>
  78. - 2.94.12a-0vl2
  79. - add Provides: skkserv
  80. * Sun May 25 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  81. - 2.94.12a-0vl1
  82. - update to 2.94.12a
  83. * Fri Jul 27 2001 UECHI Yasumasa <uh@u.dhis.portside.net>
  84. - 2.94.11-0vl2
  85. - add ruby and ruby-devl>=1.6.4-0vl3 to BuildPreReq
  86. - use Config::CONFIG for library path in files section
  87. * Thu Jul 19 2001 UECHI Yasumasa <uh@u.dhis.portside.net>
  88. - 2.94.11-0vl1
  89. - version up to 2.94.11
  90. * Mon Jul 9 2001 UECHI Yasumasa <uh@u.dhis.portside.net>
  91. - 2.94.9-0vl2
  92. - patch for HENKAN failure when using EBDic module
  93. * Wed Mar 7 2001 Uechi Yasumasa <uh@u.dhis.portside.net>
  94. - 2.94.9-0vl1
  95. - update to 2.94.9
  96. - rewrite spec file for vine
  97. - remove skk dictionaries and tools from this pkg
  98. * Sat Feb 3 2001 Daiki Matsuda <dyky@df-usa.com>
  99. - (2.3.2-5k)
  100. - rebuild againt rpm-3.0.5-39k
  101. * Tue Nov 28 2000 Toru Hoshina <toru@df-usa.com>
  102. - use _initscriptdir macro to keep backword compatibility.
  103. * Tue Oct 16 2000 Toru Hoshina <toru@df-usa.com>
  104. - rebuild against ruby 1.6.1
  105. * Fri Sep 9 2000 Toru Hoshina <t@kondara.org>
  106. - rebuild against glibc 2.1.93.
  107. * Fri Sep 9 2000 Toru Hoshina <t@kondara.org>
  108. - (2.3-0k)
  109. - update to 2.3
  110. * Thu Aug 10 2000 AYUHANA Tomonori <l@kondara.org>
  111. - (2.2-1k)
  112. - update to 2.2
  113. - comment outed %patch0 (needless?)
  114. * Wed Jul 05 2000 Toru Hoshina <t@kondara.org>
  115. - rebuild against glibc-2.1.90, X-4.0, rpm-3.0.5.
  116. * Fri Apr 28 2000 Yasumasa Uechi <uh@kondara.org>
  117. - update to 2.1
  118. * Tue Apr 11 2000 Toru Hoshina <t@kondara.org>
  119. - rskkserv work only with localhost:127.0.0.1.
  120. * Sat Mar 11 2000 Tenkou N. Hattori <tnh@kondara.org>
  121. - add rskkserv-local.rb
  122. * Wed Feb 23 2000 Hidetomo Machi <mcHT@kondara.org>
  123. - add PreReq: /sbin/chkconfig
  124. - include /usr/share/skk directory
  125. * Sat Nov 27 1999 Toru Hoshina <t@kondara.org>
  126. - remove tutrials to avoid conflicts.
  127. * Sun Nov 7 1999 Toru Hoshina <t@kondara.org>
  128. - be a NoSrc :-P
  129. * Sun Sep 5 1999 Toru Hoshina<hoshina@best.com>
  130. - add norika patch.
  131. * Sun Jun 27 1999 Toru Hoshina<hoshina@best.com>
  132. - rebuild against rpm-3.0.2-0.4.
  133. * Tue Mar 16 1999 Toru Hoshina<hoshina@best.com>
  134. - rebuild against rawhide 1.2.9
  135. * Fri Feb 19 1999 Toru Hoshina <hoshina@best.com>
  136. - 1st release