%global gem_name flexmock Summary: Mock object library for ruby Name: rubygem-%{gem_name} Version: 2.3.8 Release: 4%{?dist} License: MIT URL: https://github.com/doudou/flexmock Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{gem_name}-v%{version}-test-missing-files.tar.gz # Source1 is created fron Source2 Source2: flexmock-create-missing-test-files.sh # https://bugs.ruby-lang.org/issues/14230 # e.g. https://github.com/deivid-rodriguez/pry-byebug/pull/246 # Use binding.source_location Patch1: rubygem-flexmock-2.3.6-testsuite-binding-source.patch # ruby 3.0 splits argument / keywords Patch2: rubygem-flexmock-2.3.6-accept-keywords.patch # relax error messages on test suite on ruby 3.0 Patch3: rubygem-flexmock-2.3.6-workaround-relax-error-message.patch Requires: ruby(release) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(minitest) >= 5 BuildRequires: rubygem(rspec) >= 3 Requires: ruby(rubygems) Provides: rubygem(%{gem_name}) = %{version}-%{release} BuildArch: noarch %description FlexMock is a simple, but flexible, mock object library for Ruby unit testing. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -a 1 mv ../%{gem_name}-%{version}.gemspec . ( cd flexmock %patch -P1 -p1 %patch -P3 -p1 ) %patch -P2 -p1 find . -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d' find . -name \*.gem -or -name \*.rb -or -name \*.rdoc | xargs chmod 0644 %build gem build %{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ pushd %{buildroot}%{gem_instdir} rm -rf \ .autotest .gitignore .togglerc .travis.yml .yardopts \ .github \ Gemfile \ Rakefile \ flexmock.blurb \ flexmock.gemspec \ install.rb popd %check cp -a flexmock/test .%{gem_instdir} pushd .%{gem_instdir} export RUBYOPT=-W:deprecated export RUBYLIB=$(pwd)/lib:$(pwd):$(pwd)/test ruby \ -e 'Dir.glob("test/*_test.rb").each {|f| require f}' rspec test/rspec_integration/ popd %files %dir %{gem_instdir} %doc %{gem_instdir}/[A-Z]* %{gem_libdir} %{gem_instdir}/rakelib/ %exclude %{gem_cache} %{gem_spec} %files doc %{gem_instdir}/todo.txt %{gem_instdir}/doc/ %{gem_docdir}/ %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.3.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Aug 14 2023 Mamoru TASAKA - 2.3.8-1 - 2.3.8 * Tue Aug 08 2023 Mamoru TASAKA - 2.3.6-15 - Handle MiniTest 5.19+ * Fri Jul 21 2023 Fedora Release Engineering - 2.3.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.3.6-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2.3.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.3.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.3.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.3.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 24 2021 Mamoru TASAKA - 2.3.6-8 - Patch to support ruby 3.0 - Use binding.source_location for test - Properly accept argument and keywords - Relax error message on test a bit * Wed Jul 29 2020 Fedora Release Engineering - 2.3.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 2.3.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.3.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.3.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.3.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Oct 6 2017 Mamoru TASAKA - 2.3.6-1 - 2.3.6 * Thu Jul 27 2017 Fedora Release Engineering - 2.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Mar 17 2017 Mamoru TASAKA - 2.3.5-1 - 2.3.5 * Sat Feb 11 2017 Fedora Release Engineering - 2.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 1 2016 Mamoru TASAKA - 2.3.4-1 - 2.3.4 * Mon Oct 17 2016 Mamoru TASAKA - 2.3.0-1 - 2.3.0 * Fri Jul 15 2016 Mamoru TASAKA - 2.2.1-1 - 2.2.1 * Thu May 5 2016 Mamoru TASAKA - 2.1.0-1 - 2.1.0 * Wed Apr 13 2016 Mamoru TASAKA - 2.0.5-1 - 2.0.5 * Thu Feb 04 2016 Fedora Release Engineering - 2.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Dec 29 2015 Mamoru TASAKA - 2.0.4-1 - 2.0.4 * Wed Dec 16 2015 Mamoru TASAKA - 2.0.3-1 - 2.0.3 * Thu Sep 24 2015 Mamoru TASAKA - 2.0.2-1 - 2.0.2 * Thu Sep 24 2015 Mamoru TASAKA - 2.0.1-1 - 2.0.1 * Thu Sep 24 2015 Mamoru TASAKA - 2.0.0-1 - 2.0.0 * Fri Aug 14 2015 Mamoru TASAKA - 1.3.3-5 - Fix two failing tests, and omit one test currently * Thu Jun 18 2015 Fedora Release Engineering - 1.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 19 2014 Mamoru TASAKA - 1.3.3-3 - Force to use minitest ver4 for now * Sun Jun 08 2014 Fedora Release Engineering - 1.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun May 4 2014 Mamoru TASAKA - 1.3.3-1 - 1.3.3 * Wed Aug 6 2013 Mamoru TASAKA - 1.3.2-1 - 1.3.2 * Sun Aug 04 2013 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Apr 3 2013 Mamoru TASAKA - 1.3.1-1 - 1.3.1 * Wed Feb 27 2013 Mamoru TASAKA - 1.3.0-3 - Macro / BR / Requires cleanup * Wed Feb 27 2013 Josef Stribny - 1.3.0-2 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Mon Feb 4 2013 Mamoru TASAKA - 1.3.0-1 - 1.3.0 * Tue Jan 1 2013 Mamoru TASAKA - 1.2.0-1 - 1.2.0 * Sun Nov 4 2012 Mamoru Tasaka - 1.1.0-1 - 1.1.0 * Thu Oct 11 2012 Mamoru Tasaka - 1.0.3-1 - 1.0.3 * Fri Sep 14 2012 Mamoru Tasaka - 1.0.2-1 - 1.0.2 * Sat Jul 21 2012 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jan 29 2012 Mamoru Tasaka - 0.9.0-3 - F-17: rebuild against ruby 1.9 * Sat Jan 14 2012 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 28 2011 Mamoru Tasaka - 0.9.0-1 - 0.9.0 * Wed Feb 09 2011 Fedora Release Engineering - 0.8.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Feb 2 2011 Mamoru Tasaka - 0.8.11-2 - Fix typo Provides on main package (bug 674413) * Sun Oct 17 2010 Mamoru Tasaka - 0.8.11-1 - 0.8.11 * Fri Jul 23 2010 Mamoru Tasaka - 0.8.7-1 - 0.8.7 * Thu Jul 30 2009 Mamoru Tasaka - 0.8.6-1 - Switch to gem, repackage * Sun Jul 26 2009 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Nov 08 2007 Paul Nasrat - 0.7.1-3 - Fix repoid * Wed Nov 07 2007 Paul Nasrat - 0.7.1-2 - Spec cleanups in response to review - Fix license - strip out shebangs * Sun Sep 09 2007 Paul Nasrat - 0.7.1-1 - Initial vesion