Blob Blame Raw
%global pypi_name gateway_addon
%global addon_name gateway-addon-python

%{?python_enable_dependency_generator}

Name:           mozilla-iot-gateway-addon-python
Summary:        Python bindings for Mozilla IoT Gateway
Version:        0.4.0
Release:        1%{?dist}
License:        MPLv2.0
URL:            https://github.com/mozilla-iot/gateway-addon-python
Source0:        https://github.com/mozilla-iot/%{addon_name}/archive/v%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3-jsonschema
BuildRequires:  python3-nnpy
BuildArch:      noarch
%{?python_provide:%python_provide python3-%{pypi_name}}

%description
Python bindings for Python add-ons for Mozilla IoT Gateway.


%prep
%autosetup -n %{addon_name}-%{version}


%build
%py3_build


%install
%py3_install


%files
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/

%changelog
* Wed Feb 20 2019 Troy Dawson <tdawson@redhat.com> - 0.4.0-1
- Initial package