]>
Commit | Line | Data |
---|---|---|
39088490 | 1 | # TODO: |
94eb16c5 | 2 | # - build other speech plugins? |
8bb49eaf | 3 | # |
94eb16c5 | 4 | # Conditional build: |
02da6cd6 | 5 | %bcond_without java # don't build java subpackage |
94eb16c5 | 6 | # |
39088490 | 7 | Summary: GNOME Speech - text-to-speech convertion |
af0a6e92 | 8 | Summary(pl.UTF-8): GNOME Speech - przekształcanie tekstu na mowę |
39088490 | 9 | Name: gnome-speech |
2346c615 | 10 | Version: 0.4.7 |
d9fba16c | 11 | Release: 1 |
dddded48 | 12 | License: LGPL |
39088490 | 13 | Group: Libraries |
02da6cd6 | 14 | Source0: http://ftp.gnome.org/pub/gnome/sources/gnome-speech/0.4/%{name}-%{version}.tar.bz2 |
2346c615 | 15 | # Source0-md5: 6aa7393fc82ccd0ce0298bb3ca5c2491 |
ce3ce238 | 16 | Patch0: %{name}-jar_dir.patch |
39088490 | 17 | URL: http://developer.gnome.org/projects/gap/ |
2346c615 | 18 | BuildRequires: ORBit2-devel >= 1:2.14.4 |
39088490 | 19 | BuildRequires: autoconf |
d5e2de3f | 20 | BuildRequires: automake |
02da6cd6 | 21 | BuildRequires: gnome-common >= 2.12.0 |
22 | BuildRequires: gtk-doc >= 1.7 | |
8bb49eaf | 23 | %if %{with java} |
24 | BuildRequires: jar | |
25 | BuildRequires: java | |
02da6cd6 | 26 | BuildRequires: java-access-bridge >= 1.6.0 |
8bb49eaf | 27 | %endif |
2346c615 | 28 | BuildRequires: libbonobo-devel >= 2.16.0 |
d5e2de3f | 29 | BuildRequires: libtool |
c0362701 | 30 | BuildRequires: pkgconfig |
39088490 | 31 | Requires: festival >= 1.4.2 |
39088490 | 32 | Provides: gnome_speech |
ff83b710 | 33 | Obsoletes: gnome_speech |
39088490 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | GNOME Speech purpose is to provide a simple general API for producing | |
38 | text-to-speech output. | |
39 | ||
af0a6e92 JR |
40 | %description -l pl.UTF-8 |
41 | Celem GNOME Speech jest udostępnienie prostego, ogólnego API do | |
42 | przekształcania tekstu na mowę. | |
39088490 | 43 | |
44 | %package devel | |
45 | Summary: Development files for gnome_speech | |
af0a6e92 | 46 | Summary(pl.UTF-8): Pliki programistyczne dla gnome_speech |
39088490 | 47 | Group: Development/Libraries |
5eb1ec29 | 48 | Requires: %{name} = %{version}-%{release} |
2346c615 | 49 | Requires: libbonobo-devel >= 2.16.0 |
6ad58c93 | 50 | Provides: gnome_speech-devel |
ff83b710 | 51 | Obsoletes: gnome_speech-devel |
6ad58c93 | 52 | |
39088490 | 53 | %description devel |
3facb58c | 54 | GNOME Speech files needed for development. |
39088490 | 55 | |
af0a6e92 | 56 | %description devel -l pl.UTF-8 |
3facb58c | 57 | Pliki GNOME Speech potrzebne do programowania. |
39088490 | 58 | |
5eb1ec29 | 59 | %package static |
60 | Summary: Static gnome-speech library | |
af0a6e92 | 61 | Summary(pl.UTF-8): Statyczna biblioteka gnome-speech |
5eb1ec29 | 62 | Group: Development/Libraries |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static gnome-speech library. | |
67 | ||
af0a6e92 | 68 | %description static -l pl.UTF-8 |
5eb1ec29 | 69 | Statyczna biblioteka gnome-speech. |
70 | ||
8bb49eaf | 71 | %package java |
72 | Summary: Java classes for gnome-speech | |
af0a6e92 | 73 | Summary(pl.UTF-8): Klasy Java dla gnome-speech |
8bb49eaf | 74 | Group: Development/Libraries |
75 | ||
76 | %description java | |
77 | Java classes for gnome-speech. | |
78 | ||
af0a6e92 | 79 | %description java -l pl.UTF-8 |
8bb49eaf | 80 | Klasy Java dla gnome-speech. |
81 | ||
39088490 | 82 | %prep |
83 | %setup -q | |
2e601b01 | 84 | %patch0 -p1 |
39088490 | 85 | |
86 | %build | |
87 | %{__libtoolize} | |
53355092 | 88 | %{__aclocal} |
ff83b710 | 89 | %{__autoheader} |
39088490 | 90 | %{__automake} |
91 | %{__autoconf} | |
5eb1ec29 | 92 | %configure \ |
93 | --enable-static \ | |
94 | --enable-gtk-doc \ | |
2346c615 | 95 | %{?with_java:--with-jab-dir=%{_javadir}} |
306fcbc5 | 96 | %{__make} |
39088490 | 97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
97567c18 | 100 | |
39088490 | 101 | %{__make} install \ |
102 | orbittypelibdir=%{_libdir}/orbit-2.0 \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | # no *.la for orbit modules | |
5eb1ec29 | 106 | rm -f $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/*.{la,a} |
39088490 | 107 | |
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post -p /sbin/ldconfig | |
112 | %postun -p /sbin/ldconfig | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_bindir}/festival-synthesis-driver | |
117 | %attr(755,root,root) %{_bindir}/test-speech | |
118 | %attr(755,root,root) %{_libdir}/libgnomespeech.so.*.*.* | |
5eb1ec29 | 119 | %attr(755,root,root) %{_libdir}/orbit-2.0/*.so* |
39088490 | 120 | %{_libdir}/bonobo/servers/*.server |
39088490 | 121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libgnomespeech.so | |
125 | %{_libdir}/libgnomespeech.la | |
126 | %{_includedir}/gnome-speech-1.0 | |
127 | %{_datadir}/idl/gnome-speech-1.0 | |
128 | %{_pkgconfigdir}/*.pc | |
5eb1ec29 | 129 | |
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/lib*.a | |
8bb49eaf | 133 | |
134 | %if %{with java} | |
135 | %files java | |
136 | %defattr(644,root,root,755) | |
2346c615 | 137 | %{_javadir}/*.jar |
8bb49eaf | 138 | %endif |