General spec file cleanup and modernization

- Weaken sox dependency and add a weak dependency on iconv
- Drop unnecessary BR on festival
- Add a -doc package with info, PDF, and HTML documentation
epel9
Benjamin A. Beasley 3 years ago
parent ab75466937
commit 15b0a9130e

@ -0,0 +1,24 @@
From 4bd40a905585764696cafff8d246bb0fb0eafcc5 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Fri, 8 Oct 2021 10:42:10 -0400
Subject: [PATCH] Fix a section level error in fdl.texi
Fixes errors like:
./fdl.texi:404: raising the section level of @appendixsubsec which is too low
---
doc/fdl.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/fdl.texi b/doc/fdl.texi
index 2cd5840..0e22414 100644
--- a/doc/fdl.texi
+++ b/doc/fdl.texi
@@ -401,7 +401,7 @@ as a draft) by the Free Software Foundation.
@end enumerate
@page
-@appendixsubsec ADDENDUM: How to use this License for your documents
+@appendixsec ADDENDUM: How to use this License for your documents
To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and

@ -1,55 +1,106 @@
Name: festival-freebsoft-utils Name: festival-freebsoft-utils
Version: 0.10 Version: 0.10
Release: 20%{?dist} Release: 21%{?dist}
Summary: A collection of utilities that enhance Festival with some useful features Summary: Utilities that enhance Festival with some useful features
BuildArch: noarch BuildArch: noarch
License: GPLv2+
URL: http://www.freebsoft.org/festival-freebsoft-utils License: GPLv2+
Source0: http://devel.freebsoft.org/pub/projects/%{name}/%{name}-%{version}.tar.gz URL: https://www.freebsoft.org/festival-freebsoft-utils
Source0: https://freebsoft.org/pub/projects/%{name}/%{name}-%{version}.tar.gz
BuildRequires: festival
# Fix a section level error in fdl.texi
Requires: festival # https://github.com/brailcom/festival-freebsoft-utils/pull/1
Requires: sox Patch0: https://github.com/brailcom/festival-freebsoft-utils/pull/1.patch
Requires: festival
# From docs/festival-freebsoft-utils.texi:
# Having SoX (@url{http://sox.sourceforge.net}) installed is strongly
# recommended, many festival-freebsoft-utils functions don't work without it.
Recommends: sox
# From docs/festival-freebsoft-utils.texi:
# As Festival does not support UTF-8 encoding, festival-freebsoft-utils uses
# the iconv utility for character coding conversions.
# Note that this is currently provided by glibc-common, so it should be
# available even without the explicit dependency.
Recommends: /usr/bin/iconv
%description %description
A collection of utilities that enhance Festival with some useful features. They A collection of utilities that enhance Festival with some useful features. They
provide all that is needed for interaction with Speech Dispatcher. provide all that is needed for interaction with Speech Dispatcher.
Key festival-freebsoft-utils features are: Key festival-freebsoft-utils features are:
- Generalized concept of input events. festival-freebsoft-utils allows not only
plain text synthesis, but also combining it with sounds. Additionally, • Generalized concept of input events. festival-freebsoft-utils allows not only
mechanism of logical events mapped to other events is provided. plain text synthesis, but also combining it with sounds. Additionally,
- Substitution of events for given words. mechanism of logical events mapped to other events is provided.
- High-level voice selection mechanism and setting of basic prosodic parameters. • Substitution of events for given words.
- Spelling mode. • High-level voice selection mechanism and setting of basic prosodic parameters.
- Capital letter signalization. • Spelling mode.
- Punctuation modes, for explicit reading or not reading punctuation characters. • Capital letter signalization.
- Incremental synthesis of texts and events. • Punctuation modes, for explicit reading or not reading punctuation characters.
- Speech Dispatcher support. • Incremental synthesis of texts and events.
- Rudimentary SSML support. • Speech Dispatcher support.
- Enhance the Festival extension language with functions commonly used in Lisp. • Rudimentary SSML support.
- Support for wrapping already defined Festival functions by your own code. • Enhance the Festival extension language with functions commonly used in Lisp.
- Everything is written in the extension language, no patching of the Festival • Support for wrapping already defined Festival functions by your own code.
• Everything is written in the extension language, no patching of the Festival
C++ sources is needed. C++ sources is needed.
%package doc
Summary: Documentation for festival-freebsoft-utils
BuildRequires: make
BuildRequires: texinfo-tex
BuildRequires: tex(latex)
%description doc
Documentation for festival-freebsoft-utils in info, PDF, and HTML formats.
%prep %prep
%setup -q %autosetup -p1
%build %build
# Remove pre-built info page
%make_build clean
# Build info, PDF, and HTML docs from the texinfo sources.
%make_build info pdf html
%install %install
mkdir -p %{buildroot}/%{_datadir}/festival/lib/ install -t '%{buildroot}/%{_datadir}/festival/lib' -D -p -m 0644 *.scm
cp -p *.scm %{buildroot}/%{_datadir}/festival/lib/ install -t '%{buildroot}/%{_infodir}' -D -p -m 0644 doc/*.info
install -t '%{buildroot}/%{_pkgdocdir}' -D -p -m 0644 \
doc/*.pdf doc/*.html ANNOUNCE NEWS README
%ldconfig_scriptlets
%files %files
%doc COPYING NEWS README %license COPYING
%{_datadir}/festival/lib/*.scm %{_datadir}/festival/lib/*.scm
%files doc
%license COPYING
%doc %{_pkgdocdir}/ANNOUNCE
%doc %{_pkgdocdir}/NEWS
%doc %{_pkgdocdir}/README
%doc %{_pkgdocdir}/festival-freebsoft-utils.pdf
%doc %{_pkgdocdir}/festival-freebsoft-utils.html
%doc %{_infodir}/festival-freebsoft-utils.info*
%changelog %changelog
* Fri Oct 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.10-21
- General spec file cleanup and modernization
- Weaken sox dependency and add a weak dependency on iconv
- Drop unnecessary BR on festival
- Add a -doc package with info, PDF, and HTML documentation
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-20 * Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

@ -1 +1 @@
8afc4ef740ce6eb324870102185aa287 festival-freebsoft-utils-0.10.tar.gz SHA512 (festival-freebsoft-utils-0.10.tar.gz) = 26305b9d0fc7f1333786d38cc0efbbe2cb2734e9f981e846ce7b9369cf012adf04e357af9c39fea650620cf7ff619ad15c48dbbd5d6a2781907301817718136c

Loading…
Cancel
Save