4 Group: System/Libraries
6 URL: http://www.pocketsphinx.org/
7 Summary: Speech Recognition Engine
8 Source: http://sourceforge.net/projects/cmusphinx/files/%{name}/%{version}/%{name}-%{version}.tar.gz
9 Patch0: 0001-pocketsphinx-0.7-fix_build_error_with_stdio.patch
10 BuildRequires: pkgconfig(gstreamer-0.10)
11 BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
12 BuildRequires: pkgconfig(sphinxbase)
13 BuildRequires: pkgconfig(python)
14 BuildRequires: python-setuptools
17 PocketSphinx is a version of the open-source Sphinx-II speech recognition
18 system which is able to recognize speech in real-time. While it may be
19 somewhat less accurate than the offline speech recognizers, it is lightweight
20 enough to run on handheld and embedded devices.
23 Summary: Header files for developing with pocketsphinx
24 Group: Applications/Multimedia
25 Requires: %{name}-libs = %{version}-%{release}, pkgconfig
26 Requires: sphinxbase-devel
29 Header files for developing with pocketsphinx.
32 Summary: Shared libraries for pocketsphinx executables
33 Group: Applications/Multimedia
36 Shared libraries for pocketsphinx executables.
39 Summary: Pocketsphinx gstreamer plugin
40 Group: Applications/Multimedia
41 Requires: %{name}-libs = %{version}-%{release}, gst-plugins-base
44 A gstreamer plugin for pocketsphinx.
47 Summary: Python interface to pocketsphinx
48 Group: Applications/Multimedia
49 Requires: %{name}-libs = %{version}-%{release}, sphinxbase-python
52 Python interface to pocketsphinx.
59 %configure --disable-static
65 rm -rf $RPM_BUILD_ROOT
66 mkdir -p $RPM_BUILD_ROOT%{python_sitearch}
67 make install DESTDIR=$RPM_BUILD_ROOT
69 # Install the man pages
70 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
71 cp -p doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
73 # Get rid of files we don't want packaged
74 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
75 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-0.10/*.la
76 rm -f doc/html/installdox
79 rm -rf $RPM_BUILD_ROOT
81 %post libs -p /sbin/ldconfig
83 %postun libs -p /sbin/ldconfig
86 %defattr(-,root,root,-)
88 %{_datadir}/pocketsphinx
92 %defattr(-,root,root,-)
93 %{_includedir}/pocketsphinx
94 %{_libdir}/libpocketsphinx.so
95 %{_libdir}/pkgconfig/pocketsphinx.pc
98 %defattr(-,root,root,-)
99 %doc AUTHORS ChangeLog COPYING NEWS README
100 %{_libdir}/libpocketsphinx.so.*
103 %defattr(-,root,root,-)
104 %{_libdir}/gstreamer-0.10/*
107 %defattr(-,root,root,-)