From a972bf6dd72b696a5b12295ca0ed46d17cf5a330 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Tue, 25 Jul 2017 12:08:29 -0500 Subject: [PATCH] FS-10540: add build for Allison sounds --- Makefile.am | 8 + build/sounds_version.txt | 1 + docker/base_image/README.md | 2 +- docker/base_image/sounds_version.txt | 1 + freeswitch-sounds-en-us-allison.spec | 322 +++++++++++++++++++++++++++ 5 files changed, 333 insertions(+), 1 deletion(-) create mode 100644 freeswitch-sounds-en-us-allison.spec diff --git a/Makefile.am b/Makefile.am index bad25cec50..8b0ac82b43 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,6 +71,8 @@ MY_DEFAULT_ARGS= --build=$(build) --host=$(host) --target=$(target) --prefix="$( sounds: sounds-en-us-callie-8000 sounds-install: sounds-en-us-callie-8000-install +sounds-allison: sounds-en-us-allison-8000 +sounds-allison-install: sounds-en-us-allison-8000-install sounds-ru: sounds-ru-RU-elena-8000 sounds-ru-install: sounds-ru-RU-elena-8000-install sounds-fr: sounds-fr-ca-june-8000 @@ -80,6 +82,8 @@ moh-install: sounds-music-8000-install hd-sounds: sounds sounds-en-us-callie-16000 hd-sounds-install: sounds-install sounds-en-us-callie-16000-install +hd-sounds-allison: sounds-allison sounds-en-us-allison-16000 +hd-sounds-allison-install: sounds-allison-install sounds-en-us-allison-16000-install hd-sounds-ru: sounds-ru sounds-ru-RU-elena-16000 hd-sounds-ru-install: sounds-ru-install sounds-ru-RU-elena-16000-install hd-sounds-fr: sounds-fr-ca-june-16000 @@ -89,6 +93,8 @@ hd-moh-install: moh-install sounds-music-16000-install uhd-sounds: hd-sounds sounds-en-us-callie-32000 uhd-sounds-install: hd-sounds-install sounds-en-us-callie-32000-install +uhd-sounds-allison: hd-sounds-allison sounds-en-us-allison-32000 +uhd-sounds-allison-install: hd-sounds-allison-install sounds-en-us-allison-32000-install uhd-sounds-ru: hd-sounds-ru sounds-ru-RU-elena-32000 uhd-sounds-ru-install: hd-sounds-ru-install sounds-ru-RU-elena-32000-install uhd-sounds-fr: sounds-fr-ca-june-32000 @@ -98,6 +104,8 @@ uhd-moh-install: hd-moh-install sounds-music-32000-install cd-sounds: uhd-sounds sounds-en-us-callie-48000 cd-sounds-install: uhd-sounds-install sounds-en-us-callie-48000-install +cd-sounds-allison: uhd-sounds-allison sounds-en-us-allison-48000 +cd-sounds-allison-install: uhd-sounds-allison-install sounds-en-us-allison-48000-install cd-sounds-ru: uhd-sounds-ru sounds-ru-RU-elena-48000 cd-sounds-ru-install: uhd-sounds-ru-install sounds-ru-RU-elena-48000-install cd-sounds-fr: sounds-fr-ca-june-48000 diff --git a/build/sounds_version.txt b/build/sounds_version.txt index 33b7bf9342..4c4f290b82 100644 --- a/build/sounds_version.txt +++ b/build/sounds_version.txt @@ -1,4 +1,5 @@ en-us-callie 1.0.51 +en-us-allison 1.0.0 ru-RU-elena 1.0.51 en-ca-june 1.0.51 fr-ca-june 1.0.51 diff --git a/docker/base_image/README.md b/docker/base_image/README.md index 1bf167b0d6..222fab6c39 100644 --- a/docker/base_image/README.md +++ b/docker/base_image/README.md @@ -13,7 +13,7 @@ Used environment variables -------------------------- 1) ```SOUND_RATES``` - rates of sound files that must be downloaded and installed. Available values ```8000```, ```16000```, ```32000```, ```48000```. May defined multiply values using semicolon as delimiter. Example ```SOUND_RATES=8000:16000```; -2) ```SOUND_TYPES``` - types of sound files that must be downloaded and installed. Available values music, ```en-us-callie```, ```ru-RU-elena```, ```en-ca-june```, ```fr-ca-june```, ```pt-BR-karina```, ```sv-se-jakob```, ```zh-cn-sinmei```, ```zh-hk-sinmei```. Example ```SOUND_TYPES=music:en-us-callie```; +2) ```SOUND_TYPES``` - types of sound files that must be downloaded and installed. Available values music, ```en-us-callie```, ```en-us-allison```, ```ru-RU-elena```, ```en-ca-june```, ```fr-ca-june```, ```pt-BR-karina```, ```sv-se-jakob```, ```zh-cn-sinmei```, ```zh-hk-sinmei```. Example ```SOUND_TYPES=music:en-us-callie```; 3) ```EPMD``` - start epmd daemon, useful when you use mod_erlang and mod_kazoo FreeSwitch modules. Available values ```true```, ```false```. Usage container diff --git a/docker/base_image/sounds_version.txt b/docker/base_image/sounds_version.txt index 403a08b1ea..6451d8dffc 100644 --- a/docker/base_image/sounds_version.txt +++ b/docker/base_image/sounds_version.txt @@ -1,5 +1,6 @@ music 1.0.52 en-us-callie 1.0.51 +en-us-allison 1.0.0 ru-RU-elena 1.0.51 en-ca-june 1.0.51 fr-ca-june 1.0.51 diff --git a/freeswitch-sounds-en-us-allison.spec b/freeswitch-sounds-en-us-allison.spec new file mode 100644 index 0000000000..d92eb74f59 --- /dev/null +++ b/freeswitch-sounds-en-us-allison.spec @@ -0,0 +1,322 @@ +############################################################################## +# Copyright and license +############################################################################## +# +# Spec file for package freeswitch-sounds-en-us-allison (version 1.0.0-1) +# +# Copyright (c) 2009 Patrick Laimbock +# Some fixes and additions (c) 2011 Michal Bielicki +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# + +############################################################################## +# Determine distribution +############################################################################## + +# %define is_rhel5 %(test -f /etc/redhat-release && egrep -q 'release 5' /etc/redhat-release && echo 1 || echo 0) + +############################################################################## +# Set variables +############################################################################## + +%define version 1.0.0 +%define release 1 + +%define fsname freeswitch +# you could add a version number to be more strict + +%define PREFIX %{_prefix} +%define EXECPREFIX %{_exec_prefix} +%define BINDIR %{_bindir} +%define SBINDIR %{_sbindir} +%define LIBEXECDIR %{_libexecdir}/%{fsname} +%define SYSCONFDIR %{_sysconfdir}/%{fsname} +%define SHARESTATEDIR %{_sharedstatedir}/%{fsname} +%define LOCALSTATEDIR %{_localstatedir}/lib/%{fsname} +%define LIBDIR %{_libdir} +%define INCLUDEDIR %{_includedir} +%define _datarootdir %{_prefix}/share +%define DATAROOTDIR %{_datarootdir} +%define DATADIR %{_datadir} +%define INFODIR %{_infodir} +%define LOCALEDIR %{_datarootdir}/locale +%define MANDIR %{_mandir} +%define DOCDIR %{_defaultdocdir}/%{fsname} +%define HTMLDIR %{_defaultdocdir}/%{fsname}/html +%define DVIDIR %{_defaultdocdir}/%{fsname}/dvi +%define PDFDIR %{_defaultdocdir}/%{fsname}/pdf +%define PSDIR %{_defaultdocdir}/%{fsname}/ps +%define LOGFILEDIR /var/log/%{fsname} +%define MODINSTDIR %{_libdir}/%{fsname}/mod +%define RUNDIR %{_localstatedir}/run/%{fsname} +%define DBDIR %{LOCALSTATEDIR}/db +%define HTDOCSDIR %{_datarootdir}/%{fsname}/htdocs +%define SOUNDSDIR %{_datarootdir}/%{fsname}/sounds +%define GRAMMARDIR %{_datarootdir}/%{fsname}/grammar +%define SCRIPTDIR %{_datarootdir}/%{fsname}/scripts +%define RECORDINGSDIR %{LOCALSTATEDIR}/recordings +%define PKGCONFIGDIR %{_datarootdir}/%{fsname}/pkgconfig +%define HOMEDIR %{LOCALSTATEDIR} + + +############################################################################## +# General +############################################################################## + +Summary: FreeSWITCH en-us Allison prompts +Name: freeswitch-sounds-en-us-allison +Version: %{version} +Release: %{release}%{?dist} +License: MPL +Group: Applications/Communications +Packager: Patrick Laimbock +URL: http://www.freeswitch.org +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-allison-48000 +Requires: sox +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +FreeSWITCH 48kHz en-us Allison prompts plus, during the installation, +it will also install locally generated 8KHz, 16KHz and 32KHz prompts + +%package -n freeswitch-sounds-en-us-allison-8000 +Summary: FreeSWITCH 8kHz en-us Allison prompts +Group: Applications/Communications +BuildArch: noarch +Requires: %{fsname} + +%description -n freeswitch-sounds-en-us-allison-8000 +FreeSWITCH 8kHz en-us Allison prompts + +%package -n freeswitch-sounds-en-us-allison-16000 +Summary: FreeSWITCH 16kHz en-us Allison prompts +Group: Applications/Communications +BuildArch: noarch +Requires: %{fsname} + +%description -n freeswitch-sounds-en-us-allison-16000 +FreeSWITCH 16kHz en-us Allison prompts + +%package -n freeswitch-sounds-en-us-allison-32000 +Summary: FreeSWITCH 32kHz en-us Allison prompts +Group: Applications/Communications +BuildArch: noarch +Requires: %{fsname} + +%description -n freeswitch-sounds-en-us-allison-32000 +FreeSWITCH 32kHz en-us Allison prompts + +%package -n freeswitch-sounds-en-us-allison-48000 +Summary: FreeSWITCH 48kHz en-us Allison prompts +Group: Applications/Communications +BuildArch: noarch +Requires: %{fsname} + +%description -n freeswitch-sounds-en-us-allison-48000 +FreeSWITCH 48kHz en-us Allison prompts + +%package -n freeswitch-sounds-en-us-allison-all +Summary: FreeSWITCH en-us Allison prompts +Group: Applications/Communications +BuildArch: noarch +Requires: %{fsname} +Requires: freeswitch-sounds-en-us-allison-8000 = %{version} +Requires: freeswitch-sounds-en-us-allison-16000 = %{version} +Requires: freeswitch-sounds-en-us-allison-32000 = %{version} +Requires: freeswitch-sounds-en-us-allison-48000 = %{version} + +%description -n freeswitch-sounds-en-us-allison-all +FreeSWITCH Allison prompts package that pulls in the 8KHz, 16KHz, +32KHz and 48KHz RPMs + +############################################################################## +# Prep +############################################################################## + +%prep +%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 +############################################################################## + +%build +# nothing to do here + +############################################################################## +# Install +############################################################################## + +%install +[ "%{buildroot}" != '/' ] && rm -rf %{buildroot} + +# create the sounds directories +%{__install} -d -m 0750 %{buildroot}%{SOUNDSDIR}/en/us/allison + +pushd us/allison +# first install the 48KHz sounds +%{__cp} -prv ./* %{buildroot}%{SOUNDSDIR}/en/us/allison +# now resample the 48KHz ones to 8KHz, 16KHz and 32KHz +popd + +############################################################################## +# Clean +############################################################################## + +%clean +[ "%{buildroot}" != '/' ] && rm -rf %{buildroot} + +############################################################################## +# Post +############################################################################## + +%post +# generate the 8KHz, 16KHz and 32KHz prompts from the 48KHz ones + +############################################################################## +# Postun +############################################################################## + +%postun +# you could check if there are sound files in 8000/ or +# 16000/ or 32000/ and remove them *only* if the files +# do not belong to an rpm + +############################################################################## +# Files +############################################################################## + +%files +%defattr(-,root,root) + +%files -n freeswitch-sounds-en-us-allison-8000 +%defattr(-,root,root,-) +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ascii/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/base256/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/conference/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/currency/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/digits/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/directory/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ivr/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/misc/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/phonetic-ascii/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/time/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/voicemail/8000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/zrtp/8000 +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ascii/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/base256/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/conference/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/currency/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/digits/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/directory/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ivr/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/misc/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/phonetic-ascii/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/time/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/voicemail/8000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/zrtp/8000/*.wav + +%files -n freeswitch-sounds-en-us-allison-16000 +%defattr(-,root,root,-) +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ascii/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/base256/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/conference/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/currency/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/digits/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/directory/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ivr/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/misc/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/phonetic-ascii/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/time/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/voicemail/16000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/zrtp/16000 +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ascii/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/base256/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/conference/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/currency/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/digits/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/directory/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ivr/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/misc/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/phonetic-ascii/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/time/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/voicemail/16000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/zrtp/16000/*.wav + +%files -n freeswitch-sounds-en-us-allison-32000 +%defattr(-,root,root,-) +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ascii/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/base256/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/conference/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/currency/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/digits/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/directory/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ivr/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/misc/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/phonetic-ascii/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/time/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/voicemail/32000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/zrtp/32000 +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ascii/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/base256/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/conference/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/currency/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/digits/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/directory/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ivr/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/misc/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/phonetic-ascii/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/time/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/voicemail/32000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/zrtp/32000/*.wav + +%files -n freeswitch-sounds-en-us-allison-48000 +%defattr(-,root,root,-) +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ascii/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/base256/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/conference/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/currency/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/digits/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/directory/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/ivr/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/misc/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/phonetic-ascii/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/time/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/voicemail/48000 +%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/en/us/allison/zrtp/48000 +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ascii/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/base256/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/conference/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/currency/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/digits/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/directory/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/ivr/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/misc/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/phonetic-ascii/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/time/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/voicemail/48000/*.wav +%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/zrtp/48000/*.wav + +%files -n freeswitch-sounds-en-us-allison-all + +############################################################################## +# Changelog +############################################################################## + +%changelog +* Tue Jul 25 2017 Mike Jerris - 1.0.0-1 +- update to FHS Layout for FreeSWITCH +- bump up version +