# Generated from rspec-rails-2.6.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name rspec-rails # Circular dependency with rubygem-ammeter. %bcond_with bootstrap Name: rubygem-%{gem_name} Version: 7.1.0 Release: 1%{?dist} Summary: RSpec for Rails License: MIT URL: https://github.com/rspec/rspec-rails Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/rspec/rspec-rails.git && cd rspec-rails # git archive -v -o rspec-rails-7.1.0-tests.tar.gz v7.1.0 features/ spec/ Source1: %{gem_name}-%{version}-tests.tar.gz # Fix Ruby 3.4 test errors # https://github.com/rspec/rspec-rails/pull/2821 Patch0: rubygem-rspec-rails-7.1.0-Fixes-for-Ruby-3.4-new-Hash-inspect-syntax.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby %if %{without bootstrap} #BuildRequires: rubygem(cucumber) BuildRequires: rubygem(actionmailbox) BuildRequires: rubygem(actionmailer) BuildRequires: rubygem(actioncable) BuildRequires: rubygem(activerecord) BuildRequires: rubygem(ammeter) BuildRequires: rubygem(bundler) BuildRequires: rubygem(capybara) BuildRequires: rubygem(railties) BuildRequires: rubygem(rspec) BuildRequires: rubygem(sqlite3) BuildRequires: rubygem(selenium-webdriver) %endif BuildArch: noarch %description rspec-rails integrates the Rails testing helpers into RSpec. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b 1 ( cd %{builddir} %patch 0 -p1 ) %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}/ %if %{without bootstrap} %check pushd .%{gem_instdir} cp -a %{_builddir}/features features cp -a %{_builddir}/spec spec # Bundler is used to execute two tests, so give him Gemfile. echo "gem 'rspec', :require => false" > Gemfile # I have no idea why this is passing upstream, since when RSpec are not supposed # to be loaded, then RSpec::Support can't exist. sed -i '/uninitialized constant RSpec::Support/ s/::Support//' spec/sanity_check_spec.rb # Avoid git dependency. This is not funcitonal test anyway, just style check. sed -i 's/`git ls-files -z`/""/' spec/rspec/rails_spec.rb rspec -rspec_helper -rbundler spec # Needs to generate a rails test application or ship pregenerated one (see # generate:app rake task). This would be quite fragile. # cucumber popd %endif %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE.md %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/Capybara.md %doc %{gem_instdir}/Changelog.md %doc %{gem_instdir}/README.md %changelog * Mon Dec 16 2024 Vít Ondruch - 7.1.0-1 - Update to rspec-rails 7.1.0. Resolves: rhbz#2250833 - Fix Ruby 3.4 test errors. * Fri Jul 19 2024 Fedora Release Engineering - 6.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat May 04 2024 Mamoru TASAKA - 6.0.3-3 - Backport upstream patch for removing OpenStruct usage due to json 2.7.2 change * Fri Jan 26 2024 Fedora Release Engineering - 6.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Aug 22 2023 Vít Ondruch - 6.0.3-1 - Update to rspec-rails 6.0.3. Resolves: rhbz#2078184 * Fri Jul 21 2023 Fedora Release Engineering - 5.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 5.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 5.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Mar 07 2022 Vít Ondruch - 5.1.1-1 - Update to rspec-rails 5.1.1. Resolves: rhbz#1936061 * Fri Jan 21 2022 Fedora Release Engineering - 4.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 4.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Feb 17 2021 Vít Ondruch - 4.0.2-1 - Update to rspec-rails 4.0.2. Resolves: rhbz#1910985 Resolves: rhbz#1800031 * Wed Jan 27 2021 Fedora Release Engineering - 4.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 27 2020 Vít Ondruch - 4.0.1-3 - Fix FTBFS due to rspec-core 3.9.3+. * Wed Sep 23 2020 Vít Ondruch - 4.0.1-2 - Tests running against Ruby on Rails 6+ needs rubygem(selenium-webdriver). - Enable Action{Cable,Mailbox} test, since we have Ruby on Rails 6+ available. * Wed Aug 12 2020 Vít Ondruch - 4.0.1-1 - Update to rspec-rails 4.0.1. Resolves: rhbz#1812268 Resolves: rhbz#1863732 * Sat Aug 01 2020 Fedora Release Engineering - 3.9.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 3.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 10 2019 Mamoru TASAKA - 3.9.0-1 - 3.9.0 * Fri Jul 26 2019 Fedora Release Engineering - 3.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 11 2019 Vít Ondruch - 3.8.2-1 - Update to rspec-rails 3.8.2. * Sat Feb 02 2019 Fedora Release Engineering - 3.8.1-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Dec 13 2018 Mamoru TASAKA - 3.8.1-1 - 3.8.1 - Once disable tests * Sat Jul 14 2018 Fedora Release Engineering - 3.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 3.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 13 2017 Mamoru TASAKA - 3.7.1-1 - Enable test suite again * Mon Nov 13 2017 Mamoru TASAKA - 3.7.1-0.1 - 3.7.1 - Once disable tests * Thu Jul 27 2017 Fedora Release Engineering - 3.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun May 7 2017 Mamoru TASAKA - 3.6.0-2 - Enable test suite again * Sun May 7 2017 Mamoru TASAKA - 3.6.0-1 - 3.6.0 - Once disable tests * Sat Feb 11 2017 Fedora Release Engineering - 3.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Sep 01 2016 Vít Ondruch - 3.5.2-1 - Update to rspec-rails 3.5.2. * Mon Jul 25 2016 Vít Ondruch - 3.5.1-2 - Re-enable test suite. * Sun Jul 24 2016 Mamoru TASAKA - 3.5.1-1 - Update to rspec-rails 3.5.1. - Once disable tests * Thu Feb 04 2016 Fedora Release Engineering - 3.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Dec 08 2015 Vít Ondruch - 3.4.0-2 - Re-enable tests. * Tue Dec 08 2015 Mamoru TASAKA - 3.4.0-1 - Update to rspec-rails 3.4.0. - Once disable tests * Tue Aug 04 2015 Vít Ondruch - 3.3.3-1 - Update to rspec-rails 3.3.3. * Thu Jun 18 2015 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Feb 25 2015 Vít Ondruch - 3.2.1-1 - Update to rspec-rails 3.2.1. * Sun Jun 08 2014 Fedora Release Engineering - 2.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 12 2014 Vít Ondruch - 2.14.1-1 - Update to rspec-rails 2.14.1. * Fri Aug 16 2013 Mamoru TASAKA - 2.14.0-2 - Enable test suite again * Fri Aug 16 2013 Mamoru TASAKA - 2.14.0-1 - Update to rspec-rails 2.14.0 - Still tests is disabled for now * Mon Aug 12 2013 Josef Stribny - 2.13.0-4 - Relax Rails deps and disable tests for now * Sun Aug 04 2013 Fedora Release Engineering - 2.13.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 28 2013 Mamoru TASAKA - 2.13.0-2 - Enable test suite again * Thu Mar 28 2013 Mamoru TASAKA - 2.13.0-1 - Update to rspec-rails 2.13.0 * Mon Mar 11 2013 Vít Ondruch - 2.12.0-4 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 2.12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jan 2 2013 Mamoru TASAKA - 2.12.0-2 - Enable test suite again * Wed Jan 2 2013 Mamoru TASAKA - 2.12.0-1 - Update to rspec-rails 2.12.0 * Tue Oct 16 2012 Vít Ondruch - 2.11.4-1 - Update to rspec-rails 2.11.4. * Sat Oct 13 2012 Vít Ondruch - 2.11.0-1 - Update to rspec-rails 2.11.0. * Sat Jul 21 2012 Fedora Release Engineering - 2.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Feb 06 2012 Vít Ondruch - 2.8.1-2 - Tests enabled. * Thu Feb 02 2012 Vít Ondruch - 2.8.1-1 - Rebuilt for Ruby 1.9.3. - Update to rspec-rails 2.8.1. * Sat Jan 14 2012 Fedora Release Engineering - 2.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Oct 20 2011 Vít Ondruch - 2.6.1-3 - Fixed .gemspec to contain correct dependencies (rhbz#747405). * Tue Aug 23 2011 Vít Ondruch - 2.6.1-2 - Rebuilt due to the trailing slash bug of rpm-4.9.1 * Tue Jun 07 2011 Vít Ondruch - 2.6.1-1 - Updated to the rspec-rails 2.6.1 * Mon May 23 2011 Vít Ondruch - 2.6.0-1 - Initial package