15
0
Files
python-adapt-parser/python-adapt-parser.spec
Dirk Mueller 888add673b Accepting request 928729 from home:pgajdos:python
- version update to 1.0.0
  * Safe defaults #147
  * Updated docstrings
  * Fix is_prefix() implementation in Trie #148
  * Python2 is officially supported
  * Removed requirement of pyee

OBS-URL: https://build.opensuse.org/request/show/928729
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-adapt-parser?expand=0&rev=14
2021-11-21 11:04:24 +00:00

64 lines
2.0 KiB
RPMSpec

#
# spec file for package python-adapt-parser
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-adapt-parser
Version: 1.0.0
Release: 0
Summary: A text-to-intent parsing framework
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/MycroftAI/adapt
Source: https://github.com/MycroftAI/adapt/archive/refs/tags/release/v%{version}.tar.gz
BuildRequires: %{python_module pyee >= 8.1.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module unittest-xml-reporting}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyee >= 8.1.0
Requires: python-six >= 1.10.0
BuildArch: noarch
%python_subpackages
%description
The Adapt Intent Parser is a flexible and extensible intent definition and
determination framework. It is intended to parse natural language text into
a structured intent that can then be invoked programatically.
%prep
%setup -q -n adapt-release-v%{version}
sed -i -s "s/==/>=/" requirements.txt
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest test/*.py
%files %{python_files}
%license LICENSE.md
%doc README.md SUPPORT.md GETTING_STARTED.md
%{python_sitelib}/*
%changelog