42b5c7a
%global pypi_name aiomqtt
42b5c7a
42b5c7a
Name:           python-%{pypi_name}
42b5c7a
Version:        0.1.1
0a4b59b
Release:        5%{?dist}
42b5c7a
Summary:        AsyncIO asynchronous wrapper around paho-mqtt
42b5c7a
42b5c7a
License:        EPL-1.0
42b5c7a
URL:            https://github.com/mossblaser/aiomqtt
42b5c7a
Source0:        https://github.com/mossblaser/aiomqtt/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
42b5c7a
BuildArch:      noarch
42b5c7a
42b5c7a
BuildRequires:  mosquitto
42b5c7a
42b5c7a
%description
42b5c7a
This library implements a minimal Python 3 asyncio wrapper around the MQTT
42b5c7a
client in paho-mqtt.
42b5c7a
42b5c7a
%package -n     python3-%{pypi_name}
42b5c7a
Summary:        %{summary}
42b5c7a
42b5c7a
BuildRequires:  python3-devel
42b5c7a
BuildRequires:  python3-setuptools
42b5c7a
BuildRequires:  python3-paho-mqtt
42b5c7a
BuildRequires:  python3-pytest
42b5c7a
BuildRequires:  python3-pytest-asyncio
42b5c7a
BuildRequires:  python3-mock
42b5c7a
%{?python_provide:%python_provide python3-%{pypi_name}}
42b5c7a
42b5c7a
%description -n python3-%{pypi_name}
42b5c7a
This library implements a minimal Python 3 asyncio wrapper around the MQTT
42b5c7a
client in paho-mqtt.
42b5c7a
42b5c7a
%prep
42b5c7a
%autosetup -n %{pypi_name}-%{version}
42b5c7a
rm -rf %{pypi_name}.egg-info
42b5c7a
42b5c7a
%build
42b5c7a
%py3_build
42b5c7a
42b5c7a
%install
42b5c7a
%py3_install
42b5c7a
42b5c7a
%check
42b5c7a
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
42b5c7a
42b5c7a
%files -n python3-%{pypi_name}
42b5c7a
%doc README.md
42b5c7a
%{python3_sitelib}/%{pypi_name}
42b5c7a
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
42b5c7a
42b5c7a
%changelog
0a4b59b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-5
0a4b59b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0a4b59b
d917939
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.1.1-4
d917939
- Rebuilt for Python 3.9
d917939
e0616d8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-3
e0616d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e0616d8
42b5c7a
* Fri Jan 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.1-2
42b5c7a
- Better use of wildcards (rhbz#1786958)
42b5c7a
42b5c7a
* Sun Dec 29 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.1-1
42b5c7a
- Initial package for Fedora