## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # SPDX-License-Identifier: MIT OR Apache-2.0 # To update the vendor tarball and manifest: # spectool -g sashiko.spec # ./generate-vendor.sh sashiko-%%{version}.tar.gz %global crate sashiko %global forgeurl https://github.com/sashiko-dev/sashiko %global version 0.9.4 %global tag v.%{version} %forgemeta Name: sashiko Version: %{version} Release: %autorelease Summary: Sashiko is a self-contained, agentic code review system License: Apache-2.0 URL: %{forgeurl} Source0: %{forgesource} Source1: %{name}-%{tag}-vendor.tar.xz # Pre-generated vendor manifest (cargo2rpm OOMs on this dependency tree) Source2: cargo-vendor.txt Patch0: 0001-docs-examples-Add-EnMaaS-configuration.patch Patch1: 0002-main-Use-EnMaaS-as-default-config.patch # Exclude vendored sources from brp-mangle-shebangs (Rust #![...] attributes # look like shebangs to the checker) %global __brp_mangle_shebangs_exclude_from ^%{_usrsrc}/debug/.*$ # Use fast zstd compression to avoid COPR timeout on large debuginfo %global _binary_payload w3.zstdio BuildRequires: cargo-rpm-macros >= 24 BuildRequires: rust >= 1.85 %description Sashiko is a self-contained, agentic code review system built primarily for the Linux kernel, with dedicated profiles for GCC, QEMU, Zephyr RTOS, and Sashiko itself. It combines project-specific prompts, source-verified code notes, and a multi-stage verification protocol to review proposed changes locally from your git checkout or automatically from mailing lists and git forges. %prep %forgeautosetup -p1 tar xf %{SOURCE1} %cargo_prep -v vendor %build %cargo_build -a cp %{SOURCE2} . %install for bin in sashiko sashiko-cli; do install -Dpm 0755 target/release/$bin %{buildroot}%{_bindir}/$bin done %files %license LICENSE %license cargo-vendor.txt %doc README.md docs/ %{_bindir}/sashiko %{_bindir}/sashiko-cli %changelog ## START: Generated by rpmautospec * Thu Nov 19 2026 Ivan Vecera - 0.9.4-1 - Update to 0.9.4 * Thu Nov 12 2026 Ivan Vecera - 0.9.3-4 - Adjust EnMaaS configuration - Fix context window size - Limit concurrency to 1 * Thu Nov 12 2026 Ivan Vecera - 0.9.3-3 - Build all features * Thu Nov 12 2026 Ivan Vecera - 0.9.3-2 - Add configuration for EnMaaS and use it as default * Thu Nov 12 2026 Ivan Vecera - 0.9.3-1 - Add sashiko package for Fedora COPR ## END: Generated by rpmautospec