4b66d02
%global pypi_name crcelk
4b66d02
4b66d02
Name:           python-%{pypi_name}
4b66d02
Version:        1.3
4c8b03a
Release:        12%{?dist}
e6c81f1
Summary:        Python implementation of the CRC algorithm
4b66d02
4b66d02
License:        MIT
4b66d02
URL:            https://github.com/zeroSteiner/crcelk
4b66d02
Source0:        %{pypi_source}
4b66d02
BuildArch:      noarch
4b66d02
4b66d02
%description
4b66d02
CrcElk provides a pure Python implementation of the CRC algorithm and allows
4b66d02
for variants to easily be defined by providing their parameters such as width,
4b66d02
starting polynomial, etc.
4b66d02
4b66d02
%package -n python3-%{pypi_name}
4b66d02
Summary:        %{summary}
4b66d02
4b66d02
BuildRequires:  python3-devel
e6c81f1
BuildRequires:  python3-setuptools
4b66d02
%{?python_provide:%python_provide python3-%{pypi_name}}
4b66d02
4b66d02
%description -n python3-%{pypi_name}
4b66d02
CrcElk provides a pure Python implementation of the CRC algorithm and allows
4b66d02
for variants to easily be defined by providing their parameters such as width,
4b66d02
starting polynomial, etc.
4b66d02
4b66d02
%prep
4b66d02
%autosetup -n %{pypi_name}-%{version}
4b66d02
sed -i -e '/^#!\//, 1d' crcelk.py
4b66d02
4b66d02
%build
4b66d02
%py3_build
4b66d02
4b66d02
%install
4b66d02
%py3_install
4b66d02
4b66d02
%files -n python3-%{pypi_name}
4b66d02
%doc README.rst
4b66d02
%{python3_sitelib}/%{pypi_name}.py
4b66d02
%{python3_sitelib}/%{pypi_name}*.egg-info
4b66d02
%{python3_sitelib}/__pycache__/*
4b66d02
4b66d02
%changelog
4c8b03a
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-12
4c8b03a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4c8b03a
20fbe39
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-11
20fbe39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
20fbe39
7ccdcce
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3-10
7ccdcce
- Rebuilt for Python 3.10
7ccdcce
568cd21
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-9
568cd21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
568cd21
2d825c1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-8
2d825c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2d825c1
e6c81f1
* Fri Jun 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3-7
e6c81f1
- Add python3-setuptools as BR
e6c81f1
e4193f1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3-6
e4193f1
- Rebuilt for Python 3.9
e4193f1
689cf59
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-5
689cf59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
689cf59
b606155
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-4
b606155
- Rebuilt for Python 3.8.0rc1 (#1748018)
b606155
673cffb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-3
673cffb
- Rebuilt for Python 3.8
673cffb
23130c2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
23130c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
23130c2
4b66d02
* Thu May 09 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.3-1
4b66d02
- Initial package for Fedora