From a640781ca1988c2debb5ccd068a37d0fe1d67302 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 24 2021 07:25:16 +0000 Subject: * Thu Jan 21 2021 Fabian Affolter - 21.1.3-1 - Remove BR and obsolete macro - Update to latest upstream release 21.1.3 (#1914195) * Fri Jan 08 2021 Fabian Affolter - 20.12.5-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d1dd401 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/awesomeversion-21.1.3.tar.gz diff --git a/python-awesomeversion.spec b/python-awesomeversion.spec new file mode 100644 index 0000000..f4b5a7a --- /dev/null +++ b/python-awesomeversion.spec @@ -0,0 +1,57 @@ +%global pypi_name awesomeversion + +Name: python-%{pypi_name} +Version: 21.1.3 +Release: 1%{?dist} +Summary: Python module to deal with versions + +License: MIT +URL: https://github.com/ludeeus/awesomeversion +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +Python module to deal with versions if it comes to comparing them. Make +anything a version object, and compare against a vast section of other +version formats. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) + +%description -n python3-%{pypi_name} +Python module to deal with versions if it comes to comparing them. Make +anything a version object, and compare against a vast section of other +version formats. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info +# Only the PyPI source set the version properly +sed -i -e 's/main/%{version}/g' setup.py + +%build +%py3_build + +%install +%py3_install + +%check +%pytest -v tests + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENCE.md +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Thu Jan 21 2021 Fabian Affolter - 21.1.3-1 +- Remove BR and obsolete macro +- Update to latest upstream release 21.1.3 (#1914195) + +* Fri Jan 08 2021 Fabian Affolter - 20.12.5-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..159ab6e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (awesomeversion-21.1.3.tar.gz) = 2c92c1ad8cb209752bb0f09905e7f81ce5696fcc93e685556894cc6c099c83195e44e07c9614f2692b894760761a55cb1aceb3002afd0b8e9e6ac8ec92db4dc0