%bcond_without debug %bcond_without check %{!?crystal_arches: %global crystal_arches x86_64 aarch64} %global shard_name ameba Name: crystal-%{shard_name} Version: 1.7.0 Release: 1%{?dist} Summary: Static code analysis tool and linter for Crystal License: MIT URL: https://github.com/crystal-ameba/ameba Source0: %{url}/archive/v%{version}/%{shard_name}-%{version}.tar.gz ExclusiveArch: %{crystal_arches} BuildRequires: crystal-rpm-macros BuildRequires: crystal >= 1.21.0 BuildRequires: shards BuildRequires: libyaml-devel BuildRequires: pcre2-devel %description Ameba is a static code analysis tool for the Crystal programming language. It enforces style guidelines, catches common errors, and suggests improvements. %package -n %{shard_name} Summary: %{summary} Provides: %{name} = %{version}-%{release} %description -n %{shard_name} %{description} %prep %crystal_setup -n %{shard_name}-%{version} %build mkdir -p bin %crystal_build -o bin/%{shard_name} src/cli.cr %install %crystal_install -b bin/%{shard_name} %check %if %{with check} %crystal_check %endif %files -n %{shard_name} %license LICENSE %doc README.md %{_bindir}/%{shard_name} %changelog * Sun Sep 06 2026 Rénich Bon Ćirić - 1.7.0-1 - Initial package for Fedora