%bcond_with check %global cargo_install_lib 0 Name: patchpal Version: 0.7.0 Release: %autorelease Summary: AI assisted cherry-picking and merge conflict resolution 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 cherry-picking and merge conflict resolution application that simplifies the process of applying fixes and features across different code bases. It helps with such tasks as backporting commits from newer software versions to older stable releases, recovering after git rebase, working with git stash, etc. It provides intelligent conflict resolution, automatic dependency detection, and advanced patch application algorithms to handle complex cherry-picking scenarios. %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 644 resources/com.redhat.patchpal-gui.desktop %{buildroot}%{_datadir}/applications/com.redhat.patchpal-gui.desktop install -D -m 644 resources/icons/48x48/apps/patchpal.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/patchpal.png install -D -m 644 resources/icons/256x256/apps/patchpal.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/patchpal.png install -D -m 644 resources/icons/512x512/apps/patchpal.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/patchpal.png install -D -m 755 tools/patchpal-rpm %{buildroot}%{_bindir}/patchpal-rpm %files %doc README.md %license LICENSE.md %{_bindir}/patchpal %{_datadir}/applications/com.redhat.patchpal-gui.desktop %{_datadir}/icons/hicolor/48x48/apps/patchpal.png %{_datadir}/icons/hicolor/256x256/apps/patchpal.png %{_datadir}/icons/hicolor/512x512/apps/patchpal.png %files -n patchpal-tools %{_bindir}/patchpal-rpm %changelog * Wed Feb 18 2026 Jiri Benc - 0.7.0-1 - Version 0.7.0 * Thu Jan 15 2026 Jiri Benc - 0.6.0-1 - Version 0.6.0 * Thu Nov 20 2025 Jiri Benc - 0.5.0-1 - Version 0.5.0 * Wed Nov 5 2025 Jiri Benc - 0.4.0-1 - Version 0.4.0 * 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