Пакет asterisk-extra-sounds-en-g722: Specfile

%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