]> git.ipfire.org Git - thirdparty/freeswitch.git/blame - freeswitch-sounds-en-us-callie.spec
Merge pull request #2216 from voughtdq/update-timezones
[thirdparty/freeswitch.git] / freeswitch-sounds-en-us-callie.spec
CommitLineData
54879c38 1##############################################################################
2# Copyright and license
3##############################################################################
4#
2fb5a393 5# Spec file for package freeswitch-sounds-en-us-callie (version 1.0.52-1)
54879c38 6#
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.
11#
12
13##############################################################################
14# Determine distribution
15##############################################################################
16
e7d04724 17# %define is_rhel5 %(test -f /etc/redhat-release && egrep -q 'release 5' /etc/redhat-release && echo 1 || echo 0)
54879c38 18
19##############################################################################
20# Set variables
21##############################################################################
22
2fb5a393 23%define version 1.0.52
bbcd4a86 24%define release 1
54879c38 25
26%define fsname freeswitch
27# you could add a version number to be more strict
28
e7d04724
KR
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}
61
54879c38 62
63##############################################################################
64# General
65##############################################################################
66
67Summary: FreeSWITCH en-us Callie prompts
68Name: freeswitch-sounds-en-us-callie
69Version: %{version}
70Release: %{release}%{?dist}
71License: MPL
72Group: Applications/Communications
73Packager: Patrick Laimbock <vc-rpms@voipconsulting.nl>
74URL: http://www.freeswitch.org
861c4e9c
KR
75Source0:http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
76Source1:http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
77Source2:http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
78Source3:http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
54879c38 79BuildArch: noarch
80BuildRequires: sox
81Requires: freeswitch
82Requires: freeswitch-sounds-en-us-callie-48000
2e42cabf 83Requires: sox
b683bb65 84BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
54879c38 85
86%description
87FreeSWITCH 48kHz en-us Callie prompts plus, during the installation,
88it will also install locally generated 8KHz, 16KHz and 32KHz prompts
89
90%package -n freeswitch-sounds-en-us-callie-8000
91Summary: FreeSWITCH 8kHz en-us Callie prompts
92Group: Applications/Communications
93BuildArch: noarch
94Requires: %{fsname}
95
96%description -n freeswitch-sounds-en-us-callie-8000
97FreeSWITCH 8kHz en-us Callie prompts
98
99%package -n freeswitch-sounds-en-us-callie-16000
100Summary: FreeSWITCH 16kHz en-us Callie prompts
101Group: Applications/Communications
102BuildArch: noarch
103Requires: %{fsname}
104
105%description -n freeswitch-sounds-en-us-callie-16000
106FreeSWITCH 16kHz en-us Callie prompts
107
108%package -n freeswitch-sounds-en-us-callie-32000
109Summary: FreeSWITCH 32kHz en-us Callie prompts
110Group: Applications/Communications
111BuildArch: noarch
112Requires: %{fsname}
113
114%description -n freeswitch-sounds-en-us-callie-32000
115FreeSWITCH 32kHz en-us Callie prompts
116
117%package -n freeswitch-sounds-en-us-callie-48000
118Summary: FreeSWITCH 48kHz en-us Callie prompts
119Group: Applications/Communications
120BuildArch: noarch
121Requires: %{fsname}
122
123%description -n freeswitch-sounds-en-us-callie-48000
124FreeSWITCH 48kHz en-us Callie prompts
125
126%package -n freeswitch-sounds-en-us-callie-all
127Summary: FreeSWITCH en-us Callie prompts
128Group: Applications/Communications
129BuildArch: noarch
130Requires: %{fsname}
131Requires: freeswitch-sounds-en-us-callie-8000 = %{version}
132Requires: freeswitch-sounds-en-us-callie-16000 = %{version}
133Requires: freeswitch-sounds-en-us-callie-32000 = %{version}
134Requires: freeswitch-sounds-en-us-callie-48000 = %{version}
135
136%description -n freeswitch-sounds-en-us-callie-all
137FreeSWITCH Callie prompts package that pulls in the 8KHz, 16KHz,
13832KHz and 48KHz RPMs
139
140##############################################################################
141# Prep
142##############################################################################
143
144%prep
fc1b0c80
KR
145%setup -n en
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
54879c38 150
151##############################################################################
152# Build
153##############################################################################
154
155%build
156# nothing to do here
157
158##############################################################################
159# Install
160##############################################################################
161
162%install
163[ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
164
165# create the sounds directories
e7d04724 166%{__install} -d -m 0750 %{buildroot}%{SOUNDSDIR}/en/us/callie
54879c38 167
168pushd us/callie
169# first install the 48KHz sounds
e7d04724 170%{__cp} -prv ./* %{buildroot}%{SOUNDSDIR}/en/us/callie
54879c38 171# now resample the 48KHz ones to 8KHz, 16KHz and 32KHz
54879c38 172popd
173
174##############################################################################
175# Clean
176##############################################################################
177
178%clean
179[ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
180
181##############################################################################
182# Post
183##############################################################################
184
185%post
186# generate the 8KHz, 16KHz and 32KHz prompts from the 48KHz ones
54879c38 187
188##############################################################################
189# Postun
190##############################################################################
191
192%postun
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
196
197##############################################################################
198# Files
199##############################################################################
200
201%files
202%defattr(-,root,root)
54879c38 203
204%files -n freeswitch-sounds-en-us-callie-8000
205%defattr(-,root,root,-)
e7d04724
KR
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
54879c38 230
231%files -n freeswitch-sounds-en-us-callie-16000
232%defattr(-,root,root,-)
e7d04724
KR
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
54879c38 257
258%files -n freeswitch-sounds-en-us-callie-32000
259%defattr(-,root,root,-)
e7d04724
KR
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
54879c38 284
285%files -n freeswitch-sounds-en-us-callie-48000
286%defattr(-,root,root,-)
e7d04724
KR
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
54879c38 311
312%files -n freeswitch-sounds-en-us-callie-all
313
314##############################################################################
315# Changelog
316##############################################################################
317
318%changelog
2fb5a393
AV
319* Fri Apr 19 2019 Andrey Volk <andrey@signalwire.com> - 1.0.52-1
320- bump up version
e7d04724
KR
321* Sun Mar 05 2012 Ken Rice <krice@freeswitch.org> - 1.0.18-1
322- update to FHS Layout for FreeSWITCH
323- bump up version
9e3c258f 324* Sun May 22 2011 Michal Bielicki <michal.bielicki@seventhsignal.de> - 1.0.16-1
325- bump up version
54879c38 326* Tue Jan 18 2011 Michal Bielicki <michal.bielicki@seventhsignal.de> - 1.0.14-1
327- bump up version
328- include script into freeswitch core
329- include specfile into freeswitch core
330- runtime does not require sox, only building
331
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
334
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
339
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
343
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
347
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
350- rework spec file
351- add sox as a requirement
352- run buildsounds-callie.sh in post to generate 8KHz, 16KHz and 32KHz prompts
353
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
357
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
363