]>
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 |
0868170d | 14 | Version: 0.4.14 |
d9fba16c | 15 | Release: 1 |
dddded48 | 16 | License: LGPL |
39088490 | 17 | Group: Libraries |
02da6cd6 | 18 | Source0: http://ftp.gnome.org/pub/gnome/sources/gnome-speech/0.4/%{name}-%{version}.tar.bz2 |
0868170d | 19 | # Source0-md5: eb46287845488333ccae63ff0dc0b684 |
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 |
bc18a931 | 32 | BuildRequires: libbonobo-devel >= 2.18.0 |
d5e2de3f | 33 | BuildRequires: libtool |
c0362701 | 34 | BuildRequires: pkgconfig |
21019ca2 | 35 | %{?with_festival:Requires: festival >= 1.4.2} |
39088490 | 36 | Provides: gnome_speech |
ff83b710 | 37 | Obsoletes: gnome_speech |
39088490 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | GNOME Speech purpose is to provide a simple general API for producing | |
42 | text-to-speech output. | |
43 | ||
af0a6e92 JR |
44 | %description -l pl.UTF-8 |
45 | Celem GNOME Speech jest udostępnienie prostego, ogólnego API do | |
46 | przekształcania tekstu na mowę. | |
39088490 | 47 | |
48 | %package devel | |
49 | Summary: Development files for gnome_speech | |
897ce7ef | 50 | Summary(pl.UTF-8): Pliki programistyczne dla gnome_speech |
39088490 | 51 | Group: Development/Libraries |
5eb1ec29 | 52 | Requires: %{name} = %{version}-%{release} |
bc18a931 | 53 | Requires: libbonobo-devel >= 2.18.0 |
6ad58c93 | 54 | Provides: gnome_speech-devel |
ff83b710 | 55 | Obsoletes: gnome_speech-devel |
6ad58c93 | 56 | |
39088490 | 57 | %description devel |
3facb58c | 58 | GNOME Speech files needed for development. |
39088490 | 59 | |
af0a6e92 | 60 | %description devel -l pl.UTF-8 |
3facb58c | 61 | Pliki GNOME Speech potrzebne do programowania. |
39088490 | 62 | |
5eb1ec29 | 63 | %package static |
64 | Summary: Static gnome-speech library | |
897ce7ef | 65 | Summary(pl.UTF-8): Statyczna biblioteka gnome-speech |
5eb1ec29 | 66 | Group: Development/Libraries |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static gnome-speech library. | |
71 | ||
af0a6e92 | 72 | %description static -l pl.UTF-8 |
5eb1ec29 | 73 | Statyczna biblioteka gnome-speech. |
74 | ||
8bb49eaf | 75 | %package java |
76 | Summary: Java classes for gnome-speech | |
897ce7ef | 77 | Summary(pl.UTF-8): Klasy Java dla gnome-speech |
8bb49eaf | 78 | Group: Development/Libraries |
79 | ||
80 | %description java | |
81 | Java classes for gnome-speech. | |
82 | ||
af0a6e92 | 83 | %description java -l pl.UTF-8 |
8bb49eaf | 84 | Klasy Java dla gnome-speech. |
85 | ||
39088490 | 86 | %prep |
87 | %setup -q | |
2e601b01 | 88 | %patch0 -p1 |
39088490 | 89 | |
90 | %build | |
91 | %{__libtoolize} | |
53355092 | 92 | %{__aclocal} |
ff83b710 | 93 | %{__autoheader} |
39088490 | 94 | %{__automake} |
95 | %{__autoconf} | |
5eb1ec29 | 96 | %configure \ |
97 | --enable-static \ | |
98 | --enable-gtk-doc \ | |
21019ca2 | 99 | --with%{!?with_festival:out}-festival \ |
ef7e2865 | 100 | --with-speech-dispatcher \ |
2346c615 | 101 | %{?with_java:--with-jab-dir=%{_javadir}} |
306fcbc5 | 102 | %{__make} |
39088490 | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
97567c18 | 106 | |
39088490 | 107 | %{__make} install \ |
108 | orbittypelibdir=%{_libdir}/orbit-2.0 \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
111 | # no *.la for orbit modules | |
5eb1ec29 | 112 | rm -f $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/*.{la,a} |
39088490 | 113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
ef7e2865 | 122 | %attr(755,root,root) %{_bindir}/espeak-synthesis-driver |
21019ca2 | 123 | %{?with_festival:%attr(755,root,root) %{_bindir}/festival-synthesis-driver} |
ef7e2865 | 124 | %attr(755,root,root) %{_bindir}/speechd-synthesis-driver |
39088490 | 125 | %attr(755,root,root) %{_bindir}/test-speech |
126 | %attr(755,root,root) %{_libdir}/libgnomespeech.so.*.*.* | |
5eb1ec29 | 127 | %attr(755,root,root) %{_libdir}/orbit-2.0/*.so* |
ef7e2865 | 128 | %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Espeak.server |
21019ca2 | 129 | %{?with_festival:%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server} |
ef7e2865 | 130 | %{_libdir}/bonobo/servers/GNOME_Speech_SynthDriver_Speech_Dispatcher.server |
39088490 | 131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_libdir}/libgnomespeech.so | |
135 | %{_libdir}/libgnomespeech.la | |
136 | %{_includedir}/gnome-speech-1.0 | |
137 | %{_datadir}/idl/gnome-speech-1.0 | |
138 | %{_pkgconfigdir}/*.pc | |
5eb1ec29 | 139 | |
140 | %files static | |
141 | %defattr(644,root,root,755) | |
142 | %{_libdir}/lib*.a | |
8bb49eaf | 143 | |
144 | %if %{with java} | |
145 | %files java | |
146 | %defattr(644,root,root,755) | |
2346c615 | 147 | %{_javadir}/*.jar |
8bb49eaf | 148 | %endif |