%global gem_name mono_logger Name: rubygem-%{gem_name} Version: 1.1.0 Release: 16%{?dist} Summary: A lock-free logger compatible with Ruby 2.0 License: MIT URL: https://github.com/steveklabnik/mono_logger Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Minitest 5 support # https://github.com/steveklabnik/mono_logger/pull/3 Patch0: rubygem-mono_logger-1.1.0-minitest.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(minitest) BuildArch: noarch %description A lock-free logger compatible with Ruby 2.0. Ruby does not allow you to request a lock in a trap handler because that could deadlock, so Logger is not sufficient. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %patch0 -p1 %build # Create the gem as gem install only works on a gem file 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} # Logger::Application was dropped at Ruby 2.2. # https://github.com/steveklabnik/mono_logger/pull/6 sed -i '/^class TestLoggerApplication/,/^end$/ s/^/#/' test/mri_logger_test.rb # Fix the keyword arguments on Ruby 3.0. # https://github.com/steveklabnik/mono_logger/pull/8 sed -i '/Logger::LogDevice.new/ s/log, opt/log, **opt/' test/mri_logger_test.rb ruby -Ilib test/*_test.rb popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE.txt %exclude %{gem_instdir}/mono_logger.gemspec %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/test %changelog * Wed Mar 03 2021 Jun Aruga - 1.1.0-16 - Fix the keyword arguments on Ruby 3.0. Resolves: rhbz#1923367 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 15 2018 Jun Aruga - 1.1.0-9 - Fix FTBFS aligning a result of gem2rpm. * Fri Feb 09 2018 Fedora Release Engineering - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jul 11 2014 Ken Dreyer - 1.1.0-3 - Patch for Minitest 5 support (RHBZ #1107169) * Sun Jun 08 2014 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Nov 06 2013 Ken Dreyer - 1.1.0-1 - Initial package