summaryrefslogtreecommitdiffstats
path: root/mycroft/python-precise-runner
diff options
context:
space:
mode:
authorLyes Saadi <mail@lyes.eu>2020-09-02 17:14:52 +0100
committerLyes Saadi <mail@lyes.eu>2020-09-02 17:14:52 +0100
commitc1e9ae65824febedb527381e457a4318a5f0f97e (patch)
treee4021776cc783c8248e2e7dd6cc0d082d0bbfe5b /mycroft/python-precise-runner
parent4930ca0b4b592eb0894e82ac6f42ff71cbed714c (diff)
downloadspec-c1e9ae65824febedb527381e457a4318a5f0f97e.tar.gz
spec-c1e9ae65824febedb527381e457a4318a5f0f97e.tar.xz
spec-c1e9ae65824febedb527381e457a4318a5f0f97e.zip
Restructuring the mycroft directory
Diffstat (limited to 'mycroft/python-precise-runner')
-rw-r--r--mycroft/python-precise-runner/python-precise-runner.spec66
1 files changed, 66 insertions, 0 deletions
diff --git a/mycroft/python-precise-runner/python-precise-runner.spec b/mycroft/python-precise-runner/python-precise-runner.spec
new file mode 100644
index 0000000..de6eb5b
--- /dev/null
+++ b/mycroft/python-precise-runner/python-precise-runner.spec
@@ -0,0 +1,66 @@
+%global pypi_name precise-runner
+
+Name: python-%{pypi_name}
+Version: 0.3.1
+Release: 1%{?dist}
+Summary: Wrapper to use Mycroft Precise Wake Word Listener
+
+License: ASL 2.0
+URL: http://github.com/MycroftAI/mycroft-precise
+Source0: %{pypi_source}
+Source1: https://raw.githubusercontent.com/MycroftAI/mycroft-precise/dev/LICENSE
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3dist(pyaudio)
+BuildRequires: python3dist(setuptools)
+
+%global _description %{expand:
+Precise is a wake word listener. The software monitors an audio stream (usually
+a microphone) and when it recognizes a specific phrase it triggers an event. For
+example, at Mycroft AI the team has trained Precise to recognize the phrase
+"Hey, Mycroft". When the software recognizes this phrase it puts the rest of
+Mycroft's software into command mode and waits for a command from the person
+using the device. Mycroft Precise is fully open source and can be trined to
+recognize anything from a name to a cough.
+
+In addition to Precise there are several proprietary wake word listeners out
+there. If you are looking to spot a wakeword Precise might be a great solution,
+but if it's too resource intensive or isn't accurate enough here are some
+alternative options.
+}
+
+%description %_description
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+Requires: python3dist(pyaudio)
+
+%description -n python3-%{pypi_name} %_description
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+cp %{SOURCE1} .
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%check
+%{__python3} setup.py test
+
+%files -n python3-%{pypi_name}
+%doc README.md
+%license LICENSE
+%{python3_sitelib}/precise_runner
+%{python3_sitelib}/precise_runner-%{version}-py%{python3_version}.egg-info
+
+%changelog
+* Sat Jun 06 2020 Lyes Saadi <fedora@lyes.eu> - 0.3.1-1
+- Initial Package