%global gem_name tomlrb Name: rubygem-%{gem_name} Version: 2.0.4 Release: 1%{?dist} Summary: A racc based TOML parser # Not in Fedora; repackaged here as the runtime dependency of # rubygem-mixlib-config (which the markdownlint/mdl gem needs). License: MIT URL: https://github.com/fbernier/tomlrb Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # tomlrb ships a pre-generated racc parser that requires the racc runtime # (racc/parser) at load time, but its gemspec does not declare racc as a # dependency (it assumes the Ruby default gem). Declare it explicitly so the # package is loadable in a minimal environment. Requires: rubygem(racc) BuildRequires: ruby(release) BuildRequires: ruby >= 2.0 BuildRequires: rubygems-devel BuildRequires: rubygem(racc) BuildArch: noarch %description Tomlrb is a racc-based parser for the TOML configuration file format. It maps a TOML document to plain Ruby hashes, arrays and scalars. %package doc Summary: Documentation for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc Documentation (rdoc/ri) for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} ruby -Ilib -e "require 'tomlrb'" popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Thu Jun 18 2026 Bahtiar `kalkin-` Gadimov - 2.0.4-1 - Initial package of tomlrb 2.0.4 (dep of rubygem-mixlib-config)