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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
%define sound_dir %_datadir/asterisk/sounds/ %define sound_lang ru Name: asterisk-core-sounds-ru-g722 Summary: sounds for Asterisk Version: 1.5 Release: alt1 License: GPL Group: System/Servers BuildArch: noarch Obsoletes: asterisk-sounds-ru-g722 < %version-%release Conflicts: asterisk-sounds-ru-g722 Requires(pre): asterisk-sounds-ru-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 * Sun Jan 24 2016 Cronbuild Service <cronbuild@altlinux.org> 1.5-alt1 - new version 1.5 * Sun May 10 2015 Cronbuild Service <cronbuild@altlinux.org> 1.4.27-alt1 - new version 1.4.27 * Thu Sep 11 2014 Cronbuild Service <cronbuild@altlinux.org> 1.4.26-alt1 - new version 1.4.26 * Fri Nov 01 2013 Cronbuild Service <cronbuild@altlinux.org> 1.4.25-alt1 - new version 1.4.25 * Sat Aug 17 2013 Cronbuild Service <cronbuild@altlinux.org> 1.4.24-alt1 - new version 1.4.24 * Fri Jan 11 2013 Cronbuild Service <cronbuild@altlinux.org> 1.4.23-alt1 - new version 1.4.23 * Wed Jan 02 2013 Cronbuild Service <cronbuild@altlinux.org> 1.4.22-alt1 - new version 1.4.22 * Tue Jan 01 2013 Denis Smirnov <mithraen@altlinux.ru> 1.4.21-alt5 - fix cronbuild support * Fri Dec 28 2012 Denis Smirnov <mithraen@altlinux.ru> 1.4.21-alt4 - add watch-file and cronbuild support * Sat Sep 24 2011 Denis Smirnov <mithraen@altlinux.ru> 1.4.21-alt3 - add Obsoletes to old sounds packages * Sun Jul 24 2011 Denis Smirnov <mithraen@altlinux.ru> 1.4.21-alt2 - add requires to asterisk-sounds-ru-base * Tue Jul 19 2011 Denis Smirnov <mithraen@altlinux.ru> 1.4.21-alt1 - first build