Blame python-pyliblzfse.spec

e521764
%global pypi_name pyliblzfse
e521764
e521764
Name:           python-%{pypi_name}
e521764
Version:        0.4.1
e521764
Release:        %autorelease
e521764
Summary:        Python bindings for the LZFSE reference implementation
e521764
e521764
License:        MIT
e521764
URL:            https://github.com/ydkhatri/pyliblzfse
e521764
Source:         %{pypi_source}
e521764
# Use system library for lzfse
e521764
Patch:          use-system-lzfse.patch
e521764
e521764
BuildRequires:  python3-devel
e521764
BuildRequires:  lzfse-devel
e521764
BuildRequires:  gcc
e521764
e521764
# LZFSE isn't supported on big-endian architectures
e521764
# https://github.com/lzfse/lzfse/issues/23
e521764
ExcludeArch:    s390x
e521764
e521764
%global _description %{expand:
e521764
pyliblzfse is a Python (https://www.python.org/) module that provides LZFSE
e521764
and LZVN compression and decompression through the reference implementation
e521764
provided by Apple (https://github.com/lzfse/lzfse).}
e521764
e521764
%description %_description
e521764
e521764
%package -n     python3-%{pypi_name}
e521764
Summary:        %{summary}
e521764
e521764
%description -n python3-%{pypi_name} %_description
e521764
e521764
%prep
e521764
%autosetup -p1 -n pyliblzfse-%{version}
e521764
e521764
# remove bundled library
e521764
rm -r lzfse LICENSE.lzfse
e521764
e521764
%generate_buildrequires
e521764
%pyproject_buildrequires
e521764
e521764
%build
e521764
%pyproject_wheel
e521764
e521764
%install
e521764
%pyproject_install
e521764
%pyproject_save_files liblzfse
e521764
e521764
%check
e521764
%pyproject_check_import
e521764
e521764
%files -n python3-pyliblzfse -f %{pyproject_files}
e521764
%license COPYING
e521764
%doc AUTHORS README
e521764
e521764
%changelog
e521764
%autochangelog