Enable python dependency generator

References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-12-27 16:20:21 +01:00
parent 3f6c271688
commit 5fe9ae175c
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
1 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,9 @@
%{?python_enable_dependency_generator}
%global with_tests 0
%global debug_package %{nil}
Name: adapt
Version: 0.3.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Mycroft's Adapt Intent Parser
License: ASL 2.0
URL: https://adapt.mycroft.ai/
@ -14,9 +14,10 @@ BuildRequires: libicu-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
%if 0%{?with_tests}
BuildRequires: python3dist(six)
BuildRequires: python3dist(pyee) = 5.0.0
BuildRequires: python3-pep8
%endif
@ -28,13 +29,14 @@ structured intent that can then be invoked programatically.
%package -n python3-adapt
Summary: A python3 library for Adapt Intent Parser
%{?python_provide:%python_provide python3-adapt}
Requires: python3-ee
%description -n python3-adapt
A python3 library for Adapt Intent Parser.
%prep
%setup -q -n adapt-release-v%{version}
# https://github.com/MycroftAI/adapt/pull/90
sed -i -e "s/six==1.10.0/six/" setup.py
%build
rm -rf adapt-parser.egg-info
@ -48,13 +50,15 @@ rm -rf adapt-parser.egg-info
%{__python3} setup.py test
%endif
%files -n python3-adapt
%license LICENSE.md
%{python3_sitelib}/%{name}_parser-%{version}*
%{python3_sitelib}/%{name}/
%changelog
* Thu Dec 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.2-2
- Enable python dependency generator
* Sat Dec 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.2-1
- Update to 0.3.2
- License changed to Apache 2.0