a640781
%global pypi_name awesomeversion
a640781
a640781
Name:           python-%{pypi_name}
a640781
Version:        21.1.3
a640781
Release:        1%{?dist}
a640781
Summary:        Python module to deal with versions
a640781
a640781
License:        MIT
a640781
URL:            https://github.com/ludeeus/awesomeversion
a640781
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
a640781
BuildArch:      noarch
a640781
a640781
%description
a640781
Python module to deal with versions if it comes to comparing them. Make
a640781
anything a version object, and compare against a vast section of other
a640781
version formats.
a640781
a640781
%package -n     python3-%{pypi_name}
a640781
Summary:        %{summary}
a640781
a640781
BuildRequires:  python3-devel
a640781
BuildRequires:  python3dist(setuptools)
a640781
BuildRequires:  python3dist(pytest)
a640781
a640781
%description -n python3-%{pypi_name}
a640781
Python module to deal with versions if it comes to comparing them. Make
a640781
anything a version object, and compare against a vast section of other
a640781
version formats.
a640781
a640781
%prep
a640781
%autosetup -n %{pypi_name}-%{version}
a640781
rm -rf %{pypi_name}.egg-info
a640781
# Only the PyPI source set the version properly
a640781
sed -i -e 's/main/%{version}/g' setup.py
a640781
a640781
%build
a640781
%py3_build
a640781
a640781
%install
a640781
%py3_install
a640781
a640781
%check
a640781
%pytest -v tests
a640781
a640781
%files -n python3-%{pypi_name}
a640781
%doc README.md
a640781
%license LICENCE.md
a640781
%{python3_sitelib}/%{pypi_name}/
a640781
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
a640781
a640781
%changelog
a640781
* Thu Jan 21 2021 Fabian Affolter <mail@fabian-affolter.ch> - 21.1.3-1
a640781
- Remove BR and obsolete macro
a640781
- Update to latest upstream release 21.1.3 (#1914195)
a640781
a640781
* Fri Jan 08 2021 Fabian Affolter <mail@fabian-affolter.ch> - 20.12.5-1
a640781
- Initial package for Fedora