Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
fc1b0c80
提交
fc1b0c80
authored
9月 11, 2014
作者:
Ken Rice
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
clean these up and stream line the process
上级
6791c4aa
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
25 行删除
+15
-25
freeswitch-sounds-en-us-callie.spec
freeswitch-sounds-en-us-callie.spec
+8
-23
sounds-en-us-callie.sh
scripts/ci/sounds-en-us-callie.sh
+7
-2
没有找到文件。
freeswitch-sounds-en-us-callie.spec
浏览文件 @
fc1b0c80
...
...
@@ -73,6 +73,9 @@ Group: Applications/Communications
Packager: Patrick Laimbock <vc-rpms@voipconsulting.nl>
URL: http://www.freeswitch.org
Source0:http://files.freeswitch.org/%{name}-48000-%{version}.tar.gz
Source1:http://files.freeswitch.org/%{name}-32000-%{version}.tar.gz
Source2:http://files.freeswitch.org/%{name}-16000-%{version}.tar.gz
Source3:http://files.freeswitch.org/%{name}-8000-%{version}.tar.gz
BuildArch: noarch
BuildRequires: sox
Requires: freeswitch
...
...
@@ -139,25 +142,11 @@ FreeSWITCH Callie prompts package that pulls in the 8KHz, 16KHz,
##############################################################################
%prep
%setup -b0 -q -n en
mkdir -p ./usr/callie
# create buildsounds-callie.sh script in working dir
echo '#!/bin/bash
sounds_location=$1
for rate in 32000 16000 8000
do
for i in ascii base256 conference currency digits directory ivr misc phonetic-ascii time voicemail zrtp
do
mkdir -p $sounds_location/$i/$rate
for f in `find $sounds_location/$i/48000 -name \*.wav`
do
echo "generating" $sounds_location/$i/$rate/`basename $f`
sox $f -r $rate $sounds_location/$i/$rate/`basename $f`
done
done
done' > ./us/callie/buildsounds-callie.sh
%{__chmod} 0750 ./us/callie/buildsounds-callie.sh
%setup -n en
%setup -T -D -b 0 -n en
%setup -T -D -b 1 -n en
%setup -T -D -b 2 -n en
%setup -T -D -b 3 -n en
##############################################################################
# Build
...
...
@@ -180,7 +169,6 @@ pushd us/callie
# first install the 48KHz sounds
%{__cp} -prv ./* %{buildroot}%{SOUNDSDIR}/en/us/callie
# now resample the 48KHz ones to 8KHz, 16KHz and 32KHz
./buildsounds-callie.sh %{buildroot}%{SOUNDSDIR}/en/us/callie
popd
##############################################################################
...
...
@@ -196,8 +184,6 @@ popd
%post
# generate the 8KHz, 16KHz and 32KHz prompts from the 48KHz ones
cd %{SOUNDSDIR}/en/us/callie
./buildsounds-callie.sh %{SOUNDSDIR}/en/us/callie
##############################################################################
# Postun
...
...
@@ -214,7 +200,6 @@ cd %{SOUNDSDIR}/en/us/callie
%files
%defattr(-,root,root)
%attr(0750,freeswitch,daemon) %{SOUNDSDIR}/en/us/callie/buildsounds-callie.sh
%files -n freeswitch-sounds-en-us-callie-8000
%defattr(-,root,root,-)
...
...
scripts/ci/sounds-en-us-callie.sh
浏览文件 @
fc1b0c80
...
...
@@ -12,6 +12,8 @@ build="$2"
basedir
=
$(
pwd
)
;
(
mkdir
-p
rpmbuild
&&
cd
rpmbuild
&&
mkdir
-p
SOURCES BUILD BUILDROOT i386 x86_64 SPECS
)
if
[
!
-d
"
$basedir
/../freeswitch-sounds"
]
;
then
cd
$basedir
/..
git clone https://stash.freeswitch.org/scm/fs/freeswitch-sounds.git
...
...
@@ -21,9 +23,12 @@ else
fi
cd
$basedir
/../freeswitch-sounds/sounds/trunk
perl dist.pl
#
perl dist.pl
cp
*
freeswitch-sounds-
*
48000
*
.tar.gz
$basedir
/rpmbuild/SOURCES
mv
freeswitch-sounds-
*
48000
*
.tar.gz
$basedir
/rpmbuild/SOURCES
mv
freeswitch-sounds-
*
32000
*
.tar.gz
$basedir
/rpmbuild/SOURCES
mv
freeswitch-sounds-
*
16000
*
.tar.gz
$basedir
/rpmbuild/SOURCES
mv
freeswitch-sounds-
*
8000
*
.tar.gz
$basedir
/rpmbuild/SOURCES
cd
$basedir
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论