%bcond_without debug %bcond_without check %{!?crystal_arches: %global crystal_arches x86_64 aarch64} %global shard_name mysql Name: crystal-mysql Version: 0.17.0 Release: 1%{?dist} Summary: MySQL driver implemented natively in Crystal License: MIT URL: https://github.com/crystal-lang/crystal-mysql Source0: https://github.com/crystal-lang/crystal-mysql/archive/v%{version}/%{name}-%{version}.tar.gz ExclusiveArch: %{crystal_arches} noarch BuildArch: noarch BuildRequires: crystal-rpm-macros BuildRequires: crystal >= 1.0.0 BuildRequires: crystal < 2.0.0 BuildRequires: shards BuildRequires: crystal-shard(db) BuildRequires: openssl-devel BuildRequires: zlib-devel Provides: crystal-shard(%{shard_name}) = %{version} %description MySQL driver implemented natively in Crystal, without relying on external libraries. This package provides the %{shard_name} library for Crystal. %prep %crystal_setup -n %{name}-%{version} %build # Library package; sources are installed for dependent shards and applications %install %crystal_install_lib %check %if %{with check} # Note: Upstream integration specs require a running MySQL 5.7 daemon and fail against # MariaDB due to wire protocol differences in literal queries and system tables. # Run standalone unit test suite for connection options, URI parsing, and SSL options. %crystal_check spec/connection_options_spec.cr %endif %files %license LICENSE %doc CHANGELOG.md README.md %crystal_files %changelog * Sat Sep 05 2026 Rénich Bon Ćirić - 0.17.0-1 - Initial package generated by cr2rpm