1 ##############################################################################
2 # Copyright and license
3 ##############################################################################
5 # Spec file for package freeswitch-sounds-en-us-callie (version 1.0.52-1)
7 # Copyright (c) 2009 Patrick Laimbock
8 # Some fixes and additions (c) 2011 Michal Bielicki
9 # This file and all modifications and additions to the pristine
10 # package are under the same license as the package itself.
13 ##############################################################################
14 # Determine distribution
15 ##############################################################################
17 # %define is_rhel5 %(test -f /etc/redhat-release && egrep -q 'release 5' /etc/redhat-release && echo 1 || echo 0)
19 ##############################################################################
21 ##############################################################################
23 %define version
1.0.52
26 %define fsname freeswitch
27 # you could add a version number to be more strict
29 %define PREFIX
%{_prefix}
30 %define EXECPREFIX
%{_exec_prefix}
31 %define BINDIR
%{_bindir}
32 %define SBINDIR
%{_sbindir}
33 %define LIBEXECDIR
%{_libexecdir}/%{fsname}
34 %define SYSCONFDIR
%{_sysconfdir}/%{fsname}
35 %define SHARESTATEDIR
%{_sharedstatedir}/%{fsname}
36 %define LOCALSTATEDIR
%{_localstatedir}/lib/%{fsname}
37 %define LIBDIR
%{_libdir}
38 %define INCLUDEDIR
%{_includedir}
39 %define _datarootdir
%{_prefix}/share
40 %define DATAROOTDIR
%{_datarootdir}
41 %define DATADIR
%{_datadir}
42 %define INFODIR
%{_infodir}
43 %define LOCALEDIR
%{_datarootdir}/locale
44 %define MANDIR
%{_mandir}
45 %define DOCDIR
%{_defaultdocdir}/%{fsname}
46 %define HTMLDIR
%{_defaultdocdir}/%{fsname}/html
47 %define DVIDIR
%{_defaultdocdir}/%{fsname}/dvi
48 %define PDFDIR
%{_defaultdocdir}/%{fsname}/pdf
49 %define PSDIR
%{_defaultdocdir}/%{fsname}/ps
50 %define LOGFILEDIR
/var
/log
/%{fsname}
51 %define MODINSTDIR
%{_libdir}/%{fsname}/mod
52 %define RUNDIR
%{_localstatedir}/run/%{fsname}
53 %define DBDIR
%{LOCALSTATEDIR}/db
54 %define HTDOCSDIR
%{_datarootdir}/%{fsname}/htdocs
55 %define SOUNDSDIR
%{_datarootdir}/%{fsname}/sounds
56 %define GRAMMARDIR
%{_datarootdir}/%{fsname}/grammar
57 %define SCRIPTDIR
%{_datarootdir}/%{fsname}/scripts
58 %define RECORDINGSDIR
%{LOCALSTATEDIR}/recordings
59 %define PKGCONFIGDIR
%{_datarootdir}/%{fsname}/pkgconfig
60 %define HOMEDIR
%{LOCALSTATEDIR}
63 ##############################################################################
65 ##############################################################################
67 Summary: FreeSWITCH en
-us Callie prompts
68 Name: freeswitch
-sounds
-en
-us
-callie
70 Release: %{release}%{?dist}
72 Group: Applications
/Communications
73 Packager: Patrick Laimbock
<vc
-rpms@voipconsulting.nl
>
74 URL: http
://www.freeswitch.org
75 Source0:http
://files.freeswitch.org
/releases
/sounds
/%{name}-48000-%{version}.tar.gz
76 Source1:http
://files.freeswitch.org
/releases
/sounds
/%{name}-32000-%{version}.tar.gz
77 Source2:http
://files.freeswitch.org
/releases
/sounds
/%{name}-16000-%{version}.tar.gz
78 Source3:http
://files.freeswitch.org
/releases
/sounds
/%{name}-8000-%{version}.tar.gz
82 Requires: freeswitch
-sounds
-en
-us
-callie
-48000
84 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
87 FreeSWITCH
48kHz en
-us Callie prompts plus
, during the installation
,
88 it will also
install locally generated
8KHz
, 16KHz and
32KHz prompts
90 %package -n freeswitch
-sounds
-en
-us
-callie
-8000
91 Summary: FreeSWITCH
8kHz en
-us Callie prompts
92 Group: Applications
/Communications
96 %description -n freeswitch
-sounds
-en
-us
-callie
-8000
97 FreeSWITCH
8kHz en
-us Callie prompts
99 %package -n freeswitch
-sounds
-en
-us
-callie
-16000
100 Summary: FreeSWITCH
16kHz en
-us Callie prompts
101 Group: Applications
/Communications
105 %description -n freeswitch
-sounds
-en
-us
-callie
-16000
106 FreeSWITCH
16kHz en
-us Callie prompts
108 %package -n freeswitch
-sounds
-en
-us
-callie
-32000
109 Summary: FreeSWITCH
32kHz en
-us Callie prompts
110 Group: Applications
/Communications
114 %description -n freeswitch
-sounds
-en
-us
-callie
-32000
115 FreeSWITCH
32kHz en
-us Callie prompts
117 %package -n freeswitch
-sounds
-en
-us
-callie
-48000
118 Summary: FreeSWITCH
48kHz en
-us Callie prompts
119 Group: Applications
/Communications
123 %description -n freeswitch
-sounds
-en
-us
-callie
-48000
124 FreeSWITCH
48kHz en
-us Callie prompts
126 %package -n freeswitch
-sounds
-en
-us
-callie
-all
127 Summary: FreeSWITCH en
-us Callie prompts
128 Group: Applications
/Communications
131 Requires: freeswitch
-sounds
-en
-us
-callie
-8000 = %{version}
132 Requires: freeswitch
-sounds
-en
-us
-callie
-16000 = %{version}
133 Requires: freeswitch
-sounds
-en
-us
-callie
-32000 = %{version}
134 Requires: freeswitch
-sounds
-en
-us
-callie
-48000 = %{version}
136 %description -n freeswitch
-sounds
-en
-us
-callie
-all
137 FreeSWITCH Callie prompts package that pulls
in the
8KHz
, 16KHz
,
140 ##############################################################################
142 ##############################################################################
146 %setup -T
-D
-b
0 -n en
147 %setup -T
-D
-b
1 -n en
148 %setup -T
-D
-b
2 -n en
149 %setup -T
-D
-b
3 -n en
151 ##############################################################################
153 ##############################################################################
158 ##############################################################################
160 ##############################################################################
163 [ "
%{buildroot}" != '/' ] && rm -rf %{buildroot}
165 # create the sounds directories
166 %{__install} -d -m 0750 %{buildroot}%{SOUNDSDIR}/en
/us
/callie
169 # first install the 48KHz sounds
170 %{__cp} -prv ./* %{buildroot}%{SOUNDSDIR}/en
/us
/callie
171 # now resample the 48KHz ones to 8KHz, 16KHz and 32KHz
174 ##############################################################################
176 ##############################################################################
179 [ "
%{buildroot}" != '/' ] && rm -rf %{buildroot}
181 ##############################################################################
183 ##############################################################################
186 # generate the 8KHz, 16KHz and 32KHz prompts from the 48KHz ones
188 ##############################################################################
190 ##############################################################################
193 # you could check if there are sound files in 8000/ or
194 # 16000/ or 32000/ and remove them *only* if the files
195 # do not belong to an rpm
197 ##############################################################################
199 ##############################################################################
202 %defattr(-,root
,root
)
204 %files -n freeswitch
-sounds
-en
-us
-callie
-8000
205 %defattr(-,root
,root
,-)
206 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ascii
/8000
207 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/base256
/8000
208 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/conference
/8000
209 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/currency
/8000
210 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/digits
/8000
211 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/directory
/8000
212 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ivr
/8000
213 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/misc
/8000
214 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/8000
215 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/time/8000
216 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/voicemail
/8000
217 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/zrtp
/8000
218 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ascii
/8000/*.wav
219 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/base256
/8000/*.wav
220 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/conference
/8000/*.wav
221 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/currency
/8000/*.wav
222 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/digits
/8000/*.wav
223 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/directory
/8000/*.wav
224 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ivr
/8000/*.wav
225 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/misc
/8000/*.wav
226 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/8000/*.wav
227 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/time/8000/*.wav
228 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/voicemail
/8000/*.wav
229 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/zrtp
/8000/*.wav
231 %files -n freeswitch
-sounds
-en
-us
-callie
-16000
232 %defattr(-,root
,root
,-)
233 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ascii
/16000
234 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/base256
/16000
235 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/conference
/16000
236 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/currency
/16000
237 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/digits
/16000
238 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/directory
/16000
239 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ivr
/16000
240 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/misc
/16000
241 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/16000
242 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/time/16000
243 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/voicemail
/16000
244 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/zrtp
/16000
245 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ascii
/16000/*.wav
246 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/base256
/16000/*.wav
247 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/conference
/16000/*.wav
248 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/currency
/16000/*.wav
249 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/digits
/16000/*.wav
250 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/directory
/16000/*.wav
251 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ivr
/16000/*.wav
252 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/misc
/16000/*.wav
253 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/16000/*.wav
254 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/time/16000/*.wav
255 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/voicemail
/16000/*.wav
256 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/zrtp
/16000/*.wav
258 %files -n freeswitch
-sounds
-en
-us
-callie
-32000
259 %defattr(-,root
,root
,-)
260 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ascii
/32000
261 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/base256
/32000
262 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/conference
/32000
263 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/currency
/32000
264 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/digits
/32000
265 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/directory
/32000
266 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ivr
/32000
267 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/misc
/32000
268 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/32000
269 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/time/32000
270 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/voicemail
/32000
271 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/zrtp
/32000
272 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ascii
/32000/*.wav
273 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/base256
/32000/*.wav
274 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/conference
/32000/*.wav
275 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/currency
/32000/*.wav
276 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/digits
/32000/*.wav
277 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/directory
/32000/*.wav
278 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ivr
/32000/*.wav
279 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/misc
/32000/*.wav
280 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/32000/*.wav
281 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/time/32000/*.wav
282 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/voicemail
/32000/*.wav
283 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/zrtp
/32000/*.wav
285 %files -n freeswitch
-sounds
-en
-us
-callie
-48000
286 %defattr(-,root
,root
,-)
287 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ascii
/48000
288 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/base256
/48000
289 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/conference
/48000
290 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/currency
/48000
291 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/digits
/48000
292 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/directory
/48000
293 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/ivr
/48000
294 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/misc
/48000
295 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/48000
296 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/time/48000
297 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/voicemail
/48000
298 %attr(0750,freeswitch
,daemon
) %dir %{SOUNDSDIR}/en
/us
/callie
/zrtp
/48000
299 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ascii
/48000/*.wav
300 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/base256
/48000/*.wav
301 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/conference
/48000/*.wav
302 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/currency
/48000/*.wav
303 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/digits
/48000/*.wav
304 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/directory
/48000/*.wav
305 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/ivr
/48000/*.wav
306 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/misc
/48000/*.wav
307 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/phonetic
-ascii
/48000/*.wav
308 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/time/48000/*.wav
309 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/voicemail
/48000/*.wav
310 %attr(0640,freeswitch
,daemon
) %{SOUNDSDIR}/en
/us
/callie
/zrtp
/48000/*.wav
312 %files -n freeswitch
-sounds
-en
-us
-callie
-all
314 ##############################################################################
316 ##############################################################################
319 * Fri Apr
19 2019 Andrey Volk
<andrey@signalwire.com
> - 1.0.52-1
321 * Sun Mar
05 2012 Ken Rice
<krice@freeswitch.org
> - 1.0.18-1
322 - update to FHS Layout
for FreeSWITCH
324 * Sun May
22 2011 Michal Bielicki
<michal.bielicki@seventhsignal.de
> - 1.0.16-1
326 * Tue Jan
18 2011 Michal Bielicki
<michal.bielicki@seventhsignal.de
> - 1.0.14-1
328 - include script into freeswitch core
329 - include specfile into freeswitch core
330 - runtime does not require sox
, only building
332 * Thu Dec
17 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-8
333 - update perms and user
/group to sync with the old situation
335 * Wed Dec
16 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-7
336 - make main package require freeswitch
-sounds
-en
-us
-callie
-48000 and
337 - generate the
8KHz
, 16KHz and
32KHz sounds from there
338 - add license to spec file
340 * Wed Dec
16 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-5
341 - put
48KHz
in a separate package and
let the main package Require
48KHz
342 - and
then use the script to generate the
8KHz
, 16KHz and
32KHz sounds
344 * Wed Dec
16 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-4
345 - add freeswitch
-sounds
-en
-us
-callie
-all package that pulls
in the
8KHz
,
346 - 16KHz
, 32KHz and
48KHz RPM packages
348 * Tue Dec
15 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-3
349 - override subpackage name with
-n so it no longer builds an empty main RPM
351 - add sox as a requirement
352 - run buildsounds
-callie.sh
in post to generate
8KHz
, 16KHz and
32KHz prompts
354 * Tue Dec
15 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-2
355 - can't override
Name in subpackage so put all versions
in RPM subpackages
356 - with an empty main RPM package
358 * Tue Dec
15 2009 Patrick Laimbock
<vc
-rpms@voipconsulting.nl
> - 1.0.12-1
359 - create spec file with the following requirement
:
360 - source only contains the
48KHz sound prompts
361 - during build the
48KHz sound prompts are resampled to
8KHz
, 16KHz and
32KHz
362 - the
8KHz
, 16KHz
, 32KHz and
48KHz sound prompts are packaged separately