%global gem_name spring Name: rubygem-%{gem_name} Version: 2.1.1 Release: 5%{?dist} Summary: Rails application preloader License: MIT URL: https://github.com/rails/spring Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/rails/spring.git && cd spring # git archive -v -o spring-2.1.1-tests.tar.gz v2.1.1 test/ Source1: %{gem_name}-%{version}-tests.tar.gz # Fir Ruby 3.0 compatibility. # https://github.com/rails/spring/pull/632 Patch0: spring-2.1.1-Use-keyword-argument-instead-of-Has-as-optional-argument.patch # Needed by `spring status` Requires: %{_bindir}/ps BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.4.0 BuildRequires: rubygem(bundler) BuildRequires: rubygem(activesupport) BuildArch: noarch # OkJson is allowed to be bundled: # https://fedorahosted.org/fpc/ticket/113 Provides: bundled(okjson) = 43 %description Spring is a Rails application preloader. It speeds up development by keeping your application running in the background so you don't need to boot it every time you run a test, rake task or migration. %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 pushd %{_builddir} %patch0 -p1 popd %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}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} ln -s %{_builddir}/test test # Run only unit test now, acceptance tests wants to compile gems extensions ruby -Ilib -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/spring %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Fri Jan 21 2022 Fedora Release Engineering - 2.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 11 2021 Vít Ondruch - 2.1.1-2 - Fix FTBFS due to Ruby 3.0. * Wed Sep 23 2020 Vít Ondruch - 2.1.1-1 - Update to Spring 2.1.1. Resolves: rhbz#1415432 * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 2.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 15 2016 Jun Aruga - 2.0.0-1 - Update to 2.0.0 * Thu Jul 28 2016 Jun Aruga - 1.7.2-1 - Update to 1.7.2 * Thu Feb 04 2016 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Oct 14 2015 Josef Stribny - 1.4.0-1 - Update to 1.4.0 * Thu Jun 18 2015 Fedora Release Engineering - 1.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 18 2015 Josef Stribny - 1.3.6-1 - Update to 1.3.6 * Wed Jul 09 2014 Josef Stribny - 1.1.3-1 - Update to 1.1.3 * Sun Jun 08 2014 Fedora Release Engineering - 1.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Mar 20 2014 Josef Stribny - 1.1.2-4 - Use macro for the ps bin path * Thu Mar 20 2014 Josef Stribny - 1.1.2-3 - Fix ps require * Tue Mar 18 2014 Josef Stribny - 1.1.2-2 - Add bundled okjson virtual provide - Add ps dependency - Exclude .gitignore from tests * Fri Mar 14 2014 Josef Stribny - 1.1.2-1 - Initial package