diff options
| author | Lyes Saadi <mail@lyes.eu> | 2020-09-02 17:14:52 +0100 |
|---|---|---|
| committer | Lyes Saadi <mail@lyes.eu> | 2020-09-02 17:14:52 +0100 |
| commit | c1e9ae65824febedb527381e457a4318a5f0f97e (patch) | |
| tree | e4021776cc783c8248e2e7dd6cc0d082d0bbfe5b /mycroft/python-pocketsphinx/python-pocketsphinx.spec | |
| parent | 4930ca0b4b592eb0894e82ac6f42ff71cbed714c (diff) | |
Restructuring the mycroft directory
Diffstat (limited to 'mycroft/python-pocketsphinx/python-pocketsphinx.spec')
| -rw-r--r-- | mycroft/python-pocketsphinx/python-pocketsphinx.spec | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/mycroft/python-pocketsphinx/python-pocketsphinx.spec b/mycroft/python-pocketsphinx/python-pocketsphinx.spec new file mode 100644 index 0000000..fbf35fc --- /dev/null +++ b/mycroft/python-pocketsphinx/python-pocketsphinx.spec @@ -0,0 +1,60 @@ +%global pypi_name pocketsphinx + +Name: python-%{pypi_name} +Version: 0.1.15 +Release: 1%{?dist} +Summary: Python interface to CMU Sphinxbase and Pocketsphinx libraries + +License: BSD +URL: https://github.com/bambocher/pocketsphinx-python +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +BuildRequires: alsa-lib-devel +BuildRequires: gcc-c++ +BuildRequires: pulseaudio-libs-devel +BuildRequires: swig + +%global _description %{expand: +Pocketsphinx is a part of the CMU Sphinx Open Source Toolkit For Speech +Recognition. + +This package provides a python interface to CMU Sphinxbase and Pocketsphinx +libraries created with SWIG and Setuptools. +} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Provides: bundled(pocketsphinx) == c178c8dc1948685ed93c6c4ee93122a7bc789cfd +Provides: bundled(sphinxbase) == a74a11df3a021e9a26b0d20c3de999b8eb0afcef + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%set_build_flags +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/sphinxbase +%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Sat Jun 06 2020 Lyes Saadi <fedora@lyes.eu> - 0.1.15-1 +- Initial Package |
