c8f23c8
%global pypi_name siphash
c8f23c8
c8f23c8
Name:           python-%{pypi_name}
c8f23c8
Version:        0.0.1
c8f23c8
Release:        1%{?dist}
c8f23c8
Summary:        SipHash in Python
c8f23c8
c8f23c8
License:        MIT
c8f23c8
URL:            http://github.com/majek/pysiphash
c8f23c8
Source0:        %{pypi_source}
c8f23c8
BuildArch:      noarch
c8f23c8
c8f23c8
BuildRequires:  python3-devel
c8f23c8
BuildRequires:  python3dist(setuptools)
c8f23c8
c8f23c8
%description
c8f23c8
A Python implementation of SipHash-2-4, a fast short-input PRF with a 128-bit
c8f23c8
key and 64-bit output.
c8f23c8
c8f23c8
c8f23c8
%package -n     python3-%{pypi_name}
c8f23c8
Summary:        %{summary}
c8f23c8
%{?python_provide:%python_provide python3-%{pypi_name}}
c8f23c8
c8f23c8
%description -n python3-%{pypi_name}
c8f23c8
A Python implementation of SipHash-2-4, a fast short-input PRF with a 128-bit
c8f23c8
key and 64-bit output.
c8f23c8
c8f23c8
c8f23c8
%prep
c8f23c8
%autosetup -n %{pypi_name}-%{version}
c8f23c8
c8f23c8
# Remove bundled egg-info
c8f23c8
rm -rf %{pypi_name}.egg-info
c8f23c8
c8f23c8
c8f23c8
%build
c8f23c8
%py3_build
c8f23c8
c8f23c8
c8f23c8
%install
c8f23c8
%py3_install
c8f23c8
c8f23c8
c8f23c8
%files -n python3-%{pypi_name}
c8f23c8
%license LICENSE
c8f23c8
%doc README.md Changelog
c8f23c8
%{python3_sitelib}/%{pypi_name}/
c8f23c8
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
c8f23c8
c8f23c8
c8f23c8
%changelog
c8f23c8
* Sat Apr 04 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.0.1-1
c8f23c8
- Initial package