]> git.pld-linux.org Git - packages/gnome-speech.git/blame - gnome-speech.spec
- up to 0.4.25
[packages/gnome-speech.git] / gnome-speech.spec
CommitLineData
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 12Summary: GNOME Speech - text-to-speech convertion
897ce7ef 13Summary(pl.UTF-8): GNOME Speech - przekształcanie tekstu na mowę
39088490 14Name: gnome-speech
6f442267
JB
15Version: 0.4.25
16Release: 1
17License: LGPL v2+
39088490 18Group: Libraries
6f442267
JB
19Source0: https://download.gnome.org/sources/gnome-speech/0.4/%{name}-%{version}.tar.bz2
20# Source0-md5: 89cbc23fc131c33396c0346085759f63
ce3ce238 21Patch0: %{name}-jar_dir.patch
6f442267
JB
22Patch1: %{name}-common.patch
23URL: https://www.gnome.org/
ef7e2865 24BuildRequires: ORBit2-devel >= 1:2.14.7
39088490 25BuildRequires: autoconf
d5e2de3f 26BuildRequires: automake
ef7e2865 27BuildRequires: espeak-devel
bc18a931
MB
28BuildRequires: gnome-common >= 2.18.0
29BuildRequires: gtk-doc >= 1.8
8bb49eaf 30%if %{with java}
ef7e2865 31BuildRequires: java-access-bridge >= 1.18.0
6f442267 32%buildrequires_jdk
8bb49eaf 33%endif
71837332 34BuildRequires: libbonobo >= 2.18.0
bc18a931 35BuildRequires: libbonobo-devel >= 2.18.0
d5e2de3f 36BuildRequires: libtool
c0362701 37BuildRequires: pkgconfig
6f442267 38BuildRequires: rpmbuild(macros) >= 2.021
d1c5b0e6 39Requires: gnome-speech-driver
39088490 40Provides: gnome_speech
6f442267 41Obsoletes: gnome_speech < 0.2.2
39088490 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45GNOME Speech purpose is to provide a simple general API for producing
46text-to-speech output.
47
af0a6e92
JR
48%description -l pl.UTF-8
49Celem GNOME Speech jest udostępnienie prostego, ogólnego API do
50przekształcania tekstu na mowę.
39088490 51
d1c5b0e6
MB
52%package driver-espeak
53Summary: Espeak TTS Speech Driver
0df51e45 54Summary(pl.UTF-8): Sterownik mowy ESpeak TTS
d1c5b0e6
MB
55Group: Libraries
56Requires: espeak
57Provides: gnome-speech-driver
58
59%description driver-espeak
60Provides text to speech services using the Espeak Speech Synthesis
61System.
62
0df51e45
JB
63%description driver-espeak -l pl.UTF-8
64Ten pakiet udostępnia usługę przekształcania tekstu na mowę przy
65użyciu systemu syntezy mowy Espeak.
66
d1c5b0e6
MB
67%package driver-festival
68Summary: Festival TTS Speech Driver
0df51e45 69Summary(pl.UTF-8): Sterownik mowy Festival TTS
d1c5b0e6
MB
70Group: Libraries
71Requires: festival
72Provides: gnome-speech-driver
73
74%description driver-festival
75Provides the text to speech services using the Festival Speech
76Synthesis System.
77
0df51e45
JB
78%description driver-festival -l pl.UTF-8
79Ten pakiet udostępnia usługę przekształcania tekstu na mowę przy
80użyciu systemu syntezy mowy Festival.
81
d1c5b0e6
MB
82%package driver-speech-dispatcher
83Summary: Speech Dispatcher driver
0df51e45 84Summary(pl.UTF-8): Sterownik mowy Speech Dispatcher
d1c5b0e6
MB
85Group: Libraries
86Provides: gnome-speech-driver
87
88%description driver-speech-dispatcher
89Provides the text to speech services using Speech Dispatcher.
90
0df51e45
JB
91%description driver-speech-dispatcher -l pl.UTF-8
92Ten pakiet udostępnia usługę przekształcania tekstu na mowę przy
93użyciu systemu Speech Dispatcher.
94
39088490 95%package devel
96Summary: Development files for gnome_speech
897ce7ef 97Summary(pl.UTF-8): Pliki programistyczne dla gnome_speech
39088490 98Group: Development/Libraries
5eb1ec29 99Requires: %{name} = %{version}-%{release}
bc18a931 100Requires: libbonobo-devel >= 2.18.0
6ad58c93 101Provides: gnome_speech-devel
6f442267 102Obsoletes: gnome_speech-devel < 0.2.2
6ad58c93 103
39088490 104%description devel
3facb58c 105GNOME Speech files needed for development.
39088490 106
af0a6e92 107%description devel -l pl.UTF-8
3facb58c 108Pliki GNOME Speech potrzebne do programowania.
39088490 109
5eb1ec29 110%package static
111Summary: Static gnome-speech library
897ce7ef 112Summary(pl.UTF-8): Statyczna biblioteka gnome-speech
5eb1ec29 113Group: Development/Libraries
114Requires: %{name}-devel = %{version}-%{release}
115
116%description static
117Static gnome-speech library.
118
af0a6e92 119%description static -l pl.UTF-8
5eb1ec29 120Statyczna biblioteka gnome-speech.
121
8bb49eaf 122%package java
123Summary: Java classes for gnome-speech
897ce7ef 124Summary(pl.UTF-8): Klasy Java dla gnome-speech
7ae77116
ER
125Group: Development/Languages/Java
126Requires: jpackage-utils
8bb49eaf 127
128%description java
129Java classes for gnome-speech.
130
af0a6e92 131%description java -l pl.UTF-8
8bb49eaf 132Klasy 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
157rm -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
172rm -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
This page took 0.066778 seconds and 4 git commands to generate.