Enable python dependency generator
References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
3f6c271688
commit
5fe9ae175c
14
adapt.spec
14
adapt.spec
@ -1,9 +1,9 @@
|
|||||||
|
%{?python_enable_dependency_generator}
|
||||||
%global with_tests 0
|
%global with_tests 0
|
||||||
%global debug_package %{nil}
|
|
||||||
|
|
||||||
Name: adapt
|
Name: adapt
|
||||||
Version: 0.3.2
|
Version: 0.3.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Mycroft's Adapt Intent Parser
|
Summary: Mycroft's Adapt Intent Parser
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://adapt.mycroft.ai/
|
URL: https://adapt.mycroft.ai/
|
||||||
@ -14,9 +14,10 @@ BuildRequires: libicu-devel
|
|||||||
BuildRequires: pulseaudio-libs-devel
|
BuildRequires: pulseaudio-libs-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-six
|
|
||||||
|
|
||||||
%if 0%{?with_tests}
|
%if 0%{?with_tests}
|
||||||
|
BuildRequires: python3dist(six)
|
||||||
|
BuildRequires: python3dist(pyee) = 5.0.0
|
||||||
BuildRequires: python3-pep8
|
BuildRequires: python3-pep8
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -28,13 +29,14 @@ structured intent that can then be invoked programatically.
|
|||||||
%package -n python3-adapt
|
%package -n python3-adapt
|
||||||
Summary: A python3 library for Adapt Intent Parser
|
Summary: A python3 library for Adapt Intent Parser
|
||||||
%{?python_provide:%python_provide python3-adapt}
|
%{?python_provide:%python_provide python3-adapt}
|
||||||
Requires: python3-ee
|
|
||||||
|
|
||||||
%description -n python3-adapt
|
%description -n python3-adapt
|
||||||
A python3 library for Adapt Intent Parser.
|
A python3 library for Adapt Intent Parser.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n adapt-release-v%{version}
|
%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
|
%build
|
||||||
rm -rf adapt-parser.egg-info
|
rm -rf adapt-parser.egg-info
|
||||||
@ -48,13 +50,15 @@ rm -rf adapt-parser.egg-info
|
|||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-adapt
|
%files -n python3-adapt
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%{python3_sitelib}/%{name}_parser-%{version}*
|
%{python3_sitelib}/%{name}_parser-%{version}*
|
||||||
%{python3_sitelib}/%{name}/
|
%{python3_sitelib}/%{name}/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Dec 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.2-1
|
||||||
- Update to 0.3.2
|
- Update to 0.3.2
|
||||||
- License changed to Apache 2.0
|
- License changed to Apache 2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user