File cmusphinx-es.spec of Package cmusphinx-es
#
# spec file for package cmusphinx-es
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cmusphinx-es
Version: 5.2
Release: 0
Summary: Spanish language model for cmusphinx/pocketsphinx
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Productivity/Office/Other
Url: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/Spanish
Source: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/Spanish/cmusphinx-es-5.2.tar.gz
Source1: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/Spanish/es.dict
Source2: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/Spanish/es-20k.lm.gz
Source99: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/Spanish/LICENSE
BuildRequires: pocketsphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the spanish language model and dictionary for cmusphinx and pocketsphinx
%prep
%setup -q
gunzip -c %{S:2} > es-20k.lm
cp %{S:99} .
%build
%install
mkdir -p %{buildroot}%{_datadir}/pocketsphinx/model/es/es
cp %{S:1} %{buildroot}%{_datadir}/pocketsphinx/model/es/es
cp -Ra * %{buildroot}%{_datadir}/pocketsphinx/model/es/es
%post
%postun
%files
%defattr(-,root,root)
%license LICENSE
%{_datadir}/pocketsphinx/model/es
%changelog