]> git.ipfire.org Git - thirdparty/freeswitch.git/blobdiff - freeswitch-sounds-en-us-callie.spec
Merge pull request #2459 from signalwire/cseq
[thirdparty/freeswitch.git] / freeswitch-sounds-en-us-callie.spec
index 468911c53d4cd5965c648fa9582f59b9a73f05d7..537e5668ef255cee2858392015431da6dc65c0af 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright and license
 ##############################################################################
 #
-# Spec file for package freeswitch-sounds-en-us-callie (version 1.0.18-1)
+# Spec file for package freeswitch-sounds-en-us-callie (version 1.0.52-1)
 #
 # Copyright (c) 2009 Patrick Laimbock 
 # Some fixes and additions (c) 2011 Michal Bielicki
@@ -20,8 +20,8 @@
 # Set variables
 ##############################################################################
 
-%define version %{VERSION_NUMBER}
-%define release %{BUILD_NUMBER}
+%define version 1.0.52
+%define release 1
 
 %define fsname  freeswitch
 # you could add a version number to be more strict
@@ -72,11 +72,15 @@ License: MPL
 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
+Source0:http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
+Source1:http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
+Source2:http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
+Source3:http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
 BuildArch: noarch
 BuildRequires: sox
 Requires: freeswitch
 Requires: freeswitch-sounds-en-us-callie-48000
+Requires: sox
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
@@ -138,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
@@ -179,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
 
 ##############################################################################
@@ -195,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
@@ -213,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,-)
@@ -330,6 +316,8 @@ cd %{SOUNDSDIR}/en/us/callie
 ##############################################################################
 
 %changelog
+* Fri Apr 19 2019 Andrey Volk <andrey@signalwire.com> - 1.0.52-1
+- bump up version
 * Sun Mar 05 2012 Ken Rice <krice@freeswitch.org> - 1.0.18-1
 - update to FHS Layout for FreeSWITCH
 - bump up version