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