%global gem_name factory_bot Name: rubygem-%{gem_name} Version: 6.2.1 Release: 4%{?dist} Summary: Framework and DSL for defining and using model instance factories License: MIT URL: https://github.com/thoughtbot/factory_bot Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone --no-checkout https://github.com/thoughtbot/factory_bot.git # git -C factory_bot archive -v -o factory_bot-6.2.1-specs.txz v6.2.1 spec/ Source1: %{gem_name}-%{version}-specs.txz # git clone --no-checkout https://github.com/thoughtbot/factory_bot.git # git -C factory_bot archive -v -o factory_bot-6.2.1-features.txz v6.2.1 features/ Source2: %{gem_name}-%{version}-features.txz # https://github.com/thoughtbot/factory_bot/pull/1561 # ruby3.2 changes did_you_mean behavior Patch0: %{name}-pr1561-ruby32-ruby32-did_you_mean-test.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec-its) BuildRequires: rubygem(activerecord) BuildRequires: rubygem(sqlite3) BuildRequires: %{_bindir}/cucumber BuildRequires: rubygem(aruba) BuildArch: noarch # Gem was renamed. # https://github.com/thoughtbot/factory_bot/commit/e083f4a904ae30d170872385d4be3b37d44276e5 Obsoletes: rubygem-factory_girl < 4.10.0 %description Framework and DSL for defining and using factories - less error-prone, more explicit, and all-around easier to work with than fixtures. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep # Unpack Source1 and Source2 %setup -q -n %{gem_name}-%{version} -b 1 -b 2 ( cd %{_builddir} mv %{gem_name}-%{version}/lib . %patch0 -p1 mv lib %{gem_name}-%{version} ) %build 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} # Symlinks don't work for this test suite cp -a %{_builddir}/spec . # We don't care about coverage. sed -i "/simplecov/ s/^/#/" spec/spec_helper.rb rspec -rfileutils -rspec_helper spec ln -s %{_builddir}/features . sed -i "/simplecov/ s/^/#/" features/support/env.rb cucumber popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CONTRIBUTING.md %doc %{gem_instdir}/GETTING_STARTED.md %doc %{gem_instdir}/NAME.md %doc %{gem_instdir}/NEWS.md %doc %{gem_instdir}/README.md %changelog * Fri Jan 20 2023 Fedora Release Engineering - 6.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 17 2023 Mamoru TASAKA - 6.2.1-3 - Backport upstream patch for ruby3.2 did_you_mean behavior change * Sat Jul 23 2022 Fedora Release Engineering - 6.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Mar 19 2022 Pavel Valena - 6.2.1-1 - Update to factory_bot 6.2.1. Resolves: rhbz#2065683 * Fri Jan 21 2022 Fedora Release Engineering - 6.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 26 2021 Jarek Prokop - 6.2.0-1 - Upgrade to rubygem-factory_bot 6.2.0. * Fri Jul 23 2021 Fedora Release Engineering - 4.10.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 4.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 4.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 4.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 4.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 4.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Aug 01 2018 Pavel Valena - 4.10.0-1 - Upgrade to factory_bot 4.10.0. - Renamed from factory_girl to factory_bot. * Sat Jul 14 2018 Fedora Release Engineering - 4.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 4.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jul 12 2017 Vít Ondruch - 4.8.0-1 - Update to factory_girl 4.8.0. * Sat Feb 11 2017 Fedora Release Engineering - 2.3.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.3.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.3.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 2.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 2.3.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 06 2013 Vít Ondruch - 2.3.2-6 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 2.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 2.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Feb 06 2012 Bohuslav Kabrda - 2.3.2-3 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 13 2011 Michal Fojtik - 2.3.2-1 - Version bump * Tue Jul 05 2011 Chris Lalancette - 1.3.2-5 - Fixes to build in rawhide * Wed Feb 09 2011 Fedora Release Engineering - 1.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Oct 14 2010 Michal Fojtik - 1.3.2-3 - Replaced path with path macro * Wed Oct 13 2010 Michal Fojtik - 1.3.2-2 - Rakefile fixing moved to a separate patch - Fixed unneeded Requires - Fixed directory ownership on doc subpackage - README and LICENSE moved back to main package * Sat Oct 02 2010 Michal Fojtik - 1.3.2-1 - Initial package