a6d7e10
%global with_tests 0
a6d7e10
%global debug_package %{nil}
a6d7e10
a6d7e10
Name:           adapt
a6d7e10
Version:        0.3.0
4483190
Release:        2%{?dist}
a6d7e10
Summary:        Mycroft's Adapt Intent Parser
a6d7e10
a6d7e10
License:        LGPLv3
a6d7e10
URL:            https://adapt.mycroft.ai/
a6d7e10
Source0:        https://github.com/MycroftAI/adapt/archive/release/v%{version}.tar.gz
a6d7e10
BuildArch:      noarch
a6d7e10
a6d7e10
BuildRequires:  libicu-devel
a6d7e10
BuildRequires:  pulseaudio-libs-devel
a6d7e10
BuildRequires:  python2-devel
a6d7e10
BuildRequires:  python2-setuptools
a6d7e10
BuildRequires:  python-six
a6d7e10
BuildRequires:  python3-devel
a6d7e10
BuildRequires:  python3-setuptools
a6d7e10
BuildRequires:  python3-six
a6d7e10
a6d7e10
%if 0%{?with_tests}
a6d7e10
BuildRequires:  python-pep8
a6d7e10
BuildRequires:  python3-pep8
a6d7e10
%endif
a6d7e10
a6d7e10
%description
a6d7e10
The Adapt Intent Parser is a flexible and extensible intent definition and 
a6d7e10
determination framework. It is intended to parse natural language text into a 
a6d7e10
structured intent that can then be invoked programatically.
a6d7e10
a6d7e10
%package -n python2-adapt
a6d7e10
Summary:        A python2 library for Adapt Intent Parser
a6d7e10
%{?python_provide:%python_provide python2-adapt}
a6d7e10
Requires:       python2-ee
a6d7e10
a6d7e10
%description -n python2-adapt
a6d7e10
A python2 library for Adapt Intent Parser.
a6d7e10
a6d7e10
%package -n python3-adapt
a6d7e10
Summary:        A python3 library for Adapt Intent Parser
a6d7e10
%{?python_provide:%python_provide python3-adapt}
a6d7e10
Requires:       python3-ee
a6d7e10
a6d7e10
%description -n python3-adapt
a6d7e10
A python3 library for Adapt Intent Parser.
a6d7e10
a6d7e10
%prep
a6d7e10
%setup -q -n adapt-release-v%{version}
a6d7e10
a6d7e10
%build
a6d7e10
rm -rf adapt-parser.egg-info
a6d7e10
a6d7e10
%py2_build
a6d7e10
%py3_build
a6d7e10
a6d7e10
%install
a6d7e10
%py2_install
a6d7e10
%py3_install
a6d7e10
a6d7e10
%check
a6d7e10
%if %{with_tests}
a6d7e10
%{__python2} setup.py test
a6d7e10
%{__python3} setup.py test
a6d7e10
%endif
a6d7e10
a6d7e10
a6d7e10
%files -n python2-adapt
a6d7e10
%{!?_licensedir:%global license %%doc}
a6d7e10
%license LICENSE
a6d7e10
%{python_sitelib}/%{name}_parser-%{version}*
a6d7e10
%{python_sitelib}/%{name}/
a6d7e10
a6d7e10
%files -n python3-adapt
a6d7e10
%{!?_licensedir:%global license %%doc}
a6d7e10
%license LICENSE
a6d7e10
%{python3_sitelib}/%{name}_parser-%{version}*
a6d7e10
%{python3_sitelib}/%{name}/
a6d7e10
a6d7e10
%changelog
4483190
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
4483190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4483190
a6d7e10
* Sun Mar 19 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.0-1
a6d7e10
- Initial package