Update to 4.1.3
This commit is contained in:
parent
2cf80e7991
commit
6df8349fdc
@ -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
|
||||
|
||||
|
||||
BIN
spring-2.0.0.gem
BIN
spring-2.0.0.gem
Binary file not shown.
BIN
spring-4.1.3-tests.tar.gz
Normal file
BIN
spring-4.1.3-tests.tar.gz
Normal file
Binary file not shown.
BIN
spring-4.1.3.gem
Normal file
BIN
spring-4.1.3.gem
Normal file
Binary file not shown.
BIN
v2.0.0.tar.gz
BIN
v2.0.0.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user