From 5fe9ae175cd88a920e45972358da58ca934a15b3 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Dec 27 2018 15:20:21 +0000 Subject: Enable python dependency generator References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault Signed-off-by: Igor Gnatenko --- diff --git a/adapt.spec b/adapt.spec index e8ced74..a7b2c55 100644 --- a/adapt.spec +++ b/adapt.spec @@ -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 - 0.3.2-2 +- Enable python dependency generator + * Sat Dec 22 2018 Peter Robinson 0.3.2-1 - Update to 0.3.2 - License changed to Apache 2.0