0f5b9ff
Name:           festival-freebsoft-utils
0f5b9ff
Version:        0.10
0f5b9ff
Release:        %autorelease
0f5b9ff
Summary:        Utilities that enhance Festival with some useful features
6abb1c4
0f5b9ff
BuildArch:      noarch
6abb1c4
7fba0ba
# Note that the documentation is dual-licensed; see the License field for the
7fba0ba
# -doc subpackage.
7fba0ba
License:        GPL-2.0-or-later
0f5b9ff
URL:            https://www.freebsoft.org/festival-freebsoft-utils
0f5b9ff
Source0:        https://freebsoft.org/pub/projects/%{name}/%{name}-%{version}.tar.gz
6abb1c4
0f5b9ff
# Fix a section level error in fdl.texi
0f5b9ff
# https://github.com/brailcom/festival-freebsoft-utils/pull/1
6a3fc41
Patch:          https://github.com/brailcom/festival-freebsoft-utils/pull/1.patch
0f5b9ff
0f5b9ff
Requires:       festival
0f5b9ff
# From docs/festival-freebsoft-utils.texi:
0f5b9ff
#   Having SoX (@url{http://sox.sourceforge.net}) installed is strongly
0f5b9ff
#   recommended, many festival-freebsoft-utils functions don't work without it.
0f5b9ff
Recommends:     sox
0f5b9ff
# From docs/festival-freebsoft-utils.texi:
0f5b9ff
#   As Festival does not support UTF-8 encoding, festival-freebsoft-utils uses
0f5b9ff
#   the iconv utility for character coding conversions.
0f5b9ff
# Note that this is currently provided by glibc-common, so it should be
0f5b9ff
# available even without the explicit dependency.
0f5b9ff
Recommends:     /usr/bin/iconv
6abb1c4
6abb1c4
%description
0f5b9ff
A collection of utilities that enhance Festival with some useful features. They
6abb1c4
provide all that is needed for interaction with Speech Dispatcher.
6abb1c4
6abb1c4
Key festival-freebsoft-utils features are:
0f5b9ff
0f5b9ff
• Generalized concept of input events. festival-freebsoft-utils allows not only
0f5b9ff
  plain text synthesis, but also combining it with sounds. Additionally,
0f5b9ff
  mechanism of logical events mapped to other events is provided.
0f5b9ff
• Substitution of events for given words.
0f5b9ff
• High-level voice selection mechanism and setting of basic prosodic parameters.
0f5b9ff
• Spelling mode.
0f5b9ff
• Capital letter signalization.
0f5b9ff
• Punctuation modes, for explicit reading or not reading punctuation characters.
0f5b9ff
• Incremental synthesis of texts and events.
0f5b9ff
• Speech Dispatcher support.
0f5b9ff
• Rudimentary SSML support.
0f5b9ff
• Enhance the Festival extension language with functions commonly used in Lisp.
0f5b9ff
• Support for wrapping already defined Festival functions by your own code.
0f5b9ff
• Everything is written in the extension language, no patching of the Festival
6abb1c4
  C++ sources is needed.
6abb1c4
0f5b9ff
0f5b9ff
%package doc
0f5b9ff
Summary:        Documentation for festival-freebsoft-utils
0f5b9ff
7fba0ba
License:        GPL-2.0-or-later OR GFDL-1.2-no-invariants-or-later
7fba0ba
0f5b9ff
BuildRequires:  make
0f5b9ff
BuildRequires:  texinfo-tex
0f5b9ff
BuildRequires:  tex(latex)
0f5b9ff
0f5b9ff
%description doc
0f5b9ff
Documentation for festival-freebsoft-utils in info, PDF, and HTML formats.
0f5b9ff
0f5b9ff
6abb1c4
%prep
0f5b9ff
%autosetup -p1
0f5b9ff
6abb1c4
6abb1c4
%build
0f5b9ff
# Remove pre-built info page
0f5b9ff
%make_build clean
0f5b9ff
# Build info, PDF, and HTML docs from the texinfo sources.
0f5b9ff
%make_build info pdf html
0f5b9ff
6abb1c4
6abb1c4
%install
407c51e
install -t '%{buildroot}/%{_datadir}/festival' -D -p -m 0644 *.scm
0f5b9ff
install -t '%{buildroot}/%{_infodir}' -D -p -m 0644 doc/*.info
0f5b9ff
install -t '%{buildroot}/%{_pkgdocdir}' -D -p -m 0644 \
0f5b9ff
    doc/*.pdf doc/*.html ANNOUNCE NEWS README
6abb1c4
6abb1c4
0f5b9ff
%files
0f5b9ff
%license COPYING
407c51e
%{_datadir}/festival/*.scm
6abb1c4
6abb1c4
0f5b9ff
%files doc
0f5b9ff
%license COPYING
0f5b9ff
%doc %{_pkgdocdir}/ANNOUNCE
0f5b9ff
%doc %{_pkgdocdir}/NEWS
0f5b9ff
%doc %{_pkgdocdir}/README
0f5b9ff
0f5b9ff
%doc %{_pkgdocdir}/festival-freebsoft-utils.pdf
0f5b9ff
%doc %{_pkgdocdir}/festival-freebsoft-utils.html
0f5b9ff
0f5b9ff
%doc %{_infodir}/festival-freebsoft-utils.info*
6abb1c4
6abb1c4
6abb1c4
%changelog
0f5b9ff
%autochangelog