forked from pool/asterisk-sounds-devel
Define asterisk_sounds_dir
OBS-URL: https://build.opensuse.org/package/show/network:telephony/asterisk-sounds-devel?expand=0&rev=2
This commit is contained in:
parent
8418e71a85
commit
c03294305d
@ -4,6 +4,8 @@
|
||||
# released into the Public Domain
|
||||
|
||||
|
||||
%asterisk_sounds_dir %_datadir/asterisk/sounds
|
||||
|
||||
#
|
||||
# -l code ISO 639-1/-3 language code
|
||||
# -L name Descriptive language name (no U+0020 spaces allowed)
|
||||
@ -51,16 +53,16 @@ This package contains the core part of that collection in \
|
||||
%asterisk_collect_sndfiles(Z) \
|
||||
for pkg in %*; do \
|
||||
pushd "$b"; \
|
||||
find "./%sdir/$lang" -type f -iname "*.$ext" >"$fldir/tmp.files"; \
|
||||
find "./%asterisk_sounds_dir/$lang" -type f -iname "*.$ext" >"$fldir/tmp.files"; \
|
||||
perl -pe 's{^\./+}{%%lang('$lang') /}g' \
|
||||
<"$fldir/tmp.files" >"$fldir/sounds-$pkg.files"; \
|
||||
perl -pe 's{^\./*(/.*)/.+$}{%%lang('$lang') %%dir $1}g;' \
|
||||
<"$fldir/tmp.files" | sort -u >>"$fldir/sounds-$pkg.files"; \
|
||||
echo "%%lang($lang) %%dir %_datadir/asterisk" >>"$fldir/sounds-$pkg.files"; \
|
||||
echo "%%lang($lang) %%dir %sdir" >>"$fldir/sounds-$pkg.files"; \
|
||||
echo "%%lang($lang) %%dir %sdir/$lang" >>"$fldir/sounds-$pkg.files"; \
|
||||
echo "%%lang($lang) %%dir %asterisk_sounds_dir" >>"$fldir/sounds-$pkg.files"; \
|
||||
echo "%%lang($lang) %%dir %asterisk_sounds_dir/$lang" >>"$fldir/sounds-$pkg.files"; \
|
||||
\
|
||||
find "./%sdir/$lang" -type f "(" -iname "*.txt" \
|
||||
find "./%asterisk_sounds_dir/$lang" -type f "(" -iname "*.txt" \
|
||||
-o -name "[A-Z]*" ")" >>"$fldir/rest1.files"; \
|
||||
\
|
||||
popd; \
|
||||
|
Loading…
Reference in New Issue
Block a user