Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
38e0bfb5
提交
38e0bfb5
authored
9月 29, 2010
作者:
Michal Bielicki
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added portaudio_stream module to default specfile
上级
84a383fe
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
151 行增加
和
151 行删除
+151
-151
freeswitch.spec
freeswitch.spec
+151
-151
没有找到文件。
freeswitch.spec
浏览文件 @
38e0bfb5
######################################################################################################################
#########
######################################################################################################################
#########
######################################################################################################################
######################################################################################################################
#
# spec file for package freeswitch
#
...
...
@@ -26,8 +26,8 @@
#
# Maintainer(s): Michal Bielicki <michal.bielicki (at) ++nospam_please++ seventhsignal.de
#
######################################################################################################################
#########
######################################################################################################################
#########
######################################################################################################################
######################################################################################################################
#
# disable rpath checking
%define __arch_install_post /usr/lib/rpm/check-buildroot
...
...
@@ -48,11 +48,11 @@ URL: http://www.freeswitch.org/
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
...
...
@@ -68,11 +68,11 @@ Source11: http://files.freeswitch.org/downloads/libs/libmemcached-0.32.tar.gz
Prefix: %{prefix}
######################################################################################################################
#########
######################################################################################################################
#
# Build Dependencies
#
######################################################################################################################
#########
######################################################################################################################
%if 0%{?suse_version} > 100
#BuildRequires: openldap2-devel
...
...
@@ -128,11 +128,11 @@ PreReq: %insserv_prereq %fillup_prereq
%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
...
...
@@ -155,12 +155,12 @@ Our developers are heavily involved in open source and have donated code and oth
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
...
...
@@ -277,11 +277,11 @@ Requires: %{name} = %{version}-%{release}
%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
...
...
@@ -297,11 +297,11 @@ cp %{SOURCE9} libs/
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
...
...
@@ -312,115 +312,115 @@ export QA_RPATHS=$[ 0x0001|0x0002 ]
%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_callcente
r"
######################################################################################################################
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_exp
r"
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
...
...
@@ -431,11 +431,11 @@ export DESTDIR=%{buildroot}/
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
...
...
@@ -467,11 +467,11 @@ touch .noversion
%{__make}
######################################################################################################################
#########
######################################################################################################################
#
#
Install it and create some required dirs and links
# Install it and create some required dirs and links
#
######################################################################################################################
#########
######################################################################################################################
%install
%{__make} DESTDIR=%{buildroot} install
...
...
@@ -502,11 +502,11 @@ touch .noversion
%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
...
...
@@ -526,11 +526,11 @@ chkconfig --add freeswitch
%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."
...
...
@@ -540,19 +540,19 @@ fi
%{__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
...
...
@@ -562,7 +562,7 @@ fi
%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
...
...
@@ -579,7 +579,7 @@ fi
%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
...
...
@@ -587,11 +587,11 @@ fi
%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
...
...
@@ -650,60 +650,59 @@ fi
%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
...
...
@@ -713,23 +712,25 @@ fi
%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*
...
...
@@ -747,7 +748,6 @@ fi
%{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*
...
...
@@ -764,6 +764,7 @@ fi
%{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*
...
...
@@ -784,13 +785,11 @@ fi
%{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
...
...
@@ -799,12 +798,11 @@ fi
%{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
...
...
@@ -817,11 +815,11 @@ fi
%{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*
...
...
@@ -838,12 +836,11 @@ fi
%defattr(-,freeswitch,daemon)
%{prefix}/mod/mod_g729.so*
###############################################################################################################################
######################################################################################################################
#
#
Embedded Language Modules
# Embedded Language Modules
#
######################################################################################################################
#########
######################################################################################################################
%files spidermonkey
%defattr(-,freeswitch,daemon)
%{prefix}/mod/mod_spidermonkey*.so*
...
...
@@ -874,11 +871,11 @@ fi
%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
...
...
@@ -922,12 +919,15 @@ fi
%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
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论