-###############################################################################################################################
-###############################################################################################################################
+######################################################################################################################
+######################################################################################################################
#
# spec file for package freeswitch
#
#
# Maintainer(s): Michal Bielicki <michal.bielicki (at) ++nospam_please++ seventhsignal.de
#
-###############################################################################################################################
-###############################################################################################################################
+######################################################################################################################
+######################################################################################################################
#
# disable rpath checking
%define __arch_install_post /usr/lib/rpm/check-buildroot
Packager: Michal Bielicki
Vendor: http://www.freeswitch.org/
-###############################################################################################################################
+######################################################################################################################
#
-# Source files and where to get them
+# Source files and where to get them
#
-###############################################################################################################################
+######################################################################################################################
Source0: http://files.freeswitch.org/%{name}-%{version}.tar.bz2
Source1: http://files.freeswitch.org/downloads/libs/celt-0.7.0.tar.gz
Source2: http://files.freeswitch.org/downloads/libs/flite-1.3.99-latest.tar.gz
Prefix: %{prefix}
-###############################################################################################################################
+######################################################################################################################
#
# Build Dependencies
#
-###############################################################################################################################
+######################################################################################################################
%if 0%{?suse_version} > 100
#BuildRequires: openldap2-devel
%endif
-###############################################################################################################################
+######################################################################################################################
#
-# Where the packages are going to be built
+# Where the packages are going to be built
#
-###############################################################################################################################
+######################################################################################################################
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
other telephony projects including sipXecs, OpenSER, Asterisk, CodeWeaver and OpenPBX.
-###############################################################################################################################
+######################################################################################################################
#
-# Sub Package definitions. Description and Runtime Requirements go here
-# What goes into which package is in the files section after the whole build enchilada
+# Sub Package definitions. Description and Runtime Requirements go here
+# What goes into which package is in the files section after the whole build enchilada
#
-###############################################################################################################################
+######################################################################################################################
%package devel
%description openzap
OpenZAP
-###############################################################################################################################
+######################################################################################################################
#
-# Unpack and prepare Source archives, copy stuff around etc ..
+# Unpack and prepare Source archives, copy stuff around etc ..
#
-###############################################################################################################################
+######################################################################################################################
%prep
%setup -b0 -q
cp %{SOURCE10} libs/
cp %{SOURCE11} libs/
-###############################################################################################################################
+######################################################################################################################
#
-# Start the Build process
+# Start the Build process
#
-###############################################################################################################################
+######################################################################################################################
%build
%ifos linux
%if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030
%endif
%endif
-###############################################################################################################################
+######################################################################################################################
#
-# Here the modules that will be build get defined
+# Here the modules that will be build get defined
#
-###############################################################################################################################
-###############################################################################################################################
+######################################################################################################################
+######################################################################################################################
#
-# Application Modules
+# Application Modules
#
-###############################################################################################################################
-APPLICATION_MODULES_AE="applications/mod_avmd applications/mod_commands applications/mod_conference applications/mod_db applications/mod_directory applications/mod_distributor applications/mod_dptools applications/mod_easyroute applications/mod_enum applications/mod_esf applications/mod_expr applications/mod_callcenter"
+######################################################################################################################
+APPLICATION_MODULES_AE="applications/mod_avmd applications/mod_callcenter applications/mod_cluechoo applications/mod_commands applications/mod_conference applications/mod_db applications/mod_directory applications/mod_distributor applications/mod_dptools applications/mod_easyroute applications/mod_enum applications/mod_esf applications/mod_expr"
APPLICATION_MODULES_FM="applications/mod_fifo applications/mod_fsv applications/mod_hash applications/mod_lcr applications/mod_limit applications/mod_memcache"
-APPLICATION_MODULES_NY=" applications/mod_redis applications/mod_rss applications/mod_soundtouch applications/mod_spandsp applications/mod_stress applications/mod_spy "
+APPLICATION_MODULES_NY="applications/mod_nibblebill applications/mod_redis applications/mod_rss applications/mod_soundtouch applications/mod_spandsp applications/mod_stress applications/mod_spy "
APPLICATION_MODULES_VZ="applications/mod_valet_parking applications/mod_vmd applications/mod_voicemail"
APPLICATIONS_MODULES="$APPLICATION_MODULES_AE $APPLICATION_MODULES_FM $APPLICATION_MODULES_NY $APPLICATION_MODULES_VZ"
-###############################################################################################################################
+######################################################################################################################
#
-# Automatic Speech Recognition and Text To Speech Modules
+# Automatic Speech Recognition and Text To Speech Modules
#
-###############################################################################################################################
+######################################################################################################################
ASR_TTS_MODULES="asr_tts/mod_pocketsphinx asr_tts/mod_flite asr_tts/mod_unimrcp"
-###############################################################################################################################
+######################################################################################################################
#
-# Codecs
+# Codecs
#
-###############################################################################################################################
+######################################################################################################################
CODECS_MODULES="codecs/mod_ilbc codecs/mod_h26x codecs/mod_speex codecs/mod_celt codecs/mod_siren codecs/mod_bv"
-###############################################################################################################################
+######################################################################################################################
#
-# Dialplan Modules
+# Dialplan Modules
#
-###############################################################################################################################
+######################################################################################################################
DIALPLANS_MODULES="dialplans/mod_dialplan_asterisk dialplans/mod_dialplan_directory dialplans/mod_dialplan_xml"
-###############################################################################################################################
+######################################################################################################################
#
-# Directory Modules
+# Directory Modules
#
-###############################################################################################################################
+######################################################################################################################
DIRECTORIES_MODULES=""
-###############################################################################################################################
+######################################################################################################################
#
-# Endpoints
+# Endpoints
#
-###############################################################################################################################
+######################################################################################################################
ENDPOINTS_MODULES="endpoints/mod_dingaling endpoints/mod_portaudio endpoints/mod_sofia ../../libs/openzap/mod_openzap endpoints/mod_loopback"
-###############################################################################################################################
+######################################################################################################################
#
-# Event Handlers
+# Event Handlers
#
-###############################################################################################################################
+######################################################################################################################
EVENT_HANDLERS_MODULES="event_handlers/mod_event_multicast event_handlers/mod_event_socket event_handlers/mod_cdr_csv"
-###############################################################################################################################
+######################################################################################################################
#
-# File and Audio Format Handlers
+# File and Audio Format Handlers
#
-###############################################################################################################################
-FORMATS_MODULES="formats/mod_local_stream formats/mod_native_file formats/mod_sndfile formats/mod_tone_stream formats/mod_shout formats/mod_file_string"
-###############################################################################################################################
+######################################################################################################################
+FORMATS_MODULES="formats/mod_local_stream formats/mod_native_file formats/mod_sndfile formats/mod_portaudio_stream formats/mod_tone_stream formats/mod_shout formats/mod_file_string"
+######################################################################################################################
#
-# Embedded Languages
+# Embedded Languages
#
-###############################################################################################################################
+######################################################################################################################
LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python languages/mod_spidermonkey"
-###############################################################################################################################
+######################################################################################################################
#
-# Logging Modules
+# Logging Modules
#
-###############################################################################################################################
+######################################################################################################################
LOGGERS_MODULES="loggers/mod_console loggers/mod_logfile loggers/mod_syslog"
-###############################################################################################################################
+######################################################################################################################
#
-# Passthru Codecs
+# Passthru Codecs
#
-###############################################################################################################################
+######################################################################################################################
PASSTHRU_CODEC_MODULES="codecs/mod_amr codecs/mod_amrwb codecs/mod_g723_1 codecs/mod_g729"
-###############################################################################################################################
+######################################################################################################################
#
-# Phrase engine language modules
+# Phrase engine language modules
#
-###############################################################################################################################
+######################################################################################################################
SAY_MODULES="say/mod_say_de say/mod_say_en say/mod_say_fr say/mod_say_ru"
-###############################################################################################################################
+######################################################################################################################
#
-# Timers
+# Timers
#
-###############################################################################################################################
+######################################################################################################################
TIMERS_MODULES=
-###############################################################################################################################
+######################################################################################################################
#
-# XML Modules
+# XML Modules
#
-###############################################################################################################################
+######################################################################################################################
XML_INT_MODULES="xml_int/mod_xml_cdr xml_int/mod_xml_curl xml_int/mod_xml_rpc"
-###############################################################################################################################
+######################################################################################################################
#
-# Create one environment variable out of all the module defs
+# Create one environment variable out of all the module defs
#
-###############################################################################################################################
+######################################################################################################################
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"
-###############################################################################################################################
+######################################################################################################################
#
-# Create Modules build list and set variables
+# Create Modules build list and set variables
#
-###############################################################################################################################
+######################################################################################################################
export MODULES=$MYMODULES
test ! -f modules.conf || rm -f modules.conf
export PKG_CONFIG_PATH=/usr/bin/pkg-config:$PKG_CONFIG_PATH
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
-###############################################################################################################################
+######################################################################################################################
#
-# Bootstrap, Configure and Build the whole enchilada
+# Bootstrap, Configure and Build the whole enchilada
#
-###############################################################################################################################
+######################################################################################################################
if test ! -f Makefile.in
then
%{__make}
-###############################################################################################################################
+######################################################################################################################
#
-# Install it and create some required dirs and links
+# Install it and create some required dirs and links
#
-###############################################################################################################################
+######################################################################################################################
%install
%{__make} DESTDIR=%{buildroot} install
%endif
-###############################################################################################################################
+######################################################################################################################
#
-# Add a freeswitch user with group daemon that will own the whole enchilada
+# Add a freeswitch user with group daemon that will own the whole enchilada
#
-###############################################################################################################################
+######################################################################################################################
%pre
%ifos linux
if ! /usr/bin/id freeswitch &>/dev/null; then
%postun
-###############################################################################################################################
+######################################################################################################################
#
-# On uninstallation get rid of the freeswitch user
+# On uninstallation get rid of the freeswitch user
#
-###############################################################################################################################
+######################################################################################################################
%{?run_ldconfig:%run_ldconfig}
if [ $1 -eq 0 ]; then
userdel freeswitch || %logmsg "User \"freeswitch\" could not be deleted."
%{__rm} -rf %{buildroot}
%files
-###############################################################################################################################
+######################################################################################################################
#
-# What to install where ... first set default permissions
+# What to install where ... first set default permissions
#
-###############################################################################################################################
+######################################################################################################################
%defattr(-,freeswitch,daemon)
-###############################################################################################################################
+######################################################################################################################
#
-# Directories
+# Directories
#
-###############################################################################################################################
+######################################################################################################################
#
-#################################### Basic Directory Structure ################################################################
+#################################### Basic Directory Structure #######################################################
#
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf
%dir %attr(0750, freeswitch, daemon) %{prefix}/db
%dir %attr(0750, freeswitch, daemon) %{runtimedir}
%dir %attr(0750, freeswitch, daemon) %{prefix}/scripts
#
-#################################### Config Directory Structure ################################################################
+#################################### Config Directory Structure #######################################################
#
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf/dialplan
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf/sip_profiles/internal
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf/skinny_profiles
#
-#################################### Grammar Directory Structure ################################################################
+#################################### Grammar Directory Structure #####################################################
#
%dir %attr(0750, freeswitch, daemon) %{prefix}/grammar/model
%dir %attr(0750, freeswitch, daemon) %{prefix}/grammar/model/communicator
%ifos linux
%config(noreplace) %attr(0644, freeswitch, daemon) /etc/monit.d/freeswitch.monitrc
%endif
-###############################################################################################################################
+######################################################################################################################
#
-# Config Files
+# Config Files
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/*.tpl
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/*.ttml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/xml_curl.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/xml_rpc.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/zeroconf.conf.xml
-###############################################################################################################################
+######################################################################################################################
#
-# Dialplans
+# Dialplans
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/default/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/public/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/dialplan/skinny-patterns/*.xml
-###############################################################################################################################
+######################################################################################################################
#
-# User Directories
+# User Directories
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/directory/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/directory/default/*
-###############################################################################################################################
+######################################################################################################################
#
-# IVR Menues
+# IVR Menues
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/ivr_menus/*.xml
-###############################################################################################################################
+######################################################################################################################
#
-# Sip Profiles
+# Sip Profiles
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/sip_profiles/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/sip_profiles/internal/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/sip_profiles/external/*.xml
-###############################################################################################################################
+######################################################################################################################
#
-# Other Protocol Profiles (skinny, jingle, mrcp)
+# Other Protocol Profiles (skinny, jingle, mrcp)
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/skinny_profiles/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/jingle_profiles/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/mrcp_profiles/*.xml
-###############################################################################################################################
+######################################################################################################################
#
-# Grammar Files
+# Grammar Files
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/grammar/default.dic
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/grammar/model/communicator/*
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/grammar/model/wsj1/*
-###############################################################################################################################
+######################################################################################################################
#
-# Other Fíles
+# Other Fíles
#
-###############################################################################################################################
+######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/htdocs/*
%ifos linux
-#/etc/ld.so.conf.d/*
/etc/rc.d/init.d/freeswitch
/etc/sysconfig/freeswitch
%if 0%{?suse_version} > 100
%ifos linux
%dir %attr(0750, root, root) /etc/monit.d
%endif
-###############################################################################################################################
+######################################################################################################################
#
-# Binaries
+# Binaries
#
-###############################################################################################################################
+######################################################################################################################
%attr(0755, freeswitch, daemon) %{prefix}/bin/*
%{prefix}/lib/libfreeswitch*.so*
-###############################################################################################################################
+######################################################################################################################
#
-# Modules in Alphabetical Order, please keep them that way..
+# Modules in Alphabetical Order, please keep them that way..
#
-###############################################################################################################################
+######################################################################################################################
%{prefix}/mod/mod_amrwb.so*
%{prefix}/mod/mod_avmd.so*
%{prefix}/mod/mod_bv.so*
+%{prefix}/mod/mod_callcenter*
%{prefix}/mod/mod_cdr_csv.so*
%{prefix}/mod/mod_celt.so*
+%{prefix}/mod/mod_cluechoo.so*
%{prefix}/mod/mod_console.so*
%{prefix}/mod/mod_commands.so*
%{prefix}/mod/mod_conference.so*
%{prefix}/mod/mod_event_multicast.so*
%{prefix}/mod/mod_event_socket.so*
%{prefix}/mod/mod_expr.so*
-%{prefix}/mod/mod_callcenter.so*
%{prefix}/mod/mod_fifo.so*
%{prefix}/mod/mod_file_string.so*
%{prefix}/mod/mod_flite.so*
%{prefix}/mod/mod_native_file.so*
%{prefix}/mod/mod_pocketsphinx.so*
%{prefix}/mod/mod_portaudio.so*
+%{prefix}/mod/mod_portaudio_stream.so*
%{prefix}/mod/mod_redis.so*
%{prefix}/mod/mod_rss.so*
%{prefix}/mod/mod_shout.so*
%{prefix}/mod/mod_xml_cdr.so*
%{prefix}/mod/mod_xml_curl.so*
%{prefix}/mod/mod_xml_rpc.so*
-
-
-###############################################################################################################################
+######################################################################################################################
#
-# Package for the developer
+# Package for the developer
#
-###############################################################################################################################
+######################################################################################################################
%files devel
%defattr(-, freeswitch, daemon)
%{prefix}/lib/*.a
%{prefix}/mod/*.a
%{prefix}/mod/*.la
%{prefix}/include/*.h
-
-###############################################################################################################################
+######################################################################################################################
#
-# OpenZAP Module for TDM Interaction
+# OpenZAP Module for TDM Interaction
#
-###############################################################################################################################
+######################################################################################################################
%files openzap
%defattr(-, freeswitch, daemon)
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/tones.conf
%{prefix}/mod/mod_openzap.so*
%{prefix}/mod/ozmod_*.so*
-###############################################################################################################################
+######################################################################################################################
#
-# Passthru Codec Modules
+# Passthru Codec Modules
#
-###############################################################################################################################
+######################################################################################################################
%files codec-passthru-amrwb
%defattr(-,freeswitch,daemon)
%{prefix}/mod/mod_amrwb.so*
%defattr(-,freeswitch,daemon)
%{prefix}/mod/mod_g729.so*
-
-###############################################################################################################################
+######################################################################################################################
#
-# Embedded Language Modules
+# Embedded Language Modules
#
-###############################################################################################################################
+######################################################################################################################
%files spidermonkey
%defattr(-,freeswitch,daemon)
%{prefix}/mod/mod_spidermonkey*.so*
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf/autoload_configs
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/autoload_configs/python.conf.xml
-###############################################################################################################################
+######################################################################################################################
#
-# Language Modules
+# Language Modules
#
-###############################################################################################################################
+######################################################################################################################
%files lang-en
%defattr(-, freeswitch, daemon)
%dir %attr(0750, freeswitch, daemon) %{prefix}/conf/lang/en
%config(noreplace) %attr(0640, freeswitch, daemon) %{prefix}/conf/lang/ru/dir/*.xml
%{prefix}/mod/mod_say_ru.so*
-###############################################################################################################################
+######################################################################################################################
#
-# Changelog
+# Changelog
#
-###############################################################################################################################
+######################################################################################################################
%changelog
+* Sun Sep 26 2010 - michal.bielicki@seventhsignal.de
+- added portaudio_stream module
+- some more formating work
* Mon Jul 19 2010 - michal.bielicki@seventhsignal.de
- new hash module config file added to freeswitch.spec
* Mon Jul 19 2010 - michal.bielicki@seventhsignal.de