File klp-build.spec of Package failed_klp-build
Name: klp-build
Version: 0~20250108.8e6c7f6
Release: 1.1
Summary: KLP build tool
License: MIT
URL: https://example.invalid/klp-build
Source0: klp-build-0~20250108.8e6c7f6.tar.xz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
%description
klp-build is a helper tool used in kernel live patch packaging.
%prep
# unpack the provided tarball; the source directory name is known from the tarball
%setup -q -n klp-build-0~20250108.8e6c7f6
%build
# Build using the installed python3
%python3_build
%install
rm -rf %{buildroot}
# Use setuptools install via python3 to match upstream packaging in the build logs
%python3_install
%files
%defattr(-,root,root,-)
/usr/bin/klp-build
/usr/share/man/man1/klp-build.1*
# Install python packages and egg-info in site-packages. Use python3* wildcard to
# avoid pinning to a specific python minor version (py3.11 vs py3.13 mismatches).
/usr/lib/python3*/site-packages/klpbuild*
/usr/lib/python3*/site-packages/klp_build-*.egg-info
%doc README.md
%license LICENSE