|
|
163169d |
%global pypi_name pyhaversion
|
|
|
163169d |
%global pkg_name haversion
|
|
|
163169d |
|
|
|
163169d |
Name: python-%{pkg_name}
|
|
|
4db25f6 |
Version: 20.12.1
|
|
|
d36b7a3 |
Release: 2%{?dist}
|
|
|
163169d |
Summary: Python module to get the version number of Home Assistant
|
|
|
163169d |
|
|
|
163169d |
License: MIT
|
|
|
163169d |
URL: https://github.com/ludeeus/pyhaversion
|
|
|
163169d |
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
163169d |
BuildArch: noarch
|
|
|
163169d |
|
|
|
163169d |
%description
|
|
|
163169d |
A Python module to get the version number of Home Assistant.
|
|
|
163169d |
|
|
|
163169d |
%package -n python3-%{pkg_name}
|
|
|
163169d |
Summary: %{summary}
|
|
|
163169d |
|
|
|
163169d |
BuildRequires: python3-devel
|
|
|
163169d |
BuildRequires: python3dist(aiohttp)
|
|
|
163169d |
BuildRequires: python3dist(async-timeout)
|
|
|
49d6855 |
BuildRequires: python3dist(awesomeversion)
|
|
|
163169d |
BuildRequires: python3dist(pytest)
|
|
|
163169d |
BuildRequires: python3dist(pytest-runner)
|
|
|
163169d |
BuildRequires: python3dist(semantic-version)
|
|
|
163169d |
BuildRequires: python3dist(setuptools)
|
|
|
163169d |
BuildRequires: python3dist(aresponses)
|
|
|
163169d |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
163169d |
|
|
|
163169d |
%description -n python3-%{pkg_name}
|
|
|
163169d |
A Python module to get the version number of Home Assistant.
|
|
|
163169d |
|
|
|
163169d |
%prep
|
|
|
163169d |
%autosetup -n %{pypi_name}-%{version}
|
|
|
163169d |
rm -rf %{pypi_name}.egg-info
|
|
|
26b8050 |
sed -i -e 's/master/%{version}/g' setup.py
|
|
|
163169d |
|
|
|
163169d |
%build
|
|
|
163169d |
%py3_build
|
|
|
163169d |
|
|
|
163169d |
%install
|
|
|
163169d |
%py3_install
|
|
|
163169d |
|
|
|
163169d |
%check
|
|
|
163169d |
%pytest -v tests
|
|
|
163169d |
|
|
|
163169d |
%files -n python3-%{pkg_name}
|
|
|
163169d |
%doc README.md
|
|
|
163169d |
%license LICENSE
|
|
|
163169d |
%{python3_sitelib}/%{pypi_name}/
|
|
|
163169d |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
163169d |
|
|
|
163169d |
%changelog
|
|
|
d36b7a3 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.12.1-2
|
|
|
d36b7a3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d36b7a3 |
|
|
|
4db25f6 |
* Fri Jan 01 2021 Fabian Affolter <mail@fabian-affolter.ch> - 20.12.1
|
|
|
4db25f6 |
- UPdate to latest upstream release 20.12.1
|
|
|
4db25f6 |
|
|
|
163169d |
* Thu Sep 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.0-1
|
|
|
163169d |
- Initial package for Fedora
|