kannel-stable-rh7.spec
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:4k
源码类别:

手机WAP编程

开发平台:

WINDOWS

  1. Summary: Kannel SMS/WAP gateway
  2. Name: kannel
  3. Version: 1.0.3
  4. Release: 1
  5. Copyright: Open source, FreeBSD-style license; see COPYING
  6. Group: Applications/Communications
  7. Source: gateway-%{version}.tar.gz
  8. BuildRoot: /var/tmp/%{name}-buildroot
  9. Packager: Peter Gronholm. <peter.gronholm@wapit.com>
  10. Requires: libxml2 >= 2.3.0
  11. %description
  12. Kannel is an Open Source SMS/WAP gateway. WAP is short for Wireless Application
  13. Protocol. It lets the phone act as a simple hypertext browser, but optimizes the 
  14. markup language, scripting language, and the transmission protocols for wireless
  15. use. The optimized protocols are translated to normal Internet protocols by a WAP
  16. gateway. Kannel also works as a SMS gateway for GSM networks. Almost all GSM
  17. phones can send and receive SMS messages, so this is a way to serve many more
  18. clients than just those using WAP phones. 
  19. %prep
  20. rm -rf $RPM_BUILD_ROOT
  21. %setup -n gateway-%{version}
  22. %build
  23. ./configure --with-malloc-native --enable-docs --enable-ssl --enable-mysql
  24. --with-ssl=/usr/lib --with-mysql=/usr/lib
  25. make
  26. %install
  27. make bindir=$RPM_BUILD_ROOT/usr/local/bin suffix=  install
  28. mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
  29. mkdir -p $RPM_BUILD_ROOT/etc/kannel
  30. mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8
  31. install -m 644 gw/wapkannel.conf $RPM_BUILD_ROOT/etc/kannel/kannel.conf
  32. install -m 644 gw/smskannel.conf $RPM_BUILD_ROOT/etc/kannel
  33. install -m 644 gw/kannel.8 $RPM_BUILD_ROOT/usr/share/man/man8
  34. install -m 644 test/fakesmsc $RPM_BUILD_ROOT/usr/local/bin
  35. install -m 644 test/fakewap $RPM_BUILD_ROOT/usr/local/bin
  36. install -m 755 utils/kannel-init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/kannel
  37. install -m 644 utils/run_kannel_box.8 $RPM_BUILD_ROOT/usr/share/man/man8
  38. install -m 644 utils/start-stop-daemon.8 $RPM_BUILD_ROOT/usr/share/man/man8
  39. strip $RPM_BUILD_ROOT/usr/local/bin/bearerbox
  40. strip $RPM_BUILD_ROOT/usr/local/bin/wapbox
  41. strip $RPM_BUILD_ROOT/usr/local/bin/smsbox
  42. strip $RPM_BUILD_ROOT/usr/local/bin/fakesmsc
  43. strip $RPM_BUILD_ROOT/usr/local/bin/fakewap
  44. strip $RPM_BUILD_ROOT/usr/local/bin/run_kannel_box
  45. strip $RPM_BUILD_ROOT/usr/local/bin/start-stop-daemon
  46. strip $RPM_BUILD_ROOT/usr/local/bin/wmlsc
  47. strip $RPM_BUILD_ROOT/usr/local/bin/wmlsdasm
  48. strip $RPM_BUILD_ROOT/usr/local/bin/seewbmp
  49. %files
  50. %defattr(-,root,root)
  51. %doc README README.docbook README.src README.wmlscript INSTALL AUTHORS COPYING VERSION NEWS ChangeLog doc/ gw/control.html contrib/
  52. /usr/local/bin/
  53. /etc/rc.d/init.d/kannel
  54. /usr/share/man/man8
  55. %config(noreplace) /etc/kannel/kannel.conf
  56. %config(noreplace) /etc/kannel/smskannel.conf
  57. %post
  58. ln -sf /usr/local/bin/bearerbox /usr/bin/bearerbox
  59. ln -sf /usr/local/bin/wapbox /usr/bin/wapbox
  60. ln -sf /usr/local/bin/smsbox /usr/bin/smsbox
  61. ln -sf /usr/local/bin/start-stop-daemon /usr/bin/start-stop-daemon
  62. ln -sf /usr/local/bin/run_kannel_box /usr/bin/run_kannel_box
  63. %postun
  64. rm -f /usr/bin/bearerbox
  65. rm -f /usr/bin/wapbox
  66. rm -f /usr/bin/smsbox
  67. rm -f /usr/bin/start-stop-daemon
  68. rm -f /usr/bin/run_kannel_box
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %changelog
  72. * Fri Mar 30 2001 Peter Gronholm <peter@wapit.com>
  73. - added that Kannel requires libxml2 >= 2.3.0
  74. * Fri Mar 30 2001 Peter Gronholm <peter@wapit.com>
  75. - removed that Kannel requires libxml2 < 2.3.0
  76. * Tue Feb 27 2001 Peter Gronholm <peter@wapit.com>
  77. - moved rm -rf $RPM_BUILD_ROOT from %install to %prep
  78. - added that Kannel requires libxml2 < 2.3.0
  79. * Tue Feb 06 2001 Peter Gronholm <peter@wapit.com>
  80. - install configuration files with %config macro.
  81. - clean $RPM_BUILD_ROOT before and after building the rpm package.
  82. - %postun macro: remove links to Kannel binaries from /usr/bin when uninstalling rpm package.
  83. - removed -b option from install command in  %install macro.
  84. * Tue Jan 02 2001 Peter Gronholm <peter@wapit.com>
  85. - initial release of Kannel rpm package.