%bcond_with check %global cargo_install_lib 0 Name: patchpal Version: 0.2.0 Release: %autorelease Summary: AI assisted patch backporting application License: Apache-2.0 URL: https://gitlab.com/patchpal-ai/patchpal-gui Source: %{url}/-/archive/v%{version}/%{name}-v%{version}.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 %changelog * Mon Sep 15 2025 Jiri Benc - 0.2.0-1 - Package version 0.2.0