]>
Commit | Line | Data |
---|---|---|
28b37384 | 1 | # Conditional build: |
2 | %bcond_with flite | |
3 | %bcond_with ibmtts | |
4 | %bcond_without espeak | |
5 | %bcond_without nas | |
6 | %bcond_without alsa | |
7 | %bcond_without pulse | |
8 | # | |
9 | Summary: A device independent layer for speech synthesis | |
10 | #Summary(pl.UTF-8): - | |
11 | Name: speech-dispatcher | |
12 | Version: 0.6.5 | |
13 | Release: 0.1 | |
14 | License: GPL v2 | |
15 | Group: Applications | |
16 | Source0: http://www.freebsoft.org/pub/projects/speechd/%{name}-%{version}.tar.gz | |
17 | # Source0-md5: ad8cf47918207872ba976f2b2e47c02b | |
b45d13c8 | 18 | Patch0: %{name}-python-install.patch |
28b37384 | 19 | URL: http://www.freebsoft.org/ |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake | |
22 | BuildRequires: libtool | |
23 | %{?with_flite:Buildrequires: flite-devel} | |
24 | %{?with_ibmtts:Buildrequires: ibmtts-devel} | |
25 | %{?with_espeak:Buildrequires: espeak-devel} | |
26 | %{?with_nas:Buildrequires: nas-devel} | |
27 | %{?with_alsa:Buildrequires: alsa-lib-devel} | |
28 | %{?with_pulse:Buildrequires: pulseaudio-devel} | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Speech Dispatcher provides a device independent layer for speech | |
33 | synthesis. | |
34 | ||
35 | #description -l pl.UTF-8 | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for speed-dispatcher library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki speed-dispatcher | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for speed-dispatcher library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki speed-dispatcher. | |
48 | ||
49 | %package static | |
50 | Summary: Static speed-dispatcher library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka speed-dispatcher | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static speed-dispatcher library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka speed-dispatcher. | |
60 | ||
61 | %prep | |
62 | %setup -q | |
b45d13c8 | 63 | %patch0 -p1 |
28b37384 | 64 | |
65 | %build | |
66 | %{__libtoolize} | |
67 | %{__aclocal} | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | %configure \ | |
72 | %{?with_flite:--with-flite}%{!?with_flite:--without-flite} \ | |
b45d13c8 | 73 | %{?with_ibmtts:--with-ibmtts}%{!?with_ibmtts:--without-ibmtts} \ |
74 | %{?with_espeak:--with-espeak}%{!?with_espeak:--without-espeak} \ | |
75 | %{?with_nas:--with-nas}%{!?with_nas:--without-nas} \ | |
76 | %{?with_alsa:--with-alsa}%{!?with_alsa:--without-alsa} \ | |
77 | %{?with_pulse:--with-pulse}%{!?with_pulse:--without-pulse} | |
28b37384 | 78 | |
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
93 | %attr(755,root,root) %{_bindir}/* | |
94 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
95 | %{_datadir}/%{name} | |
96 | ||
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/lib*.so | |
100 | %{_libdir}/lib*.la | |
101 | %{_includedir}/* | |
102 | %{_aclocaldir}/*.m4 | |
103 | %{_pkgconfigdir}/*.pc | |
104 | ||
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/lib*.a |