%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 . echo -e '\n[profile.rpm]\ninherits = "release"' >> Cargo.toml %build %cargo_build %install install -D -m 755 target/rpm/patchpal %{buildroot}%{_bindir}/patchpal %files %doc README.md %license LICENSE.md %{_bindir}/patchpal