Blame python-awesomeversion.spec

a640781
%global pypi_name awesomeversion
a640781
a640781
Name:           python-%{pypi_name}
a08fa3e
Version:        21.8.1
a08fa3e
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
a08fa3e
* Thu Aug 26 2021 Fabian Affolter <mail@fabian-affolter.ch> - 21.8.1-1
a08fa3e
- Update to latest upstream release 21.8.1 (rhbz#)
a08fa3e
5fa1c1a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.2.3-3
5fa1c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5fa1c1a
9969785
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 21.2.3-2
9969785
- Rebuilt for Python 3.10
9969785
3513acf
* Wed Feb 24 2021 Fabian Affolter <mail@fabian-affolter.ch> - 21.2.3-1
3513acf
- Update to latest upstream release 21.2.3 (#1932296)
3513acf
3f6a273
* Fri Feb 05 2021 Fabian Affolter <mail@fabian-affolter.ch> - 21.2.2-1
3f6a273
- Update to latest upstream release 21.2.2
3f6a273
2b28f01
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.3-2
2b28f01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2b28f01
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