45c780c
%global pypi_name aioeafm
45c780c
45c780c
Name:           python-%{pypi_name}
45c780c
Version:        1.0.0
f1f3afb
Release:        2%{?dist}
45c780c
Summary:        Python wrapper for the UK Environment Agency Flood Monitoring API
45c780c
45c780c
License:        ASL 2.0
45c780c
URL:            https://github.com/Jc2k/aioeafm
45c780c
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
45c780c
BuildArch:      noarch
45c780c
45c780c
%description
45c780c
This is a thin Python wrapper for the Real Time flood
45c780c
monitoring API.
45c780c
45c780c
%package -n     python3-%{pypi_name}
45c780c
Summary:        %{summary}
45c780c
45c780c
BuildRequires:  python3-devel
45c780c
BuildRequires:  pyproject-rpm-macros
45c780c
BuildRequires:  python3dist(pytest)
45c780c
BuildRequires:  python3dist(pytest-aiohttp)
45c780c
%{?python_provide:%python_provide python3-%{pypi_name}}
45c780c
45c780c
%description -n python3-%{pypi_name}
45c780c
This is a thin Python wrapper for the Real Time flood
45c780c
monitoring API.
45c780c
45c780c
%prep
45c780c
%autosetup -n %{pypi_name}-%{version}
45c780c
%generate_buildrequires
45c780c
%pyproject_buildrequires -r
45c780c
45c780c
%build
45c780c
%pyproject_wheel
45c780c
45c780c
%install
45c780c
%pyproject_install
45c780c
%pyproject_save_files %{pypi_name}
45c780c
45c780c
%check
45c780c
%pytest -v tests
45c780c
45c780c
%files -n python3-%{pypi_name} -f %{pyproject_files}
45c780c
%doc README.md
45c780c
%license LICENSE
45c780c
45c780c
%changelog
f1f3afb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
f1f3afb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f1f3afb
45c780c
* Thu Sep 17 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.0.0-1
45c780c
- Update to latest upstream release 1.0.0
45c780c
45c780c
* Mon Sep 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.2-1
45c780c
- Initial package for Fedora