]> git.pld-linux.org Git - SPECS.git/blob - espeak-ng.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / espeak-ng.spec
1 Summary:        eSpeak NG - multi-lingual software speech synthesizer
2 Summary(pl.UTF-8):      eSpeak NG - wielojęzyczny programowy syntezator mowy
3 Name:           espeak-ng
4 Version:        1.50
5 Release:        1
6 License:        GPL v3+
7 Group:          Applications/Sound
8 #Source0Download: https://github.com/espeak-ng/espeak-ng/releases
9 Source0:        https://github.com/espeak-ng/espeak-ng/releases/download/%{version}/%{name}-%{version}.tgz
10 # Source0-md5:  85422fd7ccebd32ef4d92e6719efd8be
11 # so use archive
12 #Source0:       https://github.com/espeak-ng/espeak-ng/archive/%{version}/%{name}-%{version}.tar.gz
13 URL:            https://github.com/espeak-ng/espeak-ng/
14 BuildRequires:  autoconf >= 2.63
15 BuildRequires:  automake >= 1:1.11
16 BuildRequires:  gcc >= 5:3.2
17 BuildRequires:  libtool >= 2:2
18 BuildRequires:  pcaudiolib-devel
19 BuildRequires:  ronn
20 BuildRequires:  sonic-devel
21 Requires:       %{name}-libs = %{version}-%{release}
22 Obsoletes:      espeak
23 Obsoletes:      speak
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 The eSpeak NG (Next Generation) Text-to-Speech program is an open
28 source speech synthesizer that supports 95 languages and accents. It
29 is based on the eSpeak engine created by Jonathan Duddington. It uses
30 spectral formant synthesis by default which sounds robotic, but can be
31 configured to use Klatt formant synthesis or MBROLA to give it a more
32 natural sound.
33
34 %description -l pl.UTF-8
35 eSpeak NG (następnej generacji) to mający otwarte źródła program do
36 syntezy mowy, obsługujący 95 języków i akcentów. Jest oparty na
37 silniku eSpeak napisanym przez Jonathana Duddingtona. Domyślnie używa
38 spektralnej syntezy formantowej, która brzmi jak robot, ale może być
39 skonfigurowany, aby używał syntezy formantowej Klatta lub syntezy
40 MBROLA, aby brzmiał bardziej naturalnie.
41
42 %package libs
43 Summary:        eSpeak shared libraries
44 Summary(pl.UTF-8):      eSpeak - biblioteki
45 Group:          Libraries
46 Obsoletes:      speak-libs
47
48 %description libs
49 eSpeak shared libraries.
50
51 %description libs -l pl.UTF-8
52 eSpeak - biblioteki dzielone.
53
54 %package devel
55 Summary:        eSpeak NG - development files
56 Summary(pl.UTF-8):      eSpeak NG - pliki dla programistów
57 Group:          Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59
60 %description devel
61 eSpeak NG - development files.
62
63 %description devel -l pl.UTF-8
64 eSpeak NG - pliki dla programistów.
65
66 %package static
67 Summary:        eSpeak NG - static libraries
68 Summary(pl.UTF-8):      eSpeak NG - biblioteki statyczne
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 eSpeak NG - static libraries.
74
75 %description static -l pl.UTF-8
76 eSpeak NG - biblioteki statyczne.
77
78 %package -n vim-syntax-espeak
79 Summary:        Vim syntax rules for eSpeak files
80 Summary(pl.UTF-8):      Reguły składni Vima dla plików eSpeaka
81 Group:          Applications/Editors
82 Requires:       vim-rt
83
84 %description -n vim-syntax-espeak
85 Vim syntax rules for eSpeak files.
86
87 %description -n vim-syntax-espeak -l pl.UTF-8
88 Reguły składni Vima dla plików eSpeaka.
89
90 %prep
91 %setup -q -n %{name}
92
93 %build
94 %{__libtoolize}
95 %{__aclocal} -I m4
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99 %configure \
100         --disable-silent-rules \
101         --with-extdict-ru \
102         --with-extdict-zh \
103         --with-extdict-zhy
104
105 # parallel build fails on data
106 %{__make} -j1
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110
111 %{__make} install \
112         DESTDIR=$RPM_BUILD_ROOT \
113         vim_addons_ftdetectdir=%{_datadir}/vim/vimfiles/ftdetect \
114         vim_addons_syntaxdir=%{_datadir}/vim/vimfiles/syntax
115
116 # obsoleted by pkg-config
117 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libespeak-ng*.la
118 # allow coexistence with espeak
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libespeak.la
120 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/espeak
121 # no vim-addon-manager in PLD
122 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim/registry
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post   libs -p /sbin/ldconfig
128 %postun libs -p /sbin/ldconfig
129
130 %files
131 %defattr(644,root,root,755)
132 %doc CHANGELOG.md COPYING.{BSD2,IEEE,UCD} README.md docs/{*.md,images,languages,phonemes}
133 %attr(755,root,root) %{_bindir}/espeak
134 %attr(755,root,root) %{_bindir}/espeak-ng
135 %attr(755,root,root) %{_bindir}/speak
136 %attr(755,root,root) %{_bindir}/speak-ng
137 %{_datadir}/%{name}-data
138 %{_mandir}/man1/espeak-ng.1*
139 %{_mandir}/man1/speak-ng.1*
140
141 %files libs
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/libespeak-ng.so.*.*.*
144 %attr(755,root,root) %ghost %{_libdir}/libespeak-ng.so.1
145
146 %files devel
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/libespeak-ng.so
149 %{_includedir}/espeak-ng
150 %{_pkgconfigdir}/espeak-ng.pc
151
152 %files static
153 %defattr(644,root,root,755)
154 %{_libdir}/libespeak-ng.a
155
156 %files -n vim-syntax-espeak
157 %defattr(644,root,root,755)
158 %{_datadir}/vim/vimfiles/ftdetect/espeakfiletype.vim
159 %{_datadir}/vim/vimfiles/syntax/espeaklist.vim
160 %{_datadir}/vim/vimfiles/syntax/espeakrules.vim
This page took 0.22776 seconds and 3 git commands to generate.