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