4b66d02
%global pypi_name crcelk
4b66d02
4b66d02
Name:           python-%{pypi_name}
4b66d02
Version:        1.3
673cffb
Release:        3%{?dist}
4b66d02
Summary:        A 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
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
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