From bd7ae9ed74084e7b260076dc44ea0800b13fef7a Mon Sep 17 00:00:00 2001 From: Jerry James Date: Aug 26 2009 14:58:01 +0000 Subject: Initial checkin. --- diff --git a/.cvsignore b/.cvsignore index e69de29..36f20ff 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pocketsphinx-0.5.1.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..4779503 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pocketsphinx-0_5_1-3_fc11:HEAD:pocketsphinx-0.5.1-3.fc11.src.rpm:1251298640 diff --git a/pocketsphinx-0.5.1-doc.patch b/pocketsphinx-0.5.1-doc.patch new file mode 100644 index 0000000..2d76f2b --- /dev/null +++ b/pocketsphinx-0.5.1-doc.patch @@ -0,0 +1,33 @@ +diff -dur pocketsphinx-0.5.1.ORIG/doc/doxyfile.in pocketsphinx-0.5.1/doc/doxyfile.in +--- pocketsphinx-0.5.1.ORIG/doc/doxyfile.in 2008-07-07 18:14:52.000000000 -0600 ++++ pocketsphinx-0.5.1/doc/doxyfile.in 2009-08-21 10:13:42.144889225 -0600 +@@ -421,7 +421,7 @@ + # for undocumented members. If EXTRACT_ALL is set to YES then this flag will + # automatically be disabled. + +-WARN_IF_UNDOCUMENTED = YES ++WARN_IF_UNDOCUMENTED = NO + + # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for + # potential errors in the documentation, such as not documenting some +@@ -462,7 +462,8 @@ + # directories like "/usr/src/myproject". Separate the files or directories + # with spaces. + +-INPUT = @top_srcdir@/include @top_srcdir@/src/libpocketsphinx ++INPUT = @top_srcdir@/include \ ++ @top_srcdir@/src/libpocketsphinx + + # This tag can be used to specify the character encoding of the source files that + # doxygen parses. Internally doxygen uses the UTF-8 encoding, which is also the default +@@ -504,7 +505,9 @@ + # against the file with absolute path, so to exclude all test directories + # for example use the pattern */test/* + +-EXCLUDE_PATTERNS = */.svn/* */.deps/* */.libs/* ++EXCLUDE_PATTERNS = */.svn/* \ ++ */.deps/* \ ++ */.libs/* + + # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names + # (namespaces, classes, functions, etc.) that should be excluded from the output. diff --git a/pocketsphinx-0.5.1-python.patch b/pocketsphinx-0.5.1-python.patch new file mode 100644 index 0000000..f7a0bd0 --- /dev/null +++ b/pocketsphinx-0.5.1-python.patch @@ -0,0 +1,12 @@ +diff -dur pocketsphinx-0.5.1.ORIG/python/Makefile.in pocketsphinx-0.5.1/python/Makefile.in +--- pocketsphinx-0.5.1.ORIG/python/Makefile.in 2008-11-29 14:46:47.000000000 -0700 ++++ pocketsphinx-0.5.1/python/Makefile.in 2009-03-24 13:53:36.000000000 -0600 +@@ -429,7 +429,7 @@ + @BUILD_PYTHON_TRUE@all-local: pymod-build-stamp + + @BUILD_PYTHON_TRUE@install-exec-local: pymod-build-stamp +-@BUILD_PYTHON_TRUE@ $(PYTHON) setup.py install --prefix $(DESTDIR)$(prefix) ++@BUILD_PYTHON_TRUE@ $(PYTHON) setup.py install --skip-build --root $(DESTDIR) + + @BUILD_PYTHON_TRUE@uninstall-local: + @BUILD_PYTHON_TRUE@ $(PYTHON) setup.py bogus_uninstall --prefix $(DESTDIR)$(prefix) diff --git a/pocketsphinx.spec b/pocketsphinx.spec new file mode 100644 index 0000000..d91b478 --- /dev/null +++ b/pocketsphinx.spec @@ -0,0 +1,142 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: pocketsphinx +Version: 0.5.1 +Release: 3%{?dist} +Summary: Real-time speech recognition + +Group: Applications/Multimedia +License: BSD and LGPLv2+ +URL: http://www.pocketsphinx.org/ +Source0: http://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.bz2 +# Fix the building of doxygen documentation +Patch0: pocketsphinx-0.5.1-doc.patch +# Install the Python egg in the Fedora way. +Patch1: pocketsphinx-0.5.1-python.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: doxygen, gstreamer-devel, gstreamer-plugins-base-devel +BuildRequires: pkgconfig, python-setuptools-devel, sphinxbase-devel + +%description +PocketSphinx is a version of the open-source Sphinx-II speech recognition +system which is able to recognize speech in real-time. While it may be +somewhat less accurate than the offline speech recognizers, it is lightweight +enough to run on handheld and embedded devices. + +%package devel +Summary: Header files for developing with pocketsphinx +Group: Applications/Multimedia +Requires: %{name}-libs = %{version}-%{release}, pkgconfig +Requires: sphinxbase-devel + +%description devel +Header files for developing with pocketsphinx. + +%package libs +Summary: Shared libraries for pocketsphinx executables +Group: Applications/Multimedia + +%description libs +Shared libraries for pocketsphinx executables. + +%package plugin +Summary: Pocketsphinx gstreamer plugin +Group: Applications/Multimedia +Requires: %{name}-libs = %{version}-%{release}, gstreamer-plugins-base + +%description plugin +A gstreamer plugin for pocketsphinx. + +%package python +Summary: Python interface to pocketsphinx +Group: Applications/Multimedia +Requires: %{name}-libs = %{version}-%{release}, sphinxbase-python + +%description python +Python interface to pocketsphinx. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%configure --disable-dependency-tracking --disable-static + +# Get rid of undesirable hardcoded runpaths +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +# Get rid of undesirable direct library dependencies +sed -i -e 's/ -lsphinxad//g' src/libpocketsphinx/Makefile + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{python_sitearch} +make install DESTDIR=$RPM_BUILD_ROOT + +# Install the man pages +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +cp -p doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +# Get rid of files we don't want packaged +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-0.10/*.la +rm -f $RPM_BUILD_ROOT%{_datadir}/pocketsphinx/model/lm/turtle/turtle.handdict +rm -f doc/html/installdox + +%clean +rm -rf $RPM_BUILD_ROOT + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_bindir}/* +%{_datadir}/pocketsphinx +%{_mandir}/man1/* + +%files devel +%defattr(-,root,root,-) +%doc doc/html +%{_includedir}/pocketsphinx +%{_libdir}/libpocketsphinx.so +%{_libdir}/pkgconfig/pocketsphinx.pc + +%files libs +%defattr(-,root,root,-) +%{_libdir}/libpocketsphinx.so.* + +%files plugin +%defattr(-,root,root,-) +%{_libdir}/gstreamer-0.10/* + +%files python +%defattr(-,root,root,-) +%{python_sitearch}/* + +%changelog +* Fri Aug 21 2009 Jerry James - 0.5.1-3 +- More review issues: +- Fix license (gstreamer plugin is LGPLv2+) +- Remove unnecessary zero-byte turtle dictionary file + +* Fri Aug 21 2009 Jerry James - 0.5.1-2 +- Fix issues raised in review by Andrew Colin Kissa, namely: +- Improve description and summary +- Change the group to Applications/Multimedia + +* Tue Mar 24 2009 Jerry James - 0.5.1-1 +- Update to 0.5.1 + +* Thu Jul 10 2008 Jerry James - 0.5-1 +- Update to 0.5 + +* Wed Mar 5 2008 Jerry James - 0.4.1-1 +- Initial RPM diff --git a/sources b/sources index e69de29..7206434 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d257aa7ac2720669fa0ed5e6b91a0bbf pocketsphinx-0.5.1.tar.bz2