File freespeech.spec of Package freespeech

Name: freespeech
Version: 0+git_dc5ab89
Release: 1
Summary: Frontend for pocketsphinx
Group: System/Base
URL: https://github.com/themanyone/freespeech-vr
License: GPLv3
Source0: %{name}-%{version}.tar.gz
Patch0: datadir.patch
BuildRequires: python3-base
Requires: sphinxbase pocketsphinx
Requires: pocketsphinx-plugin pocketsphinx-models
Requires: python3-gst python3-xlib typelib-1_0-Gst-1_0
Requires: gstreamer-plugins-good
Requires: cmu-cam-toolkit

%description
%{summary}.

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_docdir}/%{name}/*
%dir %{_datadir}/%{name}
%dir %{_docdir}/%{name}
%{python3_sitelib}/send_key.py

%prep
%setup -q
%patch0 -p1


%build



%install
install -D -m644 lm/freespeech.ref.txt %{buildroot}/%{_datadir}/%{name}/freespeech.ref.txt
install -D -m644 custom.dic %{buildroot}/%{_datadir}/%{name}/custom.dic
install -D -m755 freespeech.py %{buildroot}/%{_bindir}/freespeech
install -D -m644 README %{buildroot}/%{_docdir}/%{name}/README
install -D -m644 COPYING %{buildroot}/%{_docdir}/%{name}/COPYING
install -D -m644 send_key.py %{buildroot}/%{python3_sitelib}/send_key.py