asterisk.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Summary: Asterisk PBX
  2. Name: asterisk
  3. Distribution: RedHat
  4. Version: CVS
  5. Release: 1
  6. Copyright: Linux Support Services, inc.
  7. Group: Utilities/System
  8. Vendor: Linux Support Services, inc.
  9. Packager: Robert Vojta <vojta@ipex.cz>
  10. BuildRoot: /tmp/asterisk
  11. %description
  12. Asterisk is an Open Source PBX and telephony development platform that
  13. can both replace a conventional PBX and act as a platform for developing
  14. custom telephony applications for delivering dynamic content over a
  15. telephone similarly to how one can deliver dynamic content through a
  16. web browser using CGI and a web server.
  17. Asterisk talks to a variety of telephony hardware including BRI, PRI,
  18. POTS, and IP telephony clients using the Inter-Asterisk eXchange
  19. protocol (e.g. gnophone or miniphone). For more information and a
  20. current list of supported hardware, see www.asteriskpbx.com.
  21. %package devel
  22. Summary: Header files for building Asterisk modules
  23. Group: Development/Libraries
  24. %description devel
  25. This package contains the development header files that are needed
  26. to compile 3rd party modules.
  27. %post
  28. ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
  29. %files
  30. #
  31. # Configuration files
  32. #
  33. %attr(0755,root,root) %dir %{_sysconfdir}/asterisk
  34. %config(noreplace) %attr(0640,root,root) %{_sysconfdir}/asterisk/*.conf
  35. %config(noreplace) %attr(0640,root,root) %{_sysconfdir}/asterisk/*.adsi
  36. #
  37. # RedHat specific init script file
  38. #
  39. %attr(0755,root,root) /etc/rc.d/init.d/asterisk
  40. #
  41. # Modules
  42. #
  43. %attr(0755,root,root) %dir /usr/lib/asterisk
  44. %attr(0755,root,root) %dir /usr/lib/asterisk/modules
  45. %attr(0755,root,root) /usr/lib/asterisk/modules/*.so
  46. #
  47. # Asterisk
  48. #
  49. %attr(0755,root,root) /usr/sbin/asterisk
  50. %attr(0755,root,root) /usr/sbin/safe_asterisk
  51. %attr(0755,root,root) /usr/sbin/astgenkey
  52. %attr(0755,root,root) /usr/sbin/astman
  53. %attr(0755,root,root) /usr/sbin/autosupport
  54. #
  55. # Sound files
  56. #
  57. %attr(0755,root,root) %dir /var/lib/asterisk
  58. %attr(0755,root,root) %dir /var/lib/asterisk/sounds
  59. %attr(0644,root,root) /var/lib/asterisk/sounds/*.gsm
  60. %attr(0755,root,root) %dir /var/lib/asterisk/sounds/digits
  61. %attr(0644,root,root) /var/lib/asterisk/sounds/digits/*.gsm
  62. %attr(0755,root,root) %dir /var/lib/asterisk/sounds/letters
  63. %attr(0644,root,root) /var/lib/asterisk/sounds/letters/*.gsm
  64. %attr(0755,root,root) %dir /var/lib/asterisk/sounds/phonetic
  65. %attr(0644,root,root) /var/lib/asterisk/sounds/phonetic/*.gsm
  66. %attr(0755,root,root) %dir /var/lib/asterisk/mohmp3
  67. %attr(0644,root,root) /var/lib/asterisk/mohmp3/*
  68. %attr(0755,root,root) %dir /var/lib/asterisk/images
  69. %attr(0644,root,root) /var/lib/asterisk/images/*
  70. %attr(0755,root,root) %dir /var/lib/asterisk/keys
  71. %attr(0644,root,root) /var/lib/asterisk/keys/*
  72. %attr(0755,root,root) %dir /var/lib/asterisk/agi-bin
  73. %attr(0755,root,root) %dir /var/lib/asterisk/agi-bin/*
  74. #
  75. # Man page
  76. #
  77. %attr(0644,root,root) /usr/share/man/man8/asterisk.8.gz
  78. #
  79. # Firmware
  80. #
  81. %attr(0755,root,root) %dir /var/lib/asterisk/firmware
  82. %attr(0755,root,root) %dir /var/lib/asterisk/firmware/iax
  83. %attr(0755,root,root) /var/lib/asterisk/firmware/iax/*.bin
  84. #
  85. # Example voicemail files
  86. #
  87. %attr(0755,root,root) %dir /var/spool/asterisk
  88. %attr(0755,root,root) %dir /var/spool/asterisk/voicemail
  89. %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default
  90. %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default/1234
  91. %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default/1234/INBOX
  92. %attr(0644,root,root) /var/spool/asterisk/voicemail/default/1234/*.gsm
  93. %files devel
  94. #
  95. # Include files
  96. #
  97. %attr(0755,root,root) %dir %{_includedir}/asterisk
  98. %attr(0644,root,root) %{_includedir}/asterisk/*.h