1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
%define sound_dir %_datadir/asterisk/sounds/ %define sound_lang en Name: asterisk-extra-sounds-en-g722 Summary: sounds for Asterisk Version: 1.4.13 Release: alt1 License: GPL Group: System/Servers BuildArch: noarch Requires(pre): asterisk-sounds-en-base Url: http://downloads.asterisk.org/pub/telephony/sounds/releases/%name-%version.tar.gz Source: %name-%version.tar %description %summary %prep %setup %install mkdir -p %buildroot%sound_dir/%sound_lang cp -a ./ %buildroot%sound_dir/%sound_lang/ find -type f \ | grep -v sounds.list \ | grep -vP '^.\/(CREDITS|LICENSE|CHANGES)' \ | grep -vP '\.txt$' \ | sed 's!\.\/\(.*\)!%sound_dir%sound_lang/\1!' \ > sounds.list find -mindepth 1 -type d \ | sed 's!\.\/\(.*\)!%%dir %sound_dir%sound_lang/\1!' \ >> sounds.list find -type f \ | grep -P '^.\/(CREDITS|LICENSE|CHANGES)' \ | sed 's!\.\/\(.*\)!%%doc \1\n%%exclude %sound_dir%sound_lang/\1!' \ >> sounds.list find -type f \ | grep -P '\.txt$' \ | sed 's!\.\/\(.*\)!%%doc \1\n%%exclude %sound_dir%sound_lang/\1!' \ >> sounds.list %files -f sounds.list %changelog * Wed Jan 09 2013 Cronbuild Service <cronbuild@altlinux.org> 1.4.13-alt1 - new version 1.4.13 * Sat Dec 29 2012 Cronbuild Service <cronbuild@altlinux.org> 1.4.12-alt1 - new version 1.4.12 * Fri Dec 28 2012 Denis Smirnov <mithraen@altlinux.ru> 1.4.11-alt3 - add watch-file and cronbuild support * Sun Jul 24 2011 Denis Smirnov <mithraen@altlinux.ru> 1.4.11-alt2 - add requires to asterisk-sounds-en-base * Tue Jul 19 2011 Denis Smirnov <mithraen@altlinux.ru> 1.4.11-alt1 - first build