%bcond_with check %global cargo_install_lib 0 Name: patchpal Version: 0.3.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. %package -n patchpal-tools Summary: patchpal extra tools Requires: %{name} = %{version}-%{release} %description -n patchpal-tools Provides extra tools that work with Patchpal. patchpal-rpm is a tool to help backport RPM commits. %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 install -D -m 755 tools/patchpal-dist-git-backporter.sh %{buildroot}%{_bindir}/patchpal-rpm %files %doc README.md %license LICENSE.md %{_bindir}/patchpal %files -n patchpal-tools %{_bindir}/patchpal-rpm %changelog * Tue Oct 21 2025 Eric Garver - 0.3.0-1 - Package patchpal-tools * Mon Sep 15 2025 Jiri Benc - 0.2.0-1 - Package version 0.2.0