!3 Update to 4.1.3

From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-01-18 01:03:31 +00:00 committed by Gitee
commit f7dff03a39
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 12 additions and 13 deletions

View File

@ -1,13 +1,14 @@
%bcond_with bootstrap
%global gem_name spring
Name: rubygem-%{gem_name}
Version: 2.0.0
Release: 2
Version: 4.1.3
Release: 1
Summary: Rails application preloader
License: MIT
URL: https://github.com/rails/spring
Source0: https://rubygems.org/gems/spring-%{version}.gem
Source1: https://github.com/rails/spring/archive/v%{version}.tar.gz
# git clone https://github.com/rails/spring.git && cd spring
# git archive -v -o spring-4.1.3-tests.tar.gz v4.1.3 test/
Source1: %{gem_name}-%{version}-tests.tar.gz
Requires: ruby(release) ruby(rubygems) %{_bindir}/ps
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) rubygem(bundler)
BuildRequires: rubygem(activesupport)
@ -28,12 +29,10 @@ Obsoletes: %{name}-doc < %{version}-%{release}
Documentation for %{name}
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%setup -q -n %{gem_name}-%{version} -b 1
%build
gem build %{gem_name}.gemspec
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
@ -45,14 +44,11 @@ cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%if %{with bootstrap}
%check
pushd .%{gem_instdir}
tar xf %{SOURCE1}
cd %{gem_name}-%{version}
ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
ln -s %{_builddir}/test test
ruby -Ilib -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
popd
%endif
%files
%dir %{gem_instdir}
@ -68,6 +64,9 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Wed Jan 17 2024 liyanan <liyanan61@h-partners.com> - 4.1.3-1
- Update to 4.1.3
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 2.0.0-2
- fix build fail

Binary file not shown.

BIN
spring-4.1.3-tests.tar.gz Normal file

Binary file not shown.

BIN
spring-4.1.3.gem Normal file

Binary file not shown.

Binary file not shown.