Группа :: Звук
Пакет: festlex_CMU
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# with custom words added to this lex
%def_with custom
Name: festlex_CMU
Version: 1.96
Release: alt1
Group: Sound
Copyright: X11-style
URL: http://www.cstr.ed.ac.uk/projects/festival.html
Packager: Igor Vlasenko <viy at altlinux.org>
Summary: CMU Americal English Lexicon for Festival
Requires: festival
BuildArch: noarch
#Source0: http://www.cstr.ed.ac.uk/downloads/festival/1.95/festlex_CMU.tar.gz
Source0: http://www.speech.cs.cmu.edu/awb/fftest/festlex_CMU.tar.gz
# CMU-redhat.patch contains illegal sound ii1 :(
# %name-0.4-redhat-alt-fixed.patch is properly fixed CMU-redhat.
Patch0: %name-0.4-redhat-alt-fixed.patch
%{?_with_custom:BuildRequires: festival}
%description
American English Lexicon based on CMUDICT 0.4 and surround rules.
%prep
%setup -q -c
%if_with custom
%patch -p1
%endif
%build
%if_with custom
pushd festival/lib/dicts/cmu
make
%endif
%install
DICT_DIR=$RPM_BUILD_ROOT/usr/share/festival/dicts
cd festival
install -d $DICT_DIR/cmu
install -m 644 lib/dicts/cmu/cmulex.scm $DICT_DIR/cmu
install -m 644 lib/dicts/cmu/cmu_lts_rules.scm $DICT_DIR/cmu
install -m 644 lib/dicts/cmu/cmudict-0.4.out $DICT_DIR/cmu
%clean
%files
%defattr(-,root,root)
/usr/share/festival/*
%changelog
…
Полный changelog можно просмотреть здесь
%def_with custom
Name: festlex_CMU
Version: 1.96
Release: alt1
Group: Sound
Copyright: X11-style
URL: http://www.cstr.ed.ac.uk/projects/festival.html
Packager: Igor Vlasenko <viy at altlinux.org>
Summary: CMU Americal English Lexicon for Festival
Requires: festival
BuildArch: noarch
#Source0: http://www.cstr.ed.ac.uk/downloads/festival/1.95/festlex_CMU.tar.gz
Source0: http://www.speech.cs.cmu.edu/awb/fftest/festlex_CMU.tar.gz
# CMU-redhat.patch contains illegal sound ii1 :(
# %name-0.4-redhat-alt-fixed.patch is properly fixed CMU-redhat.
Patch0: %name-0.4-redhat-alt-fixed.patch
%{?_with_custom:BuildRequires: festival}
%description
American English Lexicon based on CMUDICT 0.4 and surround rules.
%prep
%setup -q -c
%if_with custom
%patch -p1
%endif
%build
%if_with custom
pushd festival/lib/dicts/cmu
make
%endif
%install
DICT_DIR=$RPM_BUILD_ROOT/usr/share/festival/dicts
cd festival
install -d $DICT_DIR/cmu
install -m 644 lib/dicts/cmu/cmulex.scm $DICT_DIR/cmu
install -m 644 lib/dicts/cmu/cmu_lts_rules.scm $DICT_DIR/cmu
install -m 644 lib/dicts/cmu/cmudict-0.4.out $DICT_DIR/cmu
%clean
%files
%defattr(-,root,root)
/usr/share/festival/*
%changelog
…
Полный changelog можно просмотреть здесь