]>
Commit | Line | Data |
---|---|---|
febad39b MJ |
1 | # disable rpath checking |
2 | %define __arch_install_post /usr/lib/rpm/check-buildroot | |
78cc2f40 MJ |
3 | %define _prefix /opt/freeswitch |
4 | %define prefix %{_prefix} | |
5 | %define sysconfdir /opt/freeswitch/conf | |
6 | %define _sysconfdir %{sysconfdir} | |
7 | ||
8 | Name: freeswitch | |
9 | Summary: FreeSWITCH open source telephony platform | |
10 | License: MPL | |
11 | Group: Productivity/Telephony/Servers | |
12 | Version: 1.0.4 | |
13 | Release: 1 | |
14 | URL: http://www.freeswitch.org/ | |
15 | Packager: Michal Bielicki | |
16 | Vendor: http://www.freeswitch.org/ | |
17 | Source0: http://files.freeswitch.org/%{name}-%{version}.tar.bz2 | |
3b43e3f7 | 18 | Source1: http://files.freeswitch.org/downloads/libs/celt-0.7.0.tar.gz |
78cc2f40 MJ |
19 | Source2: http://files.freeswitch.org/downloads/libs/flite-1.3.99-latest.tar.gz |
20 | Source3: http://files.freeswitch.org/downloads/libs/lame-3.97.tar.gz | |
21 | Source4: http://files.freeswitch.org/downloads/libs/libshout-2.2.2.tar.gz | |
22 | Source5: http://files.freeswitch.org/downloads/libs/mpg123.tar.gz | |
23 | Source6: http://files.freeswitch.org/downloads/libs/openldap-2.4.11.tar.gz | |
24 | Source7: http://files.freeswitch.org/downloads/libs/pocketsphinx-0.5.99-latest.tar.gz | |
25 | Source8: http://files.freeswitch.org/downloads/libs/soundtouch-1.3.1.tar.gz | |
26 | Source9: http://files.freeswitch.org/downloads/libs/sphinxbase-0.4.99-latest.tar.gz | |
1caeb602 | 27 | Source10: http://files.freeswitch.org/downloads/libs/communicator_semi_6000_20080321.tar.gz |
78cc2f40 MJ |
28 | Prefix: %{prefix} |
29 | ||
30 | #AutoReqProv: no | |
31 | ||
32 | %if 0%{?suse_version} > 100 | |
33 | #BuildRequires: openldap2-devel | |
34 | BuildRequires: lzo-devel | |
35 | %else | |
36 | BuildRequires: openldap-devel | |
37 | %endif | |
38 | BuildRequires: autoconf | |
39 | BuildRequires: automake | |
40 | BuildRequires: curl-devel | |
41 | BuildRequires: gcc-c++ | |
42 | BuildRequires: gnutls-devel | |
43 | BuildRequires: libtool >= 1.5.17 | |
44 | BuildRequires: ncurses-devel | |
45 | BuildRequires: openssl-devel | |
46 | BuildRequires: perl | |
47 | BuildRequires: pkgconfig | |
48 | BuildRequires: termcap | |
49 | BuildRequires: unixODBC-devel | |
50 | BuildRequires: gdbm-devel | |
51 | BuildRequires: db4-devel | |
52 | BuildRequires: python-devel | |
53 | BuildRequires: libogg-devel | |
54 | BuildRequires: libvorbis-devel | |
1e723764 | 55 | BuildRequires: libjpeg-devel |
78cc2f40 MJ |
56 | #BuildRequires: mono-devel |
57 | BuildRequires: alsa-lib-devel | |
58 | BuildRequires: which | |
59 | BuildRequires: zlib-devel | |
493125bd | 60 | BuildRequires: e2fsprogs-devel |
78cc2f40 MJ |
61 | |
62 | %if %{?suse_version:1}0 | |
63 | %if 0%{?suse_version} > 910 | |
64 | #BuildRequires: autogen | |
65 | %endif | |
66 | %endif | |
67 | ||
68 | %if 0%{?suse_version} > 800 | |
69 | #PreReq: /usr/sbin/useradd /usr/sbin/groupadd | |
70 | PreReq: %insserv_prereq %fillup_prereq | |
71 | %endif | |
72 | ||
73 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
74 | ||
75 | %description | |
76 | FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice | |
77 | and chat driven products scaling from a soft-phone up to a soft-switch. It can be used as a | |
78 | simple switching engine, a media gateway or a media server to host IVR applications using | |
79 | simple scripts or XML to control the callflow. | |
80 | ||
93f8288c | 81 | We support various communication technologies such as SIP, H.323 and GoogleTalk making |
78cc2f40 MJ |
82 | it easy to interface with other open source PBX systems such as sipX, OpenPBX, Bayonne, YATE or Asterisk. |
83 | ||
84 | We also support both wide and narrow band codecs making it an ideal solution to bridge legacy | |
85 | devices to the future. The voice channels and the conference bridge module all can operate | |
86 | at 8, 16 or 32 kilohertz and can bridge channels of different rates. | |
87 | ||
88 | FreeSWITCH runs on several operating systems including Windows, Max OS X, Linux, BSD and Solaris | |
89 | on both 32 and 64 bit platforms. | |
90 | ||
91 | Our developers are heavily involved in open source and have donated code and other resources to | |
92 | other telephony projects including sipXecs, OpenSER, Asterisk, CodeWeaver and OpenPBX. | |
93 | ||
94 | %package devel | |
95 | Summary: Development package for FreeSWITCH open source telephony platform | |
96 | Group: System/Libraries | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | ||
99 | %description devel | |
100 | FreeSWITCH development files | |
101 | ||
102 | %package codec-passthru-amrwb | |
103 | Summary: Pass-through AMR WideBand Codec support for FreeSWITCH open source telephony platform | |
104 | Group: System/Libraries | |
105 | Requires: %{name} = %{version}-%{release} | |
106 | Conflicts: codec-amrwb | |
107 | ||
108 | %description codec-passthru-amrwb | |
109 | Pass-through AMR WideBand Codec support for FreeSWITCH open source telephony platform | |
110 | ||
111 | ||
112 | %package codec-passthru-amr | |
113 | Summary: Pass-through AMR Codec support for FreeSWITCH open source telephony platform | |
114 | Group: System/Libraries | |
115 | Requires: %{name} = %{version}-%{release} | |
116 | Conflicts: codec-amr | |
117 | ||
118 | %description codec-passthru-amr | |
119 | Pass-through AMR Codec support for FreeSWITCH open source telephony platform | |
120 | ||
121 | %package codec-passthru-g723_1 | |
122 | Summary: Pass-through g723.1 Codec support for FreeSWITCH open source telephony platform | |
123 | Group: System/Libraries | |
124 | Requires: %{name} = %{version}-%{release} | |
125 | Conflicts: codec-g723_1 | |
126 | ||
127 | %description codec-passthru-g723_1 | |
128 | Pass-through g723.1 Codec support for FreeSWITCH open source telephony platform | |
129 | ||
130 | %package codec-passthru-g729 | |
131 | Summary: Pass-through g729 Codec support for FreeSWITCH open source telephony platform | |
132 | Group: System/Libraries | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | Conflicts: codec-g729 | |
135 | ||
136 | %description codec-passthru-g729 | |
137 | Pass-through g729 Codec support for FreeSWITCH open source telephony platform | |
138 | ||
139 | %package spidermonkey | |
140 | Summary: JavaScript support for the FreeSWITCH open source telephony platform | |
141 | Group: System/Libraries | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | ||
144 | %description spidermonkey | |
145 | ||
146 | %package lua | |
147 | Summary: Lua support for the FreeSWITCH open source telephony platform | |
148 | Group: System/Libraries | |
149 | Requires: %{name} = %{version}-%{release} | |
150 | ||
151 | %description lua | |
152 | ||
153 | %package perl | |
154 | Summary: Perl support for the FreeSWITCH open source telephony platform | |
155 | Group: System/Libraries | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | ||
158 | %description perl | |
159 | ||
160 | %package python | |
161 | Summary: Python support for the FreeSWITCH open source telephony platform | |
162 | Group: System/Libraries | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | ||
165 | %description python | |
166 | ||
167 | ||
168 | %package lang-en | |
5dc57c42 | 169 | Summary: Provides english language dependand modules and speech config for the FreeSWITCH Open Source telephone platform. |
78cc2f40 MJ |
170 | Group: System/Libraries |
171 | Requires: %{name} = %{version}-%{release} | |
172 | ||
173 | %description lang-en | |
174 | English language phrases module and directory structure for say module and voicemail | |
175 | ||
176 | %package lang-ru | |
5dc57c42 | 177 | Summary: Provides russian language dependand modules and speech config for the FreeSWITCH Open Source telephone platform. |
78cc2f40 MJ |
178 | Group: System/LibrariesRequires: %{name} = %{version}-%{release} |
179 | ||
180 | %description lang-ru | |
181 | Russian language phrases module and directory structure for say module and voicemail | |
182 | ||
183 | %package lang-fr | |
5dc57c42 | 184 | Summary: Provides french language dependand modules and speech config for the FreeSWITCH Open Source telephone platform. |
78cc2f40 MJ |
185 | Group: System/LibrariesRequires: %{name} = %{version}-%{release} |
186 | ||
187 | %description lang-fr | |
188 | French language phrases module and directory structure for say module and voicemail | |
189 | ||
190 | %package lang-de | |
5dc57c42 | 191 | Summary: Provides german language dependand modules and speech config for the FreeSWITCH Open Source telephone platform. |
78cc2f40 MJ |
192 | Group: System/LibrariesRequires: %{name} = %{version}-%{release} |
193 | ||
194 | %description lang-de | |
195 | German language phrases module and directory structure for say module and voicemail | |
196 | ||
197 | ||
198 | %package openzap | |
5dc57c42 | 199 | Summary: Provides a unified interface to hardware TDM cards and ss7 stacks for FreeSWITCH |
78cc2f40 MJ |
200 | Group: System/Libraries |
201 | Requires: %{name} = %{version}-%{release} | |
202 | ||
203 | %description openzap | |
204 | OpenZAP | |
205 | ||
78cc2f40 MJ |
206 | %prep |
207 | %setup -b0 -q | |
208 | cp %{SOURCE1} libs/ | |
209 | cp %{SOURCE2} libs/ | |
210 | cp %{SOURCE3} libs/ | |
211 | cp %{SOURCE4} libs/ | |
212 | cp %{SOURCE5} libs/ | |
213 | cp %{SOURCE6} libs/ | |
214 | cp %{SOURCE7} libs/ | |
215 | cp %{SOURCE8} libs/ | |
216 | cp %{SOURCE9} libs/ | |
1caeb602 | 217 | cp %{SOURCE10} libs/ |
78cc2f40 MJ |
218 | |
219 | ||
220 | %build | |
221 | %ifos linux | |
222 | %if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030 | |
223 | export CFLAGS="$CFLAGS -fstack-protector" | |
224 | %endif | |
225 | %if 0%{?fedora_version} >= 8 | |
226 | export QA_RPATHS=$[ 0x0001|0x0002 ] | |
227 | %endif | |
228 | %endif | |
229 | ||
230 | PASSTHRU_CODEC_MODULES="codecs/mod_g729 codecs/mod_g723_1 codecs/mod_amr codecs/mod_amrwb" | |
54038e99 | 231 | APPLICATIONS_MODULES="applications/mod_commands applications/mod_conference applications/mod_dptools applications/mod_enum applications/mod_esf applications/mod_expr applications/mod_fifo applications/mod_limit applications/mod_rss applications/mod_voicemail applications/mod_directory applications/mod_fsv applications/mod_lcr applications/mod_easyroute applications/mod_stress applications/mod_vmd applications/mod_limit applications/mod_soundtouch applications/mod_fax" |
5a75934b | 232 | CODECS_MODULES="codecs/mod_ilbc codecs/mod_h26x codecs/mod_voipcodecs codecs/mod_speex codecs/mod_celt codecs/mod_siren codecs/mod_bv" |
78cc2f40 MJ |
233 | DIALPLANS_MODULES="dialplans/mod_dialplan_asterisk dialplans/mod_dialplan_directory dialplans/mod_dialplan_xml" |
234 | DIRECTORIES_MODULES="" | |
93f8288c | 235 | ENDPOINTS_MODULES="endpoints/mod_dingaling endpoints/mod_portaudio endpoints/mod_sofia ../../libs/openzap/mod_openzap endpoints/mod_loopback" |
78cc2f40 MJ |
236 | ASR_TTS_MODULES="asr_tts/mod_pocketsphinx asr_tts/mod_flite asr_tts/mod_unimrcp" |
237 | EVENT_HANDLERS_MODULES="event_handlers/mod_event_multicast event_handlers/mod_event_socket event_handlers/mod_cdr_csv" | |
5a24927f | 238 | FORMATS_MODULES="formats/mod_local_stream formats/mod_native_file formats/mod_sndfile formats/mod_tone_stream formats/mod_shout formats/mod_file_string" |
0c1ae13d | 239 | LANGUAGES_MODULES="languages/mod_spidermonkey languages/mod_perl languages/mod_lua languages/mod_python" |
78cc2f40 MJ |
240 | LOGGERS_MODULES="loggers/mod_console loggers/mod_logfile loggers/mod_syslog" |
241 | SAY_MODULES="say/mod_say_en say/mod_say_de say/mod_say_fr" | |
242 | TIMERS_MODULES= | |
0c1ae13d | 243 | DISABLED_MODULES="applications/mod_soundtouch asr_tts/mod_cepstral asr_tts/mod_lumenvox event_handlers/mod_event_test event_handlers/mod_radius_cdr event_handlers/mod_zeroconf languages/mod_managed languages/mod_java say/mod_say_it say/mod_say_es say/mod_say_nl languages/mod_yaml" |
78cc2f40 | 244 | XML_INT_MODULES="xml_int/mod_xml_rpc xml_int/mod_xml_curl xml_int/mod_xml_cdr " |
0c1ae13d | 245 | MYMODULES="$PASSTHRU_CODEC_MODULES $APPLICATIONS_MODULES $CODECS_MODULES $DIALPLANS_MODULES $DIRECTORIES_MODULES $ENDPOINTS_MODULES $ASR_TTS_MODULES $EVENT_HANDLERS_MODULES $FORMATS_MODULES $LANGUAGES_MODULES $LOGGERS_MODULES $SAY_MODULES $TIMERS_MODULES $XML_INT_MODULES" |
78cc2f40 MJ |
246 | |
247 | export MODULES=$MYMODULES | |
248 | test ! -f modules.conf || rm -f modules.conf | |
249 | touch modules.conf | |
250 | for i in $MODULES; do echo $i >> modules.conf; done | |
251 | export VERBOSE=yes | |
252 | export DESTDIR=$RPM_BUILD_ROOT/ | |
253 | export PKG_CONFIG_PATH=/usr/bin/pkg-config:$PKG_CONFIG_PATH | |
254 | export ACLOCAL_FLAGS="-I /usr/share/aclocal" | |
255 | ||
256 | if test ! -f Makefile.in | |
257 | then | |
258 | ./bootstrap.sh | |
259 | fi | |
260 | ||
261 | ||
262 | %configure -C \ | |
263 | --prefix=%{prefix} \ | |
264 | --infodir=%{_infodir} \ | |
265 | --mandir=%{_mandir} \ | |
266 | --sysconfdir=%{sysconfdir} \ | |
267 | --libdir=%{prefix}/lib \ | |
268 | --enable-core-libedit-support \ | |
269 | --enable-core-odbc-support \ | |
270 | %ifos linux | |
271 | %if 0%{?fedora_version} >= 8 | |
272 | %else | |
273 | --with-libcurl \ | |
274 | %endif | |
275 | %endif | |
276 | --with-openssl \ | |
277 | %{?configure_options} | |
278 | ||
279 | #Create the version header file here | |
280 | cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/%{version}/g" > src/include/switch_version.h | |
281 | touch .noversion | |
282 | ||
283 | %{__make} | |
284 | ||
285 | %install | |
286 | # delete unsupported langugages for now | |
287 | #rm -rf conf/lang/de | |
288 | #rm -rf conf/lang/fr | |
289 | #rm -rf $RPM_BUILD_ROOT%{prefix}/conf/lang/de | |
290 | #rm -rf $RPM_BUILD_ROOT%{prefix}/conf/lang/fr | |
291 | ||
292 | %{__make} DESTDIR=$RPM_BUILD_ROOT install | |
293 | ||
78cc2f40 MJ |
294 | # Create a log dir |
295 | %{__mkdir} -p $RPM_BUILD_ROOT%{prefix}/log | |
296 | ||
297 | %ifos linux | |
298 | # Install init files | |
299 | # On SuSE: | |
300 | %if 0%{?suse_version} > 100 | |
301 | %{__install} -D -m 744 build/freeswitch.init.suse $RPM_BUILD_ROOT/etc/init.d/freeswitch | |
302 | %else | |
303 | # On RedHat like | |
304 | %{__install} -D -m 0755 build/freeswitch.init.redhat $RPM_BUILD_ROOT/etc/init.d/freeswitch | |
305 | %endif | |
306 | # On SuSE make /usr/sbin/rcfreeswitch a link to /etc/init.d/freeswitch | |
307 | %if 0%{?suse_version} > 100 | |
308 | %{__mkdir} -p $RPM_BUILD_ROOT/usr/sbin | |
309 | %{__ln_s} -f /etc/init.d/freeswitch $RPM_BUILD_ROOT/usr/sbin/rcfreeswitch | |
310 | %endif | |
311 | # Add the sysconfiguration file | |
312 | %{__install} -D -m 744 build/freeswitch.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/freeswitch | |
313 | # Add monit file | |
314 | %{__install} -D -m 644 build/freeswitch.monitrc $RPM_BUILD_ROOT/etc/monit.d/freeswitch.monitrc | |
315 | %endif | |
316 | ||
317 | ||
318 | # Add a freeswitch user with group daemon | |
319 | %pre | |
320 | %ifos linux | |
ae7aa36f MB |
321 | if ! /usr/bin/id freeswitch &>/dev/null; then |
322 | /usr/sbin/useradd -r -g daemon -s /bin/false -c "The FreeSWITCH Open Source Voice Platform" -d %{prefix} freeswitch || \ | |
323 | %logmsg "Unexpected error adding user \"freeswitch\". Aborting installation." | |
324 | fi | |
78cc2f40 MJ |
325 | %endif |
326 | ||
327 | %post | |
328 | %{?run_ldconfig:%run_ldconfig} | |
329 | # Make FHS2.0 happy | |
330 | %{__mkdir} -p /etc/opt | |
331 | %{__ln_s} -f %{prefix}/conf /etc%{prefix} | |
332 | ||
333 | chkconfig --add freeswitch | |
334 | ||
335 | %postun | |
336 | %{?run_ldconfig:%run_ldconfig} | |
ae7aa36f MB |
337 | if [ $1 -eq 0 ]; then |
338 | userdel freeswitch || %logmsg "User \"freeswitch\" could not be deleted." | |
339 | fi | |
78cc2f40 MJ |
340 | |
341 | %clean | |
342 | %{__rm} -rf $RPM_BUILD_ROOT | |
343 | ||
344 | %files | |
345 | %defattr(-,freeswitch,daemon) | |
346 | %ifos linux | |
347 | %dir %attr(0750, root, root) /etc/monit.d | |
348 | %endif | |
349 | %dir %attr(0750, freeswitch, daemon) %{prefix}/db | |
350 | %dir %attr(0750, freeswitch, daemon) %{prefix}/log | |
146c7f8d | 351 | %dir %attr(0750, freeswitch, daemon) %{prefix}/run |
78cc2f40 MJ |
352 | %dir %attr(0750, freeswitch, daemon) %{prefix}/log/xml_cdr |
353 | %dir %attr(0750, freeswitch, daemon) %{prefix}/htdocs | |
354 | %dir %attr(0750, freeswitch, daemon) %{prefix}/scripts | |
355 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf | |
356 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs | |
357 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/dialplan | |
358 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/directory | |
359 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/directory/default | |
360 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang | |
361 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/mrcp_profiles | |
362 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/sip_profiles | |
e848e2e5 | 363 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/skinny_profiles |
78cc2f40 MJ |
364 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/dialplan/default |
365 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/dialplan/public | |
366 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/sip_profiles/internal | |
367 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/sip_profiles/external | |
368 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/jingle_profiles | |
369 | %dir %attr(0750, freeswitch, daemon) %{prefix}/grammar | |
370 | %dir %attr(0750, freeswitch, daemon) %{prefix}/grammar/model | |
371 | %dir %attr(0750, freeswitch, daemon) %{prefix}/grammar/model/communicator | |
372 | %dir %attr(0750, freeswitch, daemon) %{prefix}/grammar/model/wsj1 | |
373 | %ifos linux | |
374 | %config(noreplace) %attr(0644, freeswitch, daemon) /etc/monit.d/freeswitch.monitrc | |
375 | %endif | |
376 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/mime.types | |
377 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/*.tpl | |
378 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/*.ttml | |
379 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/*.xml | |
380 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/m3ua.conf | |
381 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/extensions.conf | |
382 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/acl.conf.xml | |
383 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/cidlookup.conf.xml | |
384 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/alsa.conf.xml | |
385 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/conference.conf.xml | |
386 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/console.conf.xml | |
387 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/dialplan_directory.conf.xml | |
388 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/dingaling.conf.xml | |
389 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/enum.conf.xml | |
390 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/event_multicast.conf.xml | |
391 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/event_socket.conf.xml | |
d5bbea95 | 392 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/erlang_event.conf.xml |
78cc2f40 | 393 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/cdr_csv.conf.xml |
1aa878c5 | 394 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/cdr_pg_csv.conf.xml |
78cc2f40 MJ |
395 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/fax.conf.xml |
396 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/fifo.conf.xml | |
397 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/shout.conf.xml | |
398 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/timezones.conf.xml | |
78cc2f40 MJ |
399 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/ivr.conf.xml |
400 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/java.conf.xml | |
401 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/limit.conf.xml | |
402 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/local_stream.conf.xml | |
403 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/logfile.conf.xml | |
404 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/modules.conf.xml | |
405 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/pocketsphinx.conf.xml | |
406 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/portaudio.conf.xml | |
407 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/post_load_modules.conf.xml | |
408 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/python.conf.xml | |
409 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/rss.conf.xml | |
216382e6 | 410 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/sangoma_codec.conf.xml |
bc632e24 | 411 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/skinny.conf.xml |
78cc2f40 MJ |
412 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/sofia.conf.xml |
413 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/switch.conf.xml | |
414 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/syslog.conf.xml | |
415 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/voicemail.conf.xml | |
416 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/xml_cdr.conf.xml | |
417 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/xml_curl.conf.xml | |
418 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/xml_rpc.conf.xml | |
419 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/zeroconf.conf.xml | |
420 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/easyroute.conf.xml | |
421 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/lcr.conf.xml | |
422 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/opal.conf.xml | |
423 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/unicall.conf.xml | |
424 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/memcache.conf.xml | |
425 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/nibblebill.conf.xml | |
426 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/unimrcp.conf.xml | |
479df6fd MB |
427 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/directory.conf.xml |
428 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/distributor.conf.xml | |
429 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/tts_commandline.conf.xml | |
78cc2f40 MJ |
430 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/*.xml |
431 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/default/*.xml | |
432 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/public/*.xml | |
433 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/directory/*.xml | |
434 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/directory/default/* | |
a2710c9c | 435 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/ivr_menus/*.xml |
78cc2f40 MJ |
436 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/sip_profiles/*.xml |
437 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/sip_profiles/internal/*.xml | |
438 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/sip_profiles/external/*.xml | |
e848e2e5 | 439 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/skinny_profiles/*.xml |
78cc2f40 MJ |
440 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/jingle_profiles/*.xml |
441 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/mrcp_profiles/*.xml | |
442 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/grammar/default.dic | |
443 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/grammar/model/communicator/* | |
444 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/grammar/model/wsj1/* | |
445 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/htdocs/* | |
446 | %ifos linux | |
447 | #/etc/ld.so.conf.d/* | |
448 | /etc/init.d/freeswitch | |
449 | /etc/sysconfig/freeswitch | |
450 | %if 0%{?suse_version} > 100 | |
451 | /usr/sbin/rcfreeswitch | |
452 | %endif | |
453 | %endif | |
454 | %attr(0755, freeswitch, daemon) %{prefix}/bin/* | |
455 | %{prefix}/lib/libfreeswitch*.so* | |
456 | %{prefix}/mod/mod_console.so* | |
457 | %{prefix}/mod/mod_logfile.so* | |
458 | %{prefix}/mod/mod_syslog.so* | |
459 | %{prefix}/mod/mod_commands.so* | |
460 | %{prefix}/mod/mod_conference.so* | |
461 | %{prefix}/mod/mod_dptools.so* | |
462 | %{prefix}/mod/mod_enum.so* | |
463 | %{prefix}/mod/mod_esf.so* | |
464 | %{prefix}/mod/mod_expr.so* | |
465 | %{prefix}/mod/mod_fifo.so* | |
466 | %{prefix}/mod/mod_limit.so* | |
467 | %{prefix}/mod/mod_rss.so* | |
468 | %{prefix}/mod/mod_voicemail.so* | |
54038e99 | 469 | %{prefix}/mod/mod_directory.so* |
78cc2f40 MJ |
470 | %{prefix}/mod/mod_pocketsphinx.so* |
471 | %{prefix}/mod/mod_flite.so* | |
472 | %{prefix}/mod/mod_ilbc.so* | |
473 | %{prefix}/mod/mod_h26x.so* | |
474 | %{prefix}/mod/mod_voipcodecs.so* | |
475 | %{prefix}/mod/mod_speex.so* | |
476 | %{prefix}/mod/mod_dialplan_directory.so* | |
477 | %{prefix}/mod/mod_dialplan_xml.so* | |
478 | %{prefix}/mod/mod_dialplan_asterisk.so* | |
479 | %{prefix}/mod/mod_dingaling.so* | |
78cc2f40 MJ |
480 | %{prefix}/mod/mod_portaudio.so* |
481 | %{prefix}/mod/mod_sofia.so* | |
482 | %{prefix}/mod/mod_cdr_csv.so* | |
483 | %{prefix}/mod/mod_event_multicast.so* | |
484 | %{prefix}/mod/mod_event_socket.so* | |
5a24927f | 485 | %{prefix}/mod/mod_file_string.so* |
78cc2f40 MJ |
486 | %{prefix}/mod/mod_native_file.so* |
487 | %{prefix}/mod/mod_sndfile.so* | |
488 | %{prefix}/mod/mod_local_stream.so* | |
489 | %{prefix}/mod/mod_xml_rpc.so* | |
490 | %{prefix}/mod/mod_xml_curl.so* | |
491 | %{prefix}/mod/mod_xml_cdr.so* | |
492 | %{prefix}/mod/mod_fsv.so | |
493 | %{prefix}/mod/mod_tone_stream.so | |
494 | %{prefix}/mod/mod_amrwb.so | |
495 | %{prefix}/mod/mod_celt.so | |
496 | %{prefix}/mod/mod_easyroute.so | |
78cc2f40 MJ |
497 | %{prefix}/mod/mod_lcr.so |
498 | %{prefix}/mod/mod_loopback.so | |
499 | %{prefix}/mod/mod_siren.so | |
5a75934b | 500 | %{prefix}/mod/mod_bv.so |
78cc2f40 | 501 | %{prefix}/mod/mod_stress.so |
78cc2f40 MJ |
502 | %{prefix}/mod/mod_shout.so |
503 | %{prefix}/mod/mod_fax.so | |
504 | %{prefix}/mod/mod_soundtouch.so | |
505 | %{prefix}/mod/mod_vmd.so | |
506 | %{prefix}/mod/mod_unimrcp.so | |
507 | ||
508 | %files openzap | |
509 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/tones.conf | |
510 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/openzap.conf.xml | |
511 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/pika.conf | |
512 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/openzap.conf | |
513 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/wanpipe.conf | |
514 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/zt.conf | |
515 | %{prefix}/lib/libopenzap.so* | |
516 | %{prefix}/mod/mod_openzap.so* | |
517 | %{prefix}/mod/ozmod_analog.so* | |
518 | %{prefix}/mod/ozmod_analog_em.so* | |
519 | %{prefix}/mod/ozmod_isdn.so* | |
520 | %{prefix}/mod/ozmod_skel.* | |
78cc2f40 MJ |
521 | %{prefix}/mod/ozmod_zt.so* |
522 | ||
523 | %files codec-passthru-amrwb | |
524 | %defattr(-,freeswitch,daemon) | |
525 | %{prefix}/mod/mod_amrwb.so* | |
526 | ||
527 | %files codec-passthru-amr | |
528 | %defattr(-,freeswitch,daemon) | |
529 | %{prefix}/mod/mod_amr.so* | |
530 | ||
531 | %files codec-passthru-g723_1 | |
532 | %defattr(-,freeswitch,daemon) | |
533 | %{prefix}/mod/mod_g723_1.so* | |
534 | ||
535 | %files codec-passthru-g729 | |
536 | %defattr(-,freeswitch,daemon) | |
537 | %{prefix}/mod/mod_g729.so* | |
538 | ||
539 | %files spidermonkey | |
540 | %defattr(-,freeswitch,daemon) | |
541 | %{prefix}/mod/mod_spidermonkey*.so* | |
542 | %{prefix}/lib/libjs.so* | |
543 | %{prefix}/lib/libnspr4.so | |
544 | %{prefix}/lib/libplds4.so | |
545 | %{prefix}/lib/libplc4.so | |
546 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs | |
547 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/spidermonkey.conf.xml | |
548 | ||
549 | %files lua | |
550 | %defattr(-,freeswitch,daemon) | |
551 | %{prefix}/mod/mod_lua*.so* | |
552 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs | |
553 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/lua.conf.xml | |
554 | ||
555 | %files perl | |
556 | %defattr(-,freeswitch,daemon) | |
557 | %{prefix}/mod/mod_perl*.so* | |
558 | %{prefix}/perl/* | |
559 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs | |
560 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/perl.conf.xml | |
561 | ||
562 | %files python | |
563 | %defattr(-,freeswitch,daemon) | |
564 | %{prefix}/mod/mod_python*.so* | |
565 | %attr(0644, root, bin) /usr/lib/python2.4/site-packages/freeswitch.py* | |
566 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs | |
567 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/python.conf.xml | |
568 | ||
569 | %files devel | |
570 | %defattr(-, freeswitch, daemon) | |
571 | %{prefix}/lib/*.a | |
572 | %{prefix}/lib/*.la | |
573 | %{prefix}/lib/pkgconfig/* | |
574 | %{prefix}/mod/*.a | |
575 | %{prefix}/mod/*.la | |
576 | %{prefix}/include/*.h | |
78cc2f40 MJ |
577 | |
578 | %files lang-en | |
579 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/en | |
580 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/en/demo | |
581 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/en/vm | |
582 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/en/*.xml | |
583 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/en/demo/*.xml | |
584 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/en/vm/*.xml | |
479df6fd | 585 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/en/dir/*.xml |
78cc2f40 MJ |
586 | %{prefix}/mod/mod_say_en.so* |
587 | ||
588 | %files lang-de | |
589 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/de | |
590 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/de/demo | |
591 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/de/vm | |
592 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/de/*.xml | |
593 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/de/demo/*.xml | |
594 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/de/vm/*.xml | |
595 | %{prefix}/mod/mod_say_de.so* | |
596 | ||
597 | %files lang-fr | |
598 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/fr | |
599 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/fr/demo | |
600 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/fr/vm | |
601 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/fr/*.xml | |
602 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/fr/demo/*.xml | |
603 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/fr/vm/*.xml | |
479df6fd | 604 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/fr/dir/*.xml |
78cc2f40 MJ |
605 | %{prefix}/mod/mod_say_fr.so* |
606 | ||
607 | %files lang-ru | |
608 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/ru | |
609 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/ru/demo | |
610 | %dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/ru/vm | |
611 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/ru/*.xml | |
612 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/ru/demo/*.xml | |
613 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/ru/vm/*.xml | |
85e25887 | 614 | %config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/ru/dir/*.xml |
78cc2f40 | 615 | |
78cc2f40 | 616 | %changelog |
216382e6 MB |
617 | * Sun Mar 28 2010 - michal.bielicki@seventhsignal.de |
618 | - added sangoma codec config file | |
1caeb602 MB |
619 | * Wed Dec 02 2009 - michal.bielicki@seventhsignal.de |
620 | - Soundfiles are moving into a separate spec | |
5a75934b BW |
621 | * Wed Nov 25 2009 - brian@freeswitch.org |
622 | - added mod_bv.so | |
85e25887 MB |
623 | * Wed Nov 25 2009 - michal.bielicki@seventhsignal.de |
624 | - Removed mod_yaml | |
625 | - added directory files to russian language | |
ae7aa36f MB |
626 | * Sat Nov 21 2009 - michal.bielicki@seventhsignal.de |
627 | - added patch by Igor Neves <neves.igor@gmail.com>: Added some checkup in %post and %postun to prevent upgrades from removing freeswitch user | |
479df6fd MB |
628 | * Thu Nov 18 2009 - michal.bielicki@seventhsignal.de |
629 | - added new config files for diretory and distributor | |
630 | - removed sangoma boost from openzap for builds that do not inherit wanpipe while building. | |
4fb0b292 MJ |
631 | * Tue Jul 24 2009 - mike@jerris.com |
632 | - removed mod_http | |
633 | - removed ozmod_wanpipe | |
78cc2f40 MJ |
634 | * Tue Jun 23 2009 - raulfragoso@gmail.com |
635 | - Adjusted for the latest SVN trunk (13912) | |
636 | - Included new config and mod files to catch up with latest SVN | |
637 | - Included new sound files for base256 and zrtp | |
638 | - mod_unimrcp must be built after mod_sofia | |
639 | * Mon Feb 17 2009 - michal.bielicki@halokwadrat.de | |
640 | - added mod_python | |
641 | - added mod_fax | |
642 | - added mod_amrwb.so | |
643 | - added mod_celt.so | |
644 | - added mod_easyroute.so | |
645 | - added mod_http.so | |
646 | - added mod_lcr.so | |
647 | - added mod_loopback.so | |
648 | - added mod_siren.so | |
649 | - added mod/mod_stress.so | |
650 | - added mod_yaml.so | |
651 | - added mod_shout.so | |
652 | - added rpms or all sounds | |
653 | - openzap is now its own rpm | |
654 | - added french | |
655 | - added german | |
656 | - added missing dependencies | |
657 | - added soundfiles with separate rpms | |
658 | - added definition of all sourcefiles and added them to the SRPM | |
659 | - fixes to monit file | |
660 | - changes to redhat init file | |
661 | * Thu May 22 2008 - michal.bielicki@voiceworks.pl | |
662 | - disabled beta class language stuff | |
663 | - bumped revision up to rc6 | |
664 | - added mod_lua | |
665 | - added mod_perl | |
666 | - Only bootstrap if no Makfile.in exists | |
667 | * Mon Feb 04 2008 - michal.bielicki@voiceworks.pl | |
668 | - More fixes to specfile | |
669 | - First go at SFE files | |
670 | * Sun Feb 03 2008 - michal.bielicki@voiceworks.pl | |
671 | - abstraction of prefix | |
672 | - more wrong stuff deleted | |
673 | - abstraction of mkdir, mv, rm, install etc into macros | |
674 | * Fri Jan 18 2008 - michal.bielicki@voiceworks.pl | |
675 | - fixes, fixes and more fixes in preparation for rc1 | |
676 | * Thu Dec 5 2007 - michal.bielicki@voiceworks.pl | |
677 | - put in detail configfiles in to split of spidermonkey configs | |
678 | - created link from /opt/freesxwitch/conf to /etc%{prefix} | |
679 | * Thu Nov 29 2007 - michal.bielicki@voiceworks.pl | |
680 | - Added ifdefs for susealities | |
681 | - Added specifics for centos/redhat | |
682 | - Added specifics for fedora | |
683 | - Preparing to use it for adding it to SFE packaging for solaris | |
684 | - Added odbc stuff back in | |
685 | - made curl default | |
686 | - Separate package for mod_spidermonkey | |
687 | - got rid of modules.conf and stuffed everything in MODULES env var | |
688 | - got rid of handmade Cflags peter added ;) | |
689 | - fixed bin and libpaths | |
690 | - fixed locationof nspr and js libs | |
691 | - fixed odbc requirements | |
692 | - added all buildable modules | |
693 | - added redhat style init file | |
694 | - splitted off language dependant stuff into separate language files | |
695 | - disable non complete language modules | |
696 | * Tue Apr 24 2007 - peter+rpmspam@suntel.com.tr | |
697 | - Added a debug package | |
698 | - Split the passthrough codecs into separate packages | |
699 | * Fri Mar 16 2007 - peter+rpmspam@suntel.com.tr | |
700 | - Added devel package | |
701 | * Thu Mar 15 2007 - peter+rpmspam@suntel.com.tr | |
702 | - Initial RPM release |