%global gem_name mixlib-config Name: rubygem-%{gem_name} Version: 3.0.27 Release: 1%{?dist} Summary: A class based configuration library # Retired from Fedora (orphaned); repackaged here so it stays available as a # dependency of the markdownlint (mdl) gem. Requires rubygem-tomlrb, which is # also packaged in this repo. rubygem(tomlrb) is pulled in as an auto-generated # Requires from the gemspec, so it is not hand-listed here. License: Apache-2.0 URL: https://github.com/chef/mixlib-config Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: ruby >= 2.5 BuildRequires: rubygems-devel BuildArch: noarch %description Mixlib::Config provides a class-based configuration DSL. Including it in a module or class gives a configuration object with defaults, nested contexts and loading from Ruby, JSON, YAML or TOML files. %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}/ # tomlrb is loaded lazily (only when reading TOML config), so the require smoke # test resolves without it; tomlrb is exercised at install/runtime instead. %check pushd .%{gem_instdir} ruby -Ilib -e "require 'mixlib/config'" popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %license %{gem_instdir}/NOTICE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Thu Jun 18 2026 Bahtiar `kalkin-` Gadimov - 3.0.27-1 - Initial package of mixlib-config 3.0.27 (Fedora-retired dep of markdownlint)