%define name lz4
%define version 4.3.3
%define release 1

Summary: LZ4 Bindings for Python
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: UNKNOWN
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
Vendor: Jonathan Underwood <jonathan.underwood@gmail.com>
Url: https://github.com/python-lz4/python-lz4
BuildRequires: gcc, python3-devel, python3-setuptools, python3-setuptools_scm, python3-pkgconfig, python3-pytest-runner

%description
LZ4 Bindings for Python

%package -n python3-%{name}
Summary: Python 3 module of LZ4 Bindings for Python

%description -n python3-%{name}
LZ4 Bindings for Python

%prep
%autosetup -n %{name}-%{version}

%build
%py3_build

%install
%py3_install
rm -rf %{buildroot}/usr/lib/python*/site-packages/*.egg-info/requires.txt
rm -rf %{buildroot}/usr/share/doc/%{name}/

%clean
rm -rf %{buildroot}

%files -n python3-%{name}
%license LICENSE

%{_libdir}/python3*/site-packages/lz4
%{_libdir}/python3*/site-packages/lz4*.egg-info

%changelog
* Sun Mar  3 2024 log2timeline development team <log2timeline-dev@googlegroups.com> 4.3.3-1
- Auto-generated