]>
Commit | Line | Data |
---|---|---|
52d674cd | 1 | # TODO: |
eb4a62e6 | 2 | # - find (permanent) solution for https://bugs.launchpad.net/pld-linux/+bug/501593 |
dc17a751 JK |
3 | |
4 | %define _version 1.5 | |
5 | # Spanish sounds lag behind | |
6 | %define es_version 1.4.27 | |
7 | ||
52d674cd ER |
8 | Summary: Core sounds for Asterisk |
9 | Name: asterisk-sounds-core | |
dc17a751 | 10 | Version: %{_version} |
26d75ad8 | 11 | Release: 1 |
52d674cd ER |
12 | License: CC-BY-SA |
13 | Group: Applications/Sound | |
14 | URL: http://www.asterisk.org/ | |
dc17a751 JK |
15 | Source0: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-alaw-%{_version}.tar.gz |
16 | # Source0-md5: 31091dd45e04a9dffe3355be995d3bce | |
17 | Source1: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-g722-%{_version}.tar.gz | |
18 | # Source1-md5: 97381dec2d1791b9940bdbcddcec29fc | |
19 | Source2: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-g729-%{_version}.tar.gz | |
20 | # Source2-md5: c3c8994fd58cc5a980e932aca5d2bac8 | |
21 | Source3: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-%{_version}.tar.gz | |
22 | # Source3-md5: 560136ab2fbe737efb204e45352cff95 | |
23 | Source4: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-siren7-%{_version}.tar.gz | |
24 | # Source4-md5: ba12827c7093cb6089b876e61d9465a0 | |
25 | Source5: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-siren14-%{_version}.tar.gz | |
26 | # Source5-md5: 79b362743207296f48325c6f550248f9 | |
27 | Source6: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-sln16-%{_version}.tar.gz | |
28 | # Source6-md5: fa113450d50c4c7ef0245953be59bb27 | |
29 | Source7: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-ulaw-%{_version}.tar.gz | |
30 | # Source7-md5: bb1e5b78b460d7f303fe967ef89d42cf | |
31 | Source8: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-wav-%{_version}.tar.gz | |
32 | # Source8-md5: fc8b3eb4724b7b87a8b530cc1ae54da5 | |
33 | Source10: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-alaw-%{es_version}.tar.gz | |
34 | # Source10-md5: 8a54d1149adea26e57be5d6fda30bc14 | |
35 | Source11: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-g722-%{es_version}.tar.gz | |
36 | # Source11-md5: 97acc2cf26ad133d56470b4959cfc666 | |
37 | Source12: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-g729-%{es_version}.tar.gz | |
38 | # Source12-md5: 78a0eb3b4813fd35914c65a16385a54e | |
39 | Source13: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-gsm-%{es_version}.tar.gz | |
40 | # Source13-md5: 5d4fcba1b476d42f58f4b1e8416828d8 | |
41 | Source14: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-siren7-%{es_version}.tar.gz | |
42 | # Source14-md5: 87930f88fdb906daa7580e418ef81e3e | |
43 | Source15: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-siren14-%{es_version}.tar.gz | |
44 | # Source15-md5: e07dd8488b10589d5444d20ae1461bd8 | |
45 | Source16: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-sln16-%{es_version}.tar.gz | |
46 | # Source16-md5: d2da4fb3517ff4a41c6c2cf59dcb2dbb | |
47 | Source17: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-ulaw-%{es_version}.tar.gz | |
48 | # Source17-md5: 0695f90d4b6af271973a48282d8ec66d | |
49 | Source18: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-wav-%{es_version}.tar.gz | |
50 | # Source18-md5: 09bb1ef017fdb9a88547faeff40f6c66 | |
51 | Source20: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-alaw-%{_version}.tar.gz | |
52 | # Source20-md5: e387ddc68d0ba581049f56f36e4d560b | |
53 | Source21: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-g722-%{_version}.tar.gz | |
54 | # Source21-md5: 5118c63ab67926709cc39b67a147408b | |
55 | Source22: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-g729-%{_version}.tar.gz | |
56 | # Source22-md5: c8006e9ec6fe9d5055930db2c8d026c5 | |
57 | Source23: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-gsm-%{_version}.tar.gz | |
58 | # Source23-md5: 867ff25099d7a8b0124040fd5931d411 | |
59 | Source24: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-siren7-%{_version}.tar.gz | |
60 | # Source24-md5: 700f3ea4232243c86131b95fbcb63157 | |
61 | Source25: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-siren14-%{_version}.tar.gz | |
62 | # Source25-md5: 192c3f6b82b184ab04850271a5a2dddf | |
63 | Source26: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-sln16-%{_version}.tar.gz | |
64 | # Source26-md5: f0ec92fa7321775ea75681863581e65c | |
65 | Source27: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-ulaw-%{_version}.tar.gz | |
66 | # Source27-md5: 6165a0a49193c588313c2357e05c281f | |
67 | Source28: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-wav-%{_version}.tar.gz | |
68 | # Source28-md5: faa4a28958a40bc5527c3b95b06f18d1 | |
65bf1279 | 69 | BuildRequires: iconv |
52d674cd ER |
70 | BuildArch: noarch |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
72 | ||
73 | %define sounds_dir %{_datadir}/asterisk/sounds | |
74 | ||
75 | %description | |
76 | Core sound files for Asterisk. | |
77 | ||
78 | %package en | |
79 | Summary: Core English sound files for Asterisk | |
80 | Group: Applications/Sound | |
81 | Requires: asterisk >= 1.4.0 | |
82 | ||
83 | %description en | |
84 | Core English sound files for Asterisk. | |
85 | ||
86 | %package en-alaw | |
87 | Summary: Core English ALAW sound files for Asterisk | |
88 | Group: Applications/Sound | |
89 | Requires: asterisk >= 1.4.0 | |
90 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
91 | Provides: asterisk-sounds-core = %{version}-%{release} | |
92 | ||
93 | %description en-alaw | |
94 | Core English ALAW sound files for Asterisk. | |
95 | ||
96 | %package en-g722 | |
97 | Summary: Core English G.722 sound files for Asterisk | |
98 | Group: Applications/Sound | |
99 | Requires: asterisk >= 1.4.0 | |
100 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
101 | Provides: asterisk-sounds-core = %{version}-%{release} | |
102 | ||
103 | %description en-g722 | |
104 | Core English G.722 sound files for Asterisk. | |
105 | ||
106 | %package en-g729 | |
107 | Summary: Core English G.729 sound files for Asterisk | |
108 | Group: Applications/Sound | |
109 | Requires: asterisk >= 1.4.0 | |
110 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
111 | Provides: asterisk-sounds-core = %{version}-%{release} | |
112 | ||
113 | %description en-g729 | |
114 | Core English G.729 sound files for Asterisk. | |
115 | ||
116 | %package en-gsm | |
117 | Summary: Core English GSM sound files for Asterisk | |
118 | Group: Applications/Sound | |
119 | Requires: asterisk >= 1.4.0 | |
120 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
121 | Provides: asterisk-sounds-core = %{version}-%{release} | |
122 | ||
123 | %description en-gsm | |
124 | Core English GSM sound files for Asterisk. | |
125 | ||
126 | %package en-siren7 | |
127 | Summary: Core English Siren7 sound files for Asterisk | |
128 | Group: Applications/Sound | |
129 | Requires: asterisk >= 1.4.0 | |
130 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
131 | Provides: asterisk-sounds-core = %{version}-%{release} | |
132 | ||
133 | %description en-siren7 | |
134 | Core English Siren7 sound files for Asterisk. | |
135 | ||
136 | %package en-siren14 | |
137 | Summary: Core English GSM sound files for Asterisk | |
138 | Group: Applications/Sound | |
139 | Requires: asterisk >= 1.4.0 | |
140 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
141 | Provides: asterisk-sounds-core = %{version}-%{release} | |
142 | ||
143 | %description en-siren14 | |
144 | Core English Siren14 sound files for Asterisk. | |
145 | ||
146 | %package en-sln16 | |
147 | Summary: Core English SLN16 sound files for Asterisk | |
148 | Group: Applications/Sound | |
149 | Requires: asterisk >= 1.4.0 | |
150 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
151 | Provides: asterisk-sounds-core = %{version}-%{release} | |
152 | ||
153 | %description en-sln16 | |
154 | Core English SLN16 sound files for Asterisk. | |
155 | ||
156 | %package en-ulaw | |
157 | Summary: Core English ULAW sound files for Asterisk | |
158 | Group: Applications/Sound | |
159 | Requires: asterisk >= 1.4.0 | |
160 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
161 | Provides: asterisk-sounds-core = %{version}-%{release} | |
162 | ||
163 | %description en-ulaw | |
164 | Core English ULAW sound files for Asterisk. | |
165 | ||
166 | %package en-wav | |
167 | Summary: Core English WAV sound files for Asterisk | |
168 | Group: Applications/Sound | |
169 | Requires: asterisk >= 1.4.0 | |
170 | Requires: asterisk-sounds-core-en = %{version}-%{release} | |
171 | Provides: asterisk-sounds-core = %{version}-%{release} | |
172 | ||
173 | %description en-wav | |
174 | Core English WAV sound files for Asterisk. | |
175 | ||
176 | %package es | |
dc17a751 | 177 | Version: %{es_version} |
52d674cd ER |
178 | Summary: Core Spanish sound files for Asterisk |
179 | Group: Applications/Sound | |
180 | Requires: asterisk >= 1.4.0 | |
181 | ||
182 | %description es | |
183 | Core Spanish sound files for Asterisk. | |
184 | ||
185 | %package es-alaw | |
dc17a751 | 186 | Version: %{es_version} |
52d674cd ER |
187 | Summary: Core Spanish ALAW sound files for Asterisk |
188 | Group: Applications/Sound | |
189 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
190 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
191 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
192 | |
193 | %description es-alaw | |
194 | Core Spanish ALAW sound files for Asterisk. | |
195 | ||
196 | %package es-g722 | |
dc17a751 | 197 | Version: %{es_version} |
52d674cd ER |
198 | Summary: Core Spanish G.722 sound files for Asterisk |
199 | Group: Applications/Sound | |
200 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
201 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
202 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
203 | |
204 | %description es-g722 | |
205 | Core Spanish G.722 sound files for Asterisk. | |
206 | ||
207 | %package es-g729 | |
dc17a751 | 208 | Version: %{es_version} |
52d674cd ER |
209 | Summary: Core Spanish G.729 sound files for Asterisk |
210 | Group: Applications/Sound | |
211 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
212 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
213 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
214 | |
215 | %description es-g729 | |
216 | Core Spanish G.729 sound files for Asterisk. | |
217 | ||
218 | %package es-gsm | |
dc17a751 | 219 | Version: %{es_version} |
52d674cd ER |
220 | Summary: Core Spanish GSM sound files for Asterisk |
221 | Group: Applications/Sound | |
222 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
223 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
224 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
225 | |
226 | %description es-gsm | |
227 | Core Spanish GSM sound files for Asterisk. | |
228 | ||
229 | %package es-siren7 | |
dc17a751 | 230 | Version: %{es_version} |
52d674cd ER |
231 | Summary: Core Spanish Siren7 sound files for Asterisk |
232 | Group: Applications/Sound | |
233 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
234 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
235 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
236 | |
237 | %description es-siren7 | |
238 | Core Spanish Siren7 sound files for Asterisk. | |
239 | ||
240 | %package es-siren14 | |
dc17a751 | 241 | Version: %{es_version} |
52d674cd ER |
242 | Summary: Core Spanish Siren14 sound files for Asterisk |
243 | Group: Applications/Sound | |
244 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
245 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
246 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
247 | |
248 | %description es-siren14 | |
249 | Core Spanish Siren14 sound files for Asterisk. | |
250 | ||
251 | %package es-sln16 | |
dc17a751 | 252 | Version: %{es_version} |
52d674cd ER |
253 | Summary: Core Spanish SLN16 sound files for Asterisk |
254 | Group: Applications/Sound | |
255 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
256 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
257 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
258 | |
259 | %description es-sln16 | |
260 | Core Spanish SLN16 sound files for Asterisk. | |
261 | ||
262 | %package es-ulaw | |
dc17a751 | 263 | Version: %{es_version} |
52d674cd ER |
264 | Summary: Core Spanish ULAW sound files for Asterisk |
265 | Group: Applications/Sound | |
266 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
267 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
268 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
269 | |
270 | %description es-ulaw | |
271 | Core Spanish ULAW sound files for Asterisk. | |
272 | ||
273 | %package es-wav | |
dc17a751 | 274 | Version: %{es_version} |
52d674cd ER |
275 | Summary: Core Spanish WAV sound files for Asterisk |
276 | Group: Applications/Sound | |
277 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
278 | Requires: asterisk-sounds-core-es = %{es_version}-%{release} |
279 | Provides: asterisk-sounds-core = %{es_version}-%{release} | |
52d674cd ER |
280 | |
281 | %description es-wav | |
282 | Core Spanish WAV sound files for Asterisk. | |
283 | ||
284 | %package fr | |
dc17a751 | 285 | Version: %{_version} |
52d674cd ER |
286 | Summary: Core English sound files for Asterisk |
287 | Group: Applications/Sound | |
288 | Requires: asterisk >= 1.4.0 | |
289 | ||
290 | %description fr | |
291 | Core French sound files for Asterisk. | |
292 | ||
293 | %package fr-alaw | |
294 | Summary: Core French ALAW sound files for Asterisk | |
295 | Group: Applications/Sound | |
296 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
297 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
298 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
299 | |
300 | %description fr-alaw | |
301 | Core French ALAW sound files for Asterisk. | |
302 | ||
303 | %package fr-g722 | |
304 | Summary: Core French G.722 sound files for Asterisk | |
305 | Group: Applications/Sound | |
306 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
307 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
308 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
309 | |
310 | %description fr-g722 | |
311 | Core French G.722 sound files for Asterisk. | |
312 | ||
313 | %package fr-g729 | |
314 | Summary: Core French G.729 sound files for Asterisk | |
315 | Group: Applications/Sound | |
316 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
317 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
318 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
319 | |
320 | %description fr-g729 | |
321 | Core French G.729 sound files for Asterisk. | |
322 | ||
323 | %package fr-gsm | |
324 | Summary: Core French GSM sound files for Asterisk | |
325 | Group: Applications/Sound | |
326 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
327 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
328 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
329 | |
330 | %description fr-gsm | |
331 | Core French GSM sound files for Asterisk. | |
332 | ||
333 | %package fr-siren7 | |
334 | Summary: Core French Siren7 sound files for Asterisk | |
335 | Group: Applications/Sound | |
336 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
337 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
338 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
339 | |
340 | %description fr-siren7 | |
341 | Core French Siren7 sound files for Asterisk. | |
342 | ||
343 | %package fr-siren14 | |
344 | Summary: Core French Siren14 sound files for Asterisk | |
345 | Group: Applications/Sound | |
346 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
347 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
348 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
349 | |
350 | %description fr-siren14 | |
351 | Core French Siren14 sound files for Asterisk. | |
352 | ||
353 | %package fr-sln16 | |
354 | Summary: Core French SLN16 sound files for Asterisk | |
355 | Group: Applications/Sound | |
356 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
357 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
358 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
359 | |
360 | %description fr-sln16 | |
361 | Core French SLN16 sound files for Asterisk. | |
362 | ||
363 | %package fr-ulaw | |
364 | Summary: Core French ULAW sound files for Asterisk | |
365 | Group: Applications/Sound | |
366 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
367 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
368 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
369 | |
370 | %description fr-ulaw | |
371 | Core French ULAW sound files for Asterisk. | |
372 | ||
373 | %package fr-wav | |
374 | Summary: Core French WAV sound files for Asterisk | |
375 | Group: Applications/Sound | |
376 | Requires: asterisk >= 1.4.0 | |
dc17a751 JK |
377 | Requires: asterisk-sounds-core-fr = %{_version}-%{release} |
378 | Provides: asterisk-sounds-core = %{_version}-%{release} | |
52d674cd ER |
379 | |
380 | %description fr-wav | |
381 | Core French WAV sound files for Asterisk. | |
382 | ||
383 | %prep | |
c2efa9b7 | 384 | %setup -qcT |
52d674cd | 385 | |
eb4a62e6 ER |
386 | if [ -f /proc/$PPID/environ ]; then |
387 | # import env from parent process | |
2984506b | 388 | unset LC_ALL |
eb4a62e6 | 389 | export $(tr '\0' '\n' < /proc/$PPID/environ | grep -E '^(LC_|LANG)') |
2984506b | 390 | if locale | grep -Eqi 'utf-?8'; then |
eb4a62e6 ER |
391 | echo >&2 "You should re-run rpmbuild with LANG=C LC_ALL=C, see https://bugs.launchpad.net/pld-linux/+bug/501593" |
392 | exit 1 | |
393 | fi | |
394 | fi | |
52d674cd ER |
395 | |
396 | for file in %{S:0} %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} %{S:8}; do | |
397 | tar --list --file $file | grep -E '.(alaw|g722|g729|gsm|siren7|siren14|sln16|ulaw|wav)$' | sed -e 's!^!%{sounds_dir}/!' > `basename $file .tar.gz`.list | |
398 | tar --extract --directory . --file $file | |
399 | done | |
400 | ||
401 | mkdir es | |
402 | for file in %{S:10} %{S:11} %{S:12} %{S:13} %{S:14} %{S:15} %{S:16} %{S:17} %{S:18}; do | |
403 | tar --list --file $file | grep -E '.(alaw|g722|g729|gsm|siren7|siren14|sln16|ulaw|wav)$' | sed -e 's!^!%{sounds_dir}/es/!' > `basename $file .tar.gz`.list | |
404 | tar --extract --directory ./es/ --file $file | |
405 | done | |
406 | ||
407 | mkdir fr | |
408 | for file in %{S:20} %{S:21} %{S:22} %{S:23} %{S:24} %{S:25} %{S:26} %{S:27} %{S:28}; do | |
409 | tar --list --file $file | grep -E '.(alaw|g722|g729|gsm|siren7|siren14|sln16|ulaw|wav)$' | sed -e 's!^!%{sounds_dir}/fr/!' > `basename $file .tar.gz`.list | |
410 | tar --extract --directory ./fr/ --file $file | |
411 | done | |
412 | ||
413 | iconv -f iso-8859-1 -t utf-8 < fr/core-sounds-fr.txt > fr/core-sounds-fr.txt.tmp | |
414 | touch --reference fr/core-sounds-fr.txt fr/core-sounds-fr.txt.tmp | |
415 | mv fr/core-sounds-fr.txt.tmp fr/core-sounds-fr.txt | |
416 | ||
52d674cd ER |
417 | %install |
418 | rm -rf $RPM_BUILD_ROOT | |
419 | install -d $RPM_BUILD_ROOT%{sounds_dir}/{,es,fr} | |
420 | ||
421 | for file in $(cat *.list | sed -e 's!^%{sounds_dir}/!!'); do | |
422 | install -d $RPM_BUILD_ROOT%{sounds_dir}/$(dirname $file) | |
423 | cp -p $file $RPM_BUILD_ROOT%{sounds_dir}/$file | |
424 | done | |
425 | ||
426 | %clean | |
427 | rm -rf $RPM_BUILD_ROOT | |
428 | ||
429 | %files en | |
430 | %defattr(644,root,root,755) | |
431 | %doc core-sounds-en.txt | |
dc17a751 JK |
432 | %doc CHANGES-asterisk-core-en-%{_version} |
433 | %doc CREDITS-asterisk-core-en-%{_version} | |
434 | %doc LICENSE-asterisk-core-en-%{_version} | |
c2efa9b7 ER |
435 | %dir %{sounds_dir}/dictate |
436 | %dir %{sounds_dir}/digits | |
437 | %dir %{sounds_dir}/followme | |
438 | %dir %{sounds_dir}/letters | |
439 | %dir %{sounds_dir}/phonetic | |
440 | %dir %{sounds_dir}/silence | |
52d674cd | 441 | |
dc17a751 | 442 | %files en-alaw -f asterisk-core-sounds-en-alaw-%{_version}.list |
52d674cd | 443 | %defattr(644,root,root,755) |
dc17a751 | 444 | %doc asterisk-core-sounds-en-alaw-%{_version}.list |
52d674cd | 445 | |
dc17a751 | 446 | %files en-g722 -f asterisk-core-sounds-en-g722-%{_version}.list |
52d674cd | 447 | %defattr(644,root,root,755) |
dc17a751 | 448 | %doc asterisk-core-sounds-en-g722-%{_version}.list |
52d674cd | 449 | |
dc17a751 | 450 | %files en-g729 -f asterisk-core-sounds-en-g729-%{_version}.list |
52d674cd | 451 | %defattr(644,root,root,755) |
dc17a751 | 452 | %doc asterisk-core-sounds-en-g729-%{_version}.list |
52d674cd | 453 | |
dc17a751 | 454 | %files en-gsm -f asterisk-core-sounds-en-gsm-%{_version}.list |
52d674cd | 455 | %defattr(644,root,root,755) |
dc17a751 | 456 | %doc asterisk-core-sounds-en-gsm-%{_version}.list |
52d674cd | 457 | |
dc17a751 | 458 | %files en-siren7 -f asterisk-core-sounds-en-siren7-%{_version}.list |
52d674cd | 459 | %defattr(644,root,root,755) |
dc17a751 | 460 | %doc asterisk-core-sounds-en-siren7-%{_version}.list |
52d674cd | 461 | |
dc17a751 | 462 | %files en-siren14 -f asterisk-core-sounds-en-siren14-%{_version}.list |
52d674cd | 463 | %defattr(644,root,root,755) |
dc17a751 | 464 | %doc asterisk-core-sounds-en-gsm-%{_version}.list |
52d674cd | 465 | |
dc17a751 | 466 | %files en-sln16 -f asterisk-core-sounds-en-sln16-%{_version}.list |
52d674cd | 467 | %defattr(644,root,root,755) |
dc17a751 | 468 | %doc asterisk-core-sounds-en-sln16-%{_version}.list |
52d674cd | 469 | |
dc17a751 | 470 | %files en-ulaw -f asterisk-core-sounds-en-ulaw-%{_version}.list |
52d674cd | 471 | %defattr(644,root,root,755) |
dc17a751 | 472 | %doc asterisk-core-sounds-en-ulaw-%{_version}.list |
52d674cd | 473 | |
dc17a751 | 474 | %files en-wav -f asterisk-core-sounds-en-wav-%{_version}.list |
52d674cd | 475 | %defattr(644,root,root,755) |
dc17a751 | 476 | %doc asterisk-core-sounds-en-wav-%{_version}.list |
52d674cd ER |
477 | |
478 | %files es | |
479 | %defattr(644,root,root,755) | |
480 | %doc es/core-sounds-es.txt | |
dc17a751 JK |
481 | %doc es/CHANGES-asterisk-core-es-%{es_version} |
482 | %doc es/CREDITS-asterisk-core-es-%{es_version} | |
483 | %doc es/LICENSE-asterisk-core-es-%{es_version} | |
c2efa9b7 ER |
484 | %dir %{sounds_dir}/es |
485 | %dir %{sounds_dir}/es/dictate | |
486 | %dir %{sounds_dir}/es/digits | |
487 | %dir %{sounds_dir}/es/followme | |
488 | %dir %{sounds_dir}/es/letters | |
489 | %dir %{sounds_dir}/es/phonetic | |
490 | %dir %{sounds_dir}/es/silence | |
52d674cd | 491 | |
dc17a751 | 492 | %files es-alaw -f asterisk-core-sounds-es-alaw-%{es_version}.list |
52d674cd | 493 | %defattr(644,root,root,755) |
dc17a751 | 494 | %doc asterisk-core-sounds-es-alaw-%{es_version}.list |
52d674cd | 495 | |
dc17a751 | 496 | %files es-g722 -f asterisk-core-sounds-es-g722-%{es_version}.list |
52d674cd | 497 | %defattr(644,root,root,755) |
dc17a751 | 498 | %doc asterisk-core-sounds-es-g722-%{es_version}.list |
52d674cd | 499 | |
dc17a751 | 500 | %files es-g729 -f asterisk-core-sounds-es-g729-%{es_version}.list |
52d674cd | 501 | %defattr(644,root,root,755) |
dc17a751 | 502 | %doc asterisk-core-sounds-es-g729-%{es_version}.list |
52d674cd | 503 | |
dc17a751 | 504 | %files es-gsm -f asterisk-core-sounds-es-gsm-%{es_version}.list |
52d674cd | 505 | %defattr(644,root,root,755) |
dc17a751 | 506 | %doc asterisk-core-sounds-es-gsm-%{es_version}.list |
52d674cd | 507 | |
dc17a751 | 508 | %files es-siren7 -f asterisk-core-sounds-es-siren7-%{es_version}.list |
52d674cd | 509 | %defattr(644,root,root,755) |
dc17a751 | 510 | %doc asterisk-core-sounds-es-siren7-%{es_version}.list |
52d674cd | 511 | |
dc17a751 | 512 | %files es-siren14 -f asterisk-core-sounds-es-siren14-%{es_version}.list |
52d674cd | 513 | %defattr(644,root,root,755) |
dc17a751 | 514 | %doc asterisk-core-sounds-es-siren14-%{es_version}.list |
52d674cd | 515 | |
dc17a751 | 516 | %files es-sln16 -f asterisk-core-sounds-es-sln16-%{es_version}.list |
52d674cd | 517 | %defattr(644,root,root,755) |
dc17a751 | 518 | %doc asterisk-core-sounds-es-sln16-%{es_version}.list |
52d674cd | 519 | |
dc17a751 | 520 | %files es-ulaw -f asterisk-core-sounds-es-ulaw-%{es_version}.list |
52d674cd | 521 | %defattr(644,root,root,755) |
dc17a751 | 522 | %doc asterisk-core-sounds-es-ulaw-%{es_version}.list |
52d674cd | 523 | |
dc17a751 | 524 | %files es-wav -f asterisk-core-sounds-es-wav-%{es_version}.list |
52d674cd | 525 | %defattr(644,root,root,755) |
dc17a751 | 526 | %doc asterisk-core-sounds-es-wav-%{es_version}.list |
52d674cd ER |
527 | |
528 | %files fr | |
529 | %defattr(644,root,root,755) | |
530 | %doc fr/core-sounds-fr.txt | |
dc17a751 JK |
531 | %doc fr/CHANGES-asterisk-core-fr-%{_version} |
532 | %doc fr/CREDITS-asterisk-core-fr-%{_version} | |
533 | %doc fr/LICENSE-asterisk-core-fr-%{_version} | |
c2efa9b7 ER |
534 | %dir %{sounds_dir}/fr |
535 | %dir %{sounds_dir}/fr/dictate | |
536 | %dir %{sounds_dir}/fr/digits | |
537 | %dir %{sounds_dir}/fr/followme | |
538 | %dir %{sounds_dir}/fr/letters | |
539 | %dir %{sounds_dir}/fr/phonetic | |
540 | %dir %{sounds_dir}/fr/silence | |
52d674cd | 541 | |
dc17a751 | 542 | %files fr-alaw -f asterisk-core-sounds-fr-alaw-%{_version}.list |
52d674cd | 543 | %defattr(644,root,root,755) |
dc17a751 | 544 | %doc asterisk-core-sounds-fr-alaw-%{_version}.list |
52d674cd | 545 | |
dc17a751 | 546 | %files fr-g722 -f asterisk-core-sounds-fr-g722-%{_version}.list |
52d674cd | 547 | %defattr(644,root,root,755) |
dc17a751 | 548 | %doc asterisk-core-sounds-fr-g722-%{_version}.list |
52d674cd | 549 | |
dc17a751 | 550 | %files fr-g729 -f asterisk-core-sounds-fr-g729-%{_version}.list |
52d674cd | 551 | %defattr(644,root,root,755) |
dc17a751 | 552 | %doc asterisk-core-sounds-fr-g729-%{_version}.list |
52d674cd | 553 | |
dc17a751 | 554 | %files fr-gsm -f asterisk-core-sounds-fr-gsm-%{_version}.list |
52d674cd | 555 | %defattr(644,root,root,755) |
dc17a751 | 556 | %doc asterisk-core-sounds-fr-gsm-%{_version}.list |
52d674cd | 557 | |
dc17a751 | 558 | %files fr-siren7 -f asterisk-core-sounds-fr-siren7-%{_version}.list |
52d674cd | 559 | %defattr(644,root,root,755) |
dc17a751 | 560 | %doc asterisk-core-sounds-fr-siren7-%{_version}.list |
52d674cd | 561 | |
dc17a751 | 562 | %files fr-siren14 -f asterisk-core-sounds-fr-siren14-%{_version}.list |
52d674cd | 563 | %defattr(644,root,root,755) |
dc17a751 | 564 | %doc asterisk-core-sounds-fr-siren14-%{_version}.list |
52d674cd | 565 | |
dc17a751 | 566 | %files fr-sln16 -f asterisk-core-sounds-fr-sln16-%{_version}.list |
52d674cd | 567 | %defattr(644,root,root,755) |
dc17a751 | 568 | %doc asterisk-core-sounds-fr-sln16-%{_version}.list |
52d674cd | 569 | |
dc17a751 | 570 | %files fr-ulaw -f asterisk-core-sounds-fr-ulaw-%{_version}.list |
52d674cd | 571 | %defattr(644,root,root,755) |
dc17a751 | 572 | %doc asterisk-core-sounds-fr-ulaw-%{_version}.list |
52d674cd | 573 | |
dc17a751 | 574 | %files fr-wav -f asterisk-core-sounds-fr-wav-%{_version}.list |
52d674cd | 575 | %defattr(644,root,root,755) |
dc17a751 | 576 | %doc asterisk-core-sounds-fr-wav-%{_version}.list |