## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname reedsolo %global py_setup_args --cythonize Name: python-reedsolo Version: 1.7.0 Release: %autorelease Summary: Pure-Python Reed Solomon encoder/decoder License: Public Domain URL: https://github.com/tomerfiliba-org/reedsolomon Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(cython) BuildRequires: python3dist(pytest) %global common_description %{expand: A pure-python universal errors-and-erasures Reed-Solomon Codec, based on the wonderful tutorial at wikiversity, written by “Bobmath” and “LRQ3000”.} %description %{common_description} %package -n python3-%{srcname} Summary: %{summary} %py_provides python3-c%{srcname} %description -n python3-%{srcname} %{common_description} %prep %autosetup -p1 -n reedsolomon-%{version} # Remove shebang in non-script source # https://github.com/tomerfiliba/reedsolomon/pull/31 sed -r -i '1{/^#!/d}' %{srcname}.py %build %py3_build %install %py3_install %check %pytest %files -n python3-%{srcname} %license LICENSE %doc changelog.txt README.rst %pycached %{python3_sitearch}/%{srcname}.py %{python3_sitearch}/c%{srcname}%{python3_ext_suffix} %{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 1.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.7.0-3 - Rebuilt for Python 3.12 * Mon Apr 10 2023 Julian Sikorski - 1.7.0-2 - Fixes around Source0 and URL - run fedpkg new-sources - update the URL - use a more specific Source0 archive name * Mon Mar 13 2023 Julian Sikorski - 1.7.0-1 - Update to 1.7.0 * Fri Jan 20 2023 Fedora Release Engineering - 1.5.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.5.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.5.4-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.5.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.5.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.5.4-5 - Rebuilt for Python 3.10 * Fri Mar 05 2021 Julian.Sikorski - 1.5.4-4 - Do not hardcode x86_64 * Wed Mar 03 2021 Julian Sikorski - 1.5.4-3 - Add changelog.txt to %%doc - Add gcc to BuildRequires * Wed Mar 03 2021 Benjamin A. Beasley - 1.5.4-2 - Implement review feedback * Sat Feb 06 2021 Julian Sikorski - 1.5.4-1 - Initial RPM release ## END: Generated by rpmautospec