%global commit fbe44d17b3cb13fcc8dff190d232162e411ce2db %global short_commit fbe44d1 Name: freeswitch-sounds Summary: Freeswitch sounds Version: 0^1.git%{short_commit} Release: %autorelease BuildArch: noarch License: CC-BY-3.0 Source0: https://github.com/freeswitch/freeswitch-sounds/archive/%{commit}.tar.gz BuildRequires: sox Requires: freeswitch-sounds-music Recommends: freeswitch-sounds-en-us-callie %description Sounds for freeswitch %package music Summary: Music for freeswitch %description music Music for freeswitch %package en-us-callie Summary: US english sounds for freeswitch using the callie voice %description en-us-callie US english sounds for freeswitch using the callie voice %package en-us-allison Summary: US english sounds for freeswitch using the allison voice %description en-us-allison US english sounds for freeswitch using the allison voice %package en-ca-june Summary: Canadian english sounds for freeswitch using the june voice %description en-ca-june Canadian english sounds for freeswitch using the june voice %package es-ar-mario Summary: Argentinian spanish sounds for freeswitch using the mario voice %description es-ar-mario Argentinian spanish sounds for freeswitch using the mario voice %package fr-ca-june Summary: Canadian french sounds for freeswitch using the june voice %description fr-ca-june Canadian french sounds for freeswitch using the june voice %package pt-br-karina Summary: Brazilian portugese sounds for freeswitch using the karina voice %description pt-br-karina Brazilian portugese sounds for freeswitch using the karina voice %package ru-ru-elena Summary: Russian sounds for freeswitch using the elena voice %description ru-ru-elena Russian sounds for freeswitch using the elena voice %package ru-ru-kirill Summary: Russian sounds for freeswitch using the kirill voice %description ru-ru-kirill Russian sounds for freeswitch using the kirill voice %package ru-ru-vika Summary: Russian sounds for freeswitch using the vika voice %description ru-ru-vika Russian sounds for freeswitch using the vika voice %package sv-se-jakob Summary: Swedish sounds for freeswitch using the jakob voice %description sv-se-jakob Swedish sounds for freeswitch using the jakob voice %package zh-cn-sinmei Summary: Chinese sounds for freeswitch using the sinmei voice %description zh-cn-sinmei Chinese sounds for freeswitch using the sinmei voice %package zh-hk-sinmei Summary: Chinese (Hong Kong) sounds for freeswitch using the sinmei voice %description zh-hk-sinmei Chinese (Hong Kong) sounds for freeswitch using the sinmei voice %prep %autosetup -n freeswitch-sounds-%{commit} %build for section in ??/??/*/[a-z]* music; do pushd $section for rate in 32000 16000 8000; do mkdir -p $rate for file in 4?000/*.wav; do sox "$file" -r $rate $rate/"${file##*/}" done done # handling for ru/RU/elena which has 44000Hz files instead of 48000 if [ -d 44000 ]; then rate=48000 mkdir -p $rate for file in 44000/*.wav; do sox "$file" -r $rate $rate/"${file##*/}" done fi popd done %install cp en/LICENSE en/us/callie/LICENSE cp en/LICENSE en/us/allison/LICENSE cp en/LICENSE en/ca/june/LICENSE rm en/LICENSE mkdir -p %{buildroot}%{_datadir}/freeswitch/sounds cp -r ?? music %{buildroot}%{_datadir}/freeswitch/sounds %files %files music %{_datadir}/freeswitch/sounds/music %files en-us-callie %{_datadir}/freeswitch/sounds/en/us/callie %files en-us-allison %{_datadir}/freeswitch/sounds/en/us/allison %files en-ca-june %{_datadir}/freeswitch/sounds/en/ca/june %files es-ar-mario %{_datadir}/freeswitch/sounds/es/ar/mario %files fr-ca-june %{_datadir}/freeswitch/sounds/fr/ca/june %files pt-br-karina %{_datadir}/freeswitch/sounds/pt/BR/karina %files ru-ru-elena %{_datadir}/freeswitch/sounds/ru/RU/elena %files ru-ru-kirill %{_datadir}/freeswitch/sounds/ru/RU/kirill %files ru-ru-vika %{_datadir}/freeswitch/sounds/ru/RU/vika %files sv-se-jakob %{_datadir}/freeswitch/sounds/sv/se/jakob %files zh-cn-sinmei %{_datadir}/freeswitch/sounds/zh/cn/sinmei %files zh-hk-sinmei %{_datadir}/freeswitch/sounds/zh/hk/sinmei %changelog %autochangelog #* Tue Jun 10 2025 Tim Anderson - 1.0.0-1 #- Created RPM spec