Skip to content

Instantly share code, notes, and snippets.

@NickCis
Created June 7, 2014 08:49
Show Gist options
  • Save NickCis/8d0043273511b3f62319 to your computer and use it in GitHub Desktop.
Save NickCis/8d0043273511b3f62319 to your computer and use it in GitHub Desktop.
sphinxbase for sailfish OS .yaml and .spec
-------------------------- sphinxbase.yaml ------------------------------
Name: sphinxbase
Summary: Common library for sphinx speech recognition.
Version: 0.8
Release: 1
Group: System/Libraries
License: BSD
URL: http://cmusphinx.sourceforge.net/
Description: |
Common library for sphinx speech recognition.
Sources:
- http://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.gz
Configure: autogen
ConfigOptions:
- --enable-fixed
- --prefix=/usr/
AutoSubPackages:
- devel
-------------------------------------------------------------------------
-------------------------- sphinxbase.spec ------------------------------
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#
Name: sphinxbase
# >> macros
# << macros
Summary: Common library for sphinx speech recognition.
Version: 0.8
Release: 1
Group: System/Libraries
License: BSD
URL: http://cmusphinx.sourceforge.net/
Source0: http://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.gz
Source100: sphinxbase.yaml
%description
Common library for sphinx speech recognition.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%setup -q -n %{name}-%{version}
# >> setup
# << setup
%build
# >> build pre
# << build pre
%autogen --disable-static
%configure --disable-static \
--enable-fixed \
--prefix=/usr/
make %{?_smp_mflags}
# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install
# >> install post
# << install post
%files
%defattr(-,root,root,-)
# >> files
%{_libdir}/libsphinx*
%{_bindir}/sphinx*
# << files
%files devel
%defattr(-,root,root,-)
# >> files devel
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}
# << files devel
-------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment