%bcond_with check %global cargo_install_lib 0 Name: patchpal Version: 0.1.9 Release: %autorelease Summary: AI assisted patch backporting application License: Apache-2.0 URL: https://gitlab.com/patchpal-ai/patchpal-gui Source: %{url}/-/archive/0b2ac51e93cc80e65b8f69fabc287b5c5cc2148b/patchpal-gui-0b2ac51e93cc80e65b8f69fabc287b5c5cc2148b.tar.bz2 Source1: Cargo.lock BuildRequires: cargo-rpm-macros >= 26 BuildRequires: cargo BuildRequires: clang-devel BuildRequires: gtk4-devel %description Patchpal is an AI assisted patch backporting application. It's currently focused on the RHEL kernel and provides a GUI interface for managing patch conflicts and backporting. %prep %autosetup -C cp %{_sourcedir}/Cargo.lock . %build %cargo_build %cargo_license_summary %{cargo_license} > LICENSE.dependencies %cargo_vendor_manifest %install %cargo_install rm %{buildroot}/%{_bindir}/benchmark_apply rm %{buildroot}/%{_bindir}/extractor %files %doc README.md %license LICENSE.md %license LICENSE.dependencies %license cargo-vendor.txt %{_bindir}/patchpal