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