%bcond_without debug %bcond_without check %{!?crystal_arches: %global crystal_arches x86_64 aarch64} %global shard_name flaw Name: crystal-%{shard_name} Version: 0.1.0 Release: 2%{?dist} Summary: Static security analysis and flaw detection for Crystal License: MIT URL: https://github.com/kdairatchi/flaw 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 Conflicts: flaw %description Flaw is a fast static analysis tool for finding security flaws and vulnerabilities in Crystal source code. %prep %crystal_setup -n %{shard_name}-%{version} %build mkdir -p bin %crystal_build -o bin/%{shard_name} src/main.cr %install %crystal_install -b bin/%{shard_name} %check %if %{with check} %crystal_check %endif %files %license LICENSE %doc README.md %{_bindir}/%{shard_name} %changelog * Sat Oct 24 2026 Rénich Bon Ćirić - 0.1.0-2 - Drop unprefixed flaw subpackage and add Conflicts: flaw to avoid collision with Fedora's flaw game package * Sun Sep 06 2026 Rénich Bon Ćirić - 0.1.0-1 - Initial package for Fedora