%global gem_name optimist %bcond_without check Name: rubygem-%{gem_name} Version: 3.0.1 Release: 4%{?dist} Summary: Commandline option parser for Ruby License: MIT URL: https://rubygems.org/gems/optimist Source: https://rubygems.org/downloads/%{gem_name}-%{version}.gem # https://github.com/ManageIQ/optimist/pull/140 Patch0: optimist-pr140-minitest-5_20-compat.patch BuildRequires: rubygems-devel %if %{with check} BuildRequires: rubygem(minitest) BuildRequires: rubygem(rake) BuildRequires: rubygem(chronic) %endif BuildArch: noarch %description %{summary}. %package doc Summary: Documentation for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc %{summary}. %prep %setup -q -n %{gem_name}-%{version} %patch -P0 -p1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ %if %{with check} %check # https://github.com/ManageIQ/optimist/issues/111 ruby -Ilib:test -e '$0="workaround"; Dir.glob "./test/**/*_test.rb", &method(:require)' %endif %files %license %{gem_instdir}/LICENSE.txt %dir %{gem_instdir}/ %{gem_libdir}/ %{gem_spec} %exclude %{gem_cache} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %exclude %{gem_instdir}/test/ %exclude %{gem_instdir}/Gemfile %exclude %{gem_instdir}/Rakefile %exclude %{gem_instdir}/%{gem_name}.gemspec %files doc %doc %{gem_docdir}/ %doc %{gem_instdir}/FAQ.txt %doc %{gem_instdir}/History.txt %doc %{gem_instdir}/README.md %changelog * Wed Sep 27 2023 Mamoru TASAKA - 3.0.1-4 - Apply the upstream PR to support minitest 5.19+ * Fri Jul 21 2023 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 3.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Oct 21 2022 František Dvořák - 3.0.1-1 - Update to 3.0.1 * Sat Jul 23 2022 Fedora Release Engineering - 3.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 3.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Apr 16 2020 Igor Raits - 3.0.0-1 - Initial package