%global gem_name docile Summary: Docile keeps your Ruby DSLs tame and well-behaved Name: rubygem-%{gem_name} Version: 1.1.5 Release: 22%{?dist} License: MIT URL: https://ms-ati.github.com/docile/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # https://github.com/ms-ati/docile/pull/106 Patch0: docile-pr106-ruby33-NomethodError-msg.patch # From https://github.com/ms-ati/docile/pull/108 # Extract patch to support ruby34 error msg syntax change Patch1: docile-pr108-support-ruby34-error-msg-syntax.patch %if 0%{?fc19} || 0%{?fc20} || 0%{?el7} Requires: ruby(release) Requires: ruby(rubygems) %endif BuildRequires: ruby(release) BuildRequires: rubygems-devel # coveralls is now optional for tests # Add back when coveralls is in Fedora #BuildRequires: rubygem(coveralls) BuildRequires: rubygem(mime-types) BuildRequires: rubygem(rake) BuildRequires: rubygem(redcarpet) BuildRequires: rubygem(rspec) BuildRequires: rubygem(yard) BuildArch: noarch %if 0%{?fc19} || 0%{?fc20} || 0%{?el7} Provides: rubygem(%{gem_name}) = %{version} %endif %description Docile turns any Ruby object into a DSL. Especially useful with the Builder pattern. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} %patch -P0 -p1 %patch -P1 -p1 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ # Remove build leftovers. rm -rf %{buildroot}%{gem_instdir}/{.coveralls.yml,.gitignore,.rspec,.ruby-gemset,.ruby-version,.travis.yml,.yard*} %check rspec -Ilib spec %files %doc %{gem_instdir}/LICENSE %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %exclude %{gem_instdir}/Gemfile %exclude %{gem_instdir}/docile.gemspec %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/HISTORY.md %doc %{gem_instdir}/README.md %{gem_instdir}/on_what.rb %{gem_instdir}/Rakefile %{gem_instdir}/spec %changelog * Sat Nov 23 2024 Mamoru TASAKA - 1.1.5-22 - Extract patch from upstream to support ruby34 error msg syntax change * Fri Jul 19 2024 Fedora Release Engineering - 1.1.5-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 1.1.5-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.1.5-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Oct 6 2023 Mamoru TASAKA - 1.1.5-18 - Apply the upstream PR for testsuite with ruby3.3 error message format * Fri Jul 21 2023 Fedora Release Engineering - 1.1.5-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.1.5-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.1.5-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.1.5-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.1.5-13 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.1.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.1.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.1.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.1.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Oct 27 2014 Troy Dawson - 1.1.5-1 - Updated to latest release * Fri Jun 13 2014 Troy Dawson - 1.1.4-1 - Update to version 1.1.4 - Tests now run without coveralls * Wed Apr 02 2014 Troy Dawson - 1.1.3-1 - Initial package