]>
Commit | Line | Data |
---|---|---|
39088490 | 1 | # TODO: |
6f442267 | 2 | # - build other speech plugins? (freetts, proprietary: viavoice, loquendo, dectalk, swift, theta, eloquence) |
8bb49eaf | 3 | # |
94eb16c5 | 4 | # Conditional build: |
6f442267 JB |
5 | %bcond_without festival # Festival plugin |
6 | %bcond_without java # java subpackage | |
7 | %bcond_without static_libs # static library | |
8 | ||
9 | # requires Java >= 1.4 < 10 (idlj removed in Java 11, javah in Java 10) | |
10 | %define use_jdk openjdk8 | |
11 | ||
39088490 | 12 | Summary: GNOME Speech - text-to-speech convertion |
897ce7ef | 13 | Summary(pl.UTF-8): GNOME Speech - przekształcanie tekstu na mowę |
39088490 | 14 | Name: gnome-speech |
6f442267 JB |
15 | Version: 0.4.25 |
16 | Release: 1 | |
17 | License: LGPL v2+ | |
39088490 | 18 | Group: Libraries |
6f442267 JB |
19 | Source0: https://download.gnome.org/sources/gnome-speech/0.4/%{name}-%{version}.tar.bz2 |
20 | # Source0-md5: 89cbc23fc131c33396c0346085759f63 | |
ce3ce238 | 21 | Patch0: %{name}-jar_dir.patch |
6f442267 JB |
22 | Patch1: %{name}-common.patch |
23 | URL: https://www.gnome.org/ | |
ef7e2865 | 24 | BuildRequires: ORBit2-devel >= 1:2.14.7 |
39088490 | 25 | BuildRequires: autoconf |
d5e2de3f | 26 | BuildRequires: automake |
ef7e2865 | 27 | BuildRequires: espeak-devel |
bc18a931 MB |
28 | BuildRequires: gnome-common >= 2.18.0 |
29 | BuildRequires: gtk-doc >= 1.8 | |
8bb49eaf | 30 | %if %{with java} |
ef7e2865 | 31 | BuildRequires: java-access-bridge >= 1.18.0 |
6f442267 | 32 | %buildrequires_jdk |
8bb49eaf | 33 | %endif |
71837332 | 34 | BuildRequires: libbonobo >= 2.18.0 |
bc18a931 | 35 | BuildRequires: libbonobo-devel >= 2.18.0 |
d5e2de3f | 36 | BuildRequires: libtool |
c0362701 | 37 | BuildRequires: pkgconfig |
6f442267 | 38 | BuildRequires: rpmbuild(macros) >= 2.021 |
d1c5b0e6 | 39 | Requires: gnome-speech-driver |
39088490 | 40 | Provides: gnome_speech |
6f442267 | 41 | Obsoletes: gnome_speech < 0.2.2 |
39088490 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | GNOME Speech purpose is to provide a simple general API for producing | |
46 | text-to-speech output. | |
47 | ||
af0a6e92 JR |
48 | %description -l pl.UTF-8 |
49 | Celem GNOME Speech jest udostępnienie prostego, ogólnego API do | |
50 | przekształcania tekstu na mowę. | |
39088490 | 51 | |
d1c5b0e6 MB |
52 | %package driver-espeak |
53 | Summary: Espeak TTS Speech Driver | |
0df51e45 | 54 | Summary(pl.UTF-8): Sterownik mowy ESpeak TTS |
d1c5b0e6 MB |
55 | Group: Libraries |
56 | Requires: espeak | |
57 | Provides: gnome-speech-driver | |
58 | ||
59 | %description driver-espeak | |
60 | Provides text to speech services using the Espeak Speech Synthesis | |
61 | System. | |
62 | ||
0df51e45 JB |
63 | %description driver-espeak -l pl.UTF-8 |
64 | Ten pakiet udostępnia usługę przekształcania tekstu na mowę przy | |
65 | użyciu systemu syntezy mowy Espeak. | |
66 | ||
d1c5b0e6 MB |
67 | %package driver-festival |
68 | Summary: Festival TTS Speech Driver | |
0df51e45 | 69 | Summary(pl.UTF-8): Sterownik mowy Festival TTS |
d1c5b0e6 MB |
70 | Group: Libraries |
71 | Requires: festival | |
72 | Provides: gnome-speech-driver | |
73 | ||
74 | %description driver-festival | |
75 | Provides the text to speech services using the Festival Speech | |
76 | Synthesis System. | |
77 | ||
0df51e45 JB |
78 | %description driver-festival -l pl.UTF-8 |
79 | Ten pakiet udostępnia usługę przekształcania tekstu na mowę przy | |
80 | użyciu systemu syntezy mowy Festival. | |
81 | ||
d1c5b0e6 MB |
82 | %package driver-speech-dispatcher |
83 | Summary: Speech Dispatcher driver | |
0df51e45 | 84 | Summary(pl.UTF-8): Sterownik mowy Speech Dispatcher |
d1c5b0e6 MB |
85 | Group: Libraries |
86 | Provides: gnome-speech-driver | |
87 | ||
88 | %description driver-speech-dispatcher | |
89 | Provides the text to speech services using Speech Dispatcher. | |
90 | ||
0df51e45 JB |
91 | %description driver-speech-dispatcher -l pl.UTF-8 |
92 | Ten pakiet udostępnia usługę przekształcania tekstu na mowę przy | |
93 | użyciu systemu Speech Dispatcher. | |
94 | ||
39088490 | 95 | %package devel |
96 | Summary: Development files for gnome_speech | |
897ce7ef | 97 | Summary(pl.UTF-8): Pliki programistyczne dla gnome_speech |
39088490 | 98 | Group: Development/Libraries |
5eb1ec29 | 99 | Requires: %{name} = %{version}-%{release} |
bc18a931 | 100 | Requires: libbonobo-devel >= 2.18.0 |
6ad58c93 | 101 | Provides: gnome_speech-devel |
6f442267 | 102 | Obsoletes: gnome_speech-devel < 0.2.2 |
6ad58c93 | 103 | |
39088490 | 104 | %description devel |
3facb58c | 105 | GNOME Speech files needed for development. |
39088490 | 106 | |
af0a6e92 | 107 | %description devel -l pl.UTF-8 |
3facb58c | 108 | Pliki GNOME Speech potrzebne do programowania. |
39088490 | 109 | |
5eb1ec29 | 110 | %package static |
111 | Summary: Static gnome-speech library | |
897ce7ef | 112 | Summary(pl.UTF-8): Statyczna biblioteka gnome-speech |
5eb1ec29 | 113 | Group: Development/Libraries |
114 | Requires: %{name}-devel = %{version}-%{release} | |
115 | ||
116 | %description static | |
117 | Static gnome-speech library. | |
118 | ||
af0a6e92 | 119 | %description static -l pl.UTF-8 |
5eb1ec29 | 120 | Statyczna biblioteka gnome-speech. |
121 | ||
8bb49eaf | 122 | %package java |
123 | Summary: Java classes for gnome-speech | |
897ce7ef | 124 | Summary(pl.UTF-8): Klasy Java dla gnome-speech |
7ae77116 ER |
125 | Group: Development/Languages/Java |
126 | Requires: jpackage-utils | |
8bb49eaf | 127 | |
128 | %description java | |
129 | Java classes for gnome-speech. | |
130 | ||
af0a6e92 | 131 | %description java -l pl.UTF-8 |
8bb49eaf | 132 | Klasy Java dla gnome-speech. |
133 | ||
39088490 | 134 | %prep |
135 | %setup -q | |
2e601b01 | 136 | %patch0 -p1 |
6f442267 | 137 | %patch1 -p1 |
39088490 | 138 | |
139 | %build | |
140 | %{__libtoolize} | |
53355092 | 141 | %{__aclocal} |
ff83b710 | 142 | %{__autoheader} |
39088490 | 143 | %{__automake} |
144 | %{__autoconf} | |
5eb1ec29 | 145 | %configure \ |
5eb1ec29 | 146 | --enable-gtk-doc \ |
6f442267 JB |
147 | %{?with_static_libs:--enable-static} \ |
148 | --with-festival%{!?with_festival:=no} \ | |
149 | %{?with_java:--with-jab-dir=%{_javadir}} \ | |
150 | --with-java-home=%{java_home} \ | |
151 | --with-speech-dispatcher | |
152 | ||
30d5f931 MB |
153 | %{__make} \ |
154 | espeak_LIBDIR=%{_libdir} | |
39088490 | 155 | |
156 | %install | |
157 | rm -rf $RPM_BUILD_ROOT | |
97567c18 | 158 | |
39088490 | 159 | %{__make} install \ |
160 | orbittypelibdir=%{_libdir}/orbit-2.0 \ | |
161 | DESTDIR=$RPM_BUILD_ROOT | |
162 | ||
163 | # no *.la for orbit modules | |
6f442267 JB |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/*.la |
165 | %if %{with static_libs} | |
166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/*.a | |
167 | %endif | |
168 | # obsoleted by pkg-config | |
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgnomespeech.la | |
39088490 | 170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post -p /sbin/ldconfig | |
175 | %postun -p /sbin/ldconfig | |
176 | ||
177 | %files | |
178 | %defattr(644,root,root,755) | |
39088490 | 179 | %attr(755,root,root) %{_bindir}/test-speech |
180 | %attr(755,root,root) %{_libdir}/libgnomespeech.so.*.*.* | |
6f442267 JB |
181 | %attr(755,root,root) %ghost %{_libdir}/libgnomespeech.so.7 |
182 | %attr(755,root,root) %{_libdir}/orbit-2.0/GNOME_Speech_module.so | |
d1c5b0e6 MB |
183 | |
184 | %files driver-espeak | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_bindir}/espeak-synthesis-driver | |
ef7e2865 | 187 | %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Espeak.server |
d1c5b0e6 MB |
188 | |
189 | %if %{with festival} | |
190 | %files driver-festival | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_bindir}/festival-synthesis-driver | |
193 | %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server | |
194 | %endif | |
195 | ||
196 | %files driver-speech-dispatcher | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_bindir}/speechd-synthesis-driver | |
ef7e2865 | 199 | %{_libdir}/bonobo/servers/GNOME_Speech_SynthDriver_Speech_Dispatcher.server |
39088490 | 200 | |
201 | %files devel | |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_libdir}/libgnomespeech.so | |
39088490 | 204 | %{_includedir}/gnome-speech-1.0 |
205 | %{_datadir}/idl/gnome-speech-1.0 | |
6f442267 | 206 | %{_pkgconfigdir}/gnome-speech-1.0.pc |
5eb1ec29 | 207 | |
208 | %files static | |
209 | %defattr(644,root,root,755) | |
07ea91d2 | 210 | %{_libdir}/libgnomespeech.a |
8bb49eaf | 211 | |
212 | %if %{with java} | |
213 | %files java | |
214 | %defattr(644,root,root,755) | |
2346c615 | 215 | %{_javadir}/*.jar |
8bb49eaf | 216 | %endif |