Fix a segfault when trying to tab complete the "core show uptime" command.
[asterisk/asterisk.git] / redhat / asterisk.spec
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
12 %description
13 Asterisk is an Open Source PBX and telephony development platform that
14 can both replace a conventional PBX and act as a platform for developing
15 custom telephony applications for delivering dynamic content over a
16 telephone similarly to how one can deliver dynamic content through a
17 web browser using CGI and a web server.
18
19 Asterisk talks to a variety of telephony hardware including BRI, PRI, 
20 POTS, and IP telephony clients using the Inter-Asterisk eXchange
21 protocol (e.g. gnophone or miniphone).  For more information and a
22 current list of supported hardware, see www.asteriskpbx.com.
23
24 %package        devel
25 Summary:        Header files for building Asterisk modules
26 Group:          Development/Libraries
27
28 %description devel
29 This package contains the development  header files that are needed
30 to compile 3rd party modules.
31
32 %post
33 ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
34
35 %files
36 #
37 # Configuration files
38 #
39 %attr(0755,root,root) %dir    /etc/asterisk
40 %config(noreplace) %attr(0640,root,root) /etc/asterisk/*.conf
41 %config(noreplace) %attr(0640,root,root) /etc/asterisk/*.adsi
42 %config(noreplace) %attr(0640,root,root) /etc/asterisk/extensions.ael
43
44 #
45 # RedHat specific init script file
46 #
47 %attr(0755,root,root)       /etc/rc.d/init.d/asterisk
48
49 #
50 # Modules
51 #
52 %attr(0755,root,root) %dir /usr/lib/asterisk
53 %attr(0755,root,root) %dir /usr/lib/asterisk/modules
54 %attr(0755,root,root)      /usr/lib/asterisk/modules/*.so
55
56 #
57 # Asterisk
58 #
59 %attr(0755,root,root)      /usr/sbin/asterisk
60 %attr(0755,root,root)      /usr/sbin/safe_asterisk
61 %attr(0755,root,root)      /usr/sbin/astgenkey
62 %attr(0755,root,root)      /usr/sbin/astman
63 %attr(0755,root,root)      /usr/sbin/autosupport
64 %attr(0755,root,root)      /usr/sbin/smsq
65 %attr(0755,root,root)      /usr/sbin/stereorize
66 %attr(0755,root,root)      /usr/sbin/streamplayer
67
68 #
69 # CDR Locations
70 #
71 %attr(0755,root,root) %dir /var/log/asterisk
72 %attr(0755,root,root) %dir /var/log/asterisk/cdr-csv
73 #
74 # Running directories
75 #
76 %attr(0755,root,root) %dir /var/run
77 #
78 # Sound files
79 #
80 %attr(0755,root,root) %dir /var/lib/asterisk
81 %attr(0755,root,root) %dir /var/lib/asterisk/sounds
82 %attr(0644,root,root)      /var/lib/asterisk/sounds/*.gsm
83 %attr(0755,root,root) %dir /var/lib/asterisk/sounds/dictate
84 %attr(0644,root,root)      /var/lib/asterisk/sounds/dictate/*.gsm
85 %attr(0755,root,root) %dir /var/lib/asterisk/sounds/digits
86 %attr(0644,root,root)      /var/lib/asterisk/sounds/digits/*.gsm
87 %attr(0755,root,root) %dir /var/lib/asterisk/sounds/letters
88 %attr(0644,root,root)      /var/lib/asterisk/sounds/letters/*.gsm
89 %attr(0755,root,root) %dir /var/lib/asterisk/sounds/phonetic
90 %attr(0644,root,root)      /var/lib/asterisk/sounds/phonetic/*.gsm
91 %attr(0755,root,root) %dir /var/lib/asterisk/sounds/silence
92 %attr(0644,root,root)      /var/lib/asterisk/sounds/silence/*.gsm
93 %attr(0755,root,root) %dir /var/lib/asterisk/mohmp3
94 %attr(0644,root,root)      /var/lib/asterisk/mohmp3/*
95 %attr(0755,root,root) %dir /var/lib/asterisk/images
96 %attr(0644,root,root)      /var/lib/asterisk/images/*
97 %attr(0755,root,root) %dir /var/lib/asterisk/keys
98 %attr(0644,root,root)      /var/lib/asterisk/keys/*
99 %attr(0755,root,root) %dir /var/lib/asterisk/agi-bin
100 %attr(0755,root,root) %dir /var/lib/asterisk/agi-bin/*
101 #
102 # Man page
103 #
104 %attr(0644,root,root)      /usr/share/man/man8/asterisk.8
105 %attr(0644,root,root)      /usr/share/man/man8/astgenkey.8
106 %attr(0644,root,root)      /usr/share/man/man8/autosupport.8
107 %attr(0644,root,root)      /usr/share/man/man8/safe_asterisk.8
108
109 #
110 # Firmware
111 #
112 %attr(0755,root,root) %dir /var/lib/asterisk/firmware
113 %attr(0755,root,root) %dir /var/lib/asterisk/firmware/iax
114 %attr(0755,root,root)      /var/lib/asterisk/firmware/iax/*.bin
115
116 #
117 # Example voicemail files
118 #
119 %attr(0755,root,root) %dir /var/spool/asterisk
120 %attr(0755,root,root) %dir /var/spool/asterisk/voicemail
121 %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default
122 %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default/1234
123 %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default/1234/INBOX
124 %attr(0644,root,root)      /var/spool/asterisk/voicemail/default/1234/*.gsm
125
126 #
127 # Misc other spool
128 #
129 %attr(0755,root,root) %dir /var/spool/asterisk/system
130 %attr(0755,root,root) %dir /var/spool/asterisk/tmp
131
132 %files devel
133 #
134 # Include files
135 #
136 %attr(0755,root,root) %dir %{_includedir}/asterisk
137 %attr(0644,root,root) %{_includedir}/asterisk/*.h