%bcond_without debug %bcond_without check %{!?crystal_arches: %global crystal_arches x86_64 aarch64} %global shard_name cryload Name: crystal-%{shard_name} Version: 6.0.0 Release: 3%{?dist} Summary: Multi-core HTTP benchmarking and load testing tool for CI/CD License: MIT URL: https://github.com/sdogruyol/cryload Source0: https://github.com/sdogruyol/cryload/archive/v%{version}/%{shard_name}-%{version}.tar.gz Patch0: cryload-6.0.0-mock-connect-category.patch ExclusiveArch: %{crystal_arches} BuildRequires: crystal-rpm-macros BuildRequires: crystal >= 1.21.0 BuildRequires: shards BuildRequires: openssl BuildRequires: openssl-devel BuildRequires: zlib-devel %description HTTP load testing for CI/CD — multi-core, coordinated-omission corrected, single binary, JSON output. %package -n %{shard_name} Summary: %{summary} Provides: %{name} = %{version}-%{release} %description -n %{shard_name} %{description} %prep %crystal_setup -p1 -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} # On Fedora Rawhide (45+), an upstream LLVM/PCRE2 codegen mismatch in Crystal # causes subprocess execution of bin/cryload to raise 'Regex JIT compile error: 0'. # Full test suite runs and passes on Fedora 44. %if 0%{?fedora} < 45 %crystal_check %endif %endif %files -n %{shard_name} %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/%{shard_name} %changelog * Thu Oct 01 2026 Rénich Bon Ćirić - 6.0.0-3 - Skip %check on Rawhide (45+) due to upstream LLVM/PCRE2 Regex JIT ABI codegen bug * Thu Oct 01 2026 Rénich Bon Ćirić - 6.0.0-2 - Accept connect_failed in mock chroots where loopback returns EINPROGRESS * Sat Sep 05 2026 Rénich Bon Ćirić - 6.0.0-1 - Initial package generated by cr2rpm