%global gem_name rr Name: rubygem-%{gem_name} Version: 3.1.0 Release: 1%{?dist} Summary: RR is a test double framework with a terse syntax License: MIT URL: https://rr.github.io/rr Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/rr/rr.git && cd rr # git checkout v3.1.0 && tar czvf rr-3.1.0-tests.tgz test/ Source1: %{gem_name}-%{version}-tests.tgz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # The following are for running test suite BuildRequires: rubygem(test-unit) BuildRequires: rubygem(test-unit-rr) BuildArch: noarch %description RR is a test double framework that features a rich selection of double techniques and a terse syntax. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} tar xvzf %{SOURCE1} ruby test/run-test.rb popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Appraisals %{gem_instdir}/CHANGES.md %{gem_instdir}/CREDITS.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %doc %{gem_instdir}/doc %{gem_instdir}/gemfiles %{gem_instdir}/rr.gemspec %{gem_instdir}/spec %changelog * Thu Feb 02 2023 Pavel Valena - 3.1.0-1 - Update to rr 3.1.0. Resolves: rhbz#929418 * Fri Jan 20 2023 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Feb 13 2021 Mamoru TASAKA - 1.2.1-1 - Merge https://src.fedoraproject.org/rpms/rubygem-rr/pull-request/2 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.1.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.1.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri May 04 2018 Jun Aruga - 1.2.1-1 - Update to RR 1.2.1 * Fri Feb 09 2018 Fedora Release Engineering - 1.1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 18 2013 Guillermo Gómez - 1.1.2-2 - Test suited removed temporarily - New doc files added - CREDITS.md file added * Sun Aug 18 2013 Guillermo Gómez - 1.1.2-1 - Updated version 1.1.2 * Thu Aug 15 2013 Mamoru TASAKA - 1.0.5-3 - Don't kill VERSION file to make rr really work (bug 993490) * Sun Aug 04 2013 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Apr 21 2013 Guillermo Gómez - 1.0.5-1 - Updated version 1.0.5 - Automated tests included - rubygem(rspec) included as a build require * Sun Mar 24 2013 Guillermo Gómez - 1.0.4-7 - Removed unnecesary dependencies - Fixes for Ruby 2.0.0 packaging * Wed Feb 27 2013 Mamoru TASAKA - 1.0.4-8 - F-19: Rebuild for ruby 2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jul 22 2012 Guillermo Gómez - 1.0.4-6 - Removed unnecesary dependencies - Spec adjusted according new guidelines * Sat Jul 21 2012 Fedora Release Engineering - 1.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Feb 12 2012 Guillermo Gómez - 1.0.4-4 - Changelog entries fixed * Tue Feb 07 2012 Guillermo Gómez - 1.0.4-3 - Updated spec file for Ruby 1.9 guidelines - RSPec 1x tests disabled * Tue Jan 24 2012 Guillermo Gómez - 1.0.4-2 - Removed unused macro from spec file - Removed doc tag for benchmarks and spec file - Removed cached version of the gem - Fixed test suite files and test suite enabled at check section * Sat Jan 21 2012 Guillermo Gómez - 1.0.4-1 - Initial package