Compare commits
No commits in common. "a0d2fef696d8cdb97680cafd36701a11051df377" and "9c9602d7cf0c60a1af8743295c582720d6f1004c" have entirely different histories.
a0d2fef696
...
9c9602d7cf
Binary file not shown.
Binary file not shown.
BIN
bootsnap-1.3.2.gem
Normal file
BIN
bootsnap-1.3.2.gem
Normal file
Binary file not shown.
@ -1,19 +1,14 @@
|
|||||||
%global gem_name bootsnap
|
%global gem_name bootsnap
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.17.0
|
Version: 1.3.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Boot large ruby/rails apps faster
|
Summary: Boot large ruby/rails apps faster
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/Shopify/bootsnap
|
URL: https://github.com/Shopify/bootsnap
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
# git clone http://github.com/Shopify/bootsnap.git --no-checkout
|
Source1: https://github.com/Shopify/bootsnap/archive/v1.3.2.tar.gz
|
||||||
# cd bootsnap && git archive -v -o bootsnap-1.17.0-tests.txz v1.17.0 test/
|
|
||||||
Source1: %{gem_name}-%{version}-tests.txz
|
|
||||||
# https://github.com/Shopify/bootsnap/issues/431
|
|
||||||
# https://github.com/Shopify/bootsnap/commit/72202aab5e5b3602ece4e8748bcdeefe2d789ab5
|
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby-devel >= 2.0.0 rubygem(minitest)
|
BuildRequires: ruby(release) rubygems-devel ruby-devel >= 2.0.0 rubygem(minitest)
|
||||||
BuildRequires: rubygem(mocha) rubygem(msgpack) gcc
|
BuildRequires: rubygem(mocha) rubygem(msgpack) gcc
|
||||||
BuildRequires: rubygem(bundler)
|
|
||||||
ExcludeArch: armv7hl
|
ExcludeArch: armv7hl
|
||||||
%description
|
%description
|
||||||
Bootsnap is a library that plugs into Ruby, with optional support
|
Bootsnap is a library that plugs into Ruby, with optional support
|
||||||
@ -27,7 +22,7 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version} -b 1
|
%setup -q -n %{gem_name}-%{version}
|
||||||
sed -i -e "/^\s*\$CFLAGS / s/^/#/g" \
|
sed -i -e "/^\s*\$CFLAGS / s/^/#/g" \
|
||||||
ext/bootsnap/extconf.rb
|
ext/bootsnap/extconf.rb
|
||||||
|
|
||||||
@ -44,31 +39,27 @@ cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
|
|||||||
cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
||||||
rm -rf %{buildroot}%{gem_instdir}/ext/
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
|
||||||
cp -a .%{_bindir}/* \
|
|
||||||
%{buildroot}%{_bindir}/
|
|
||||||
|
|
||||||
find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ln -s %{_builddir}/test test
|
tar xzvf %{SOURCE1}
|
||||||
cat <<GEMFILE > Gemfile
|
ln -s %{gem_name}-%{version}/test test
|
||||||
gem "minitest"
|
sed -i -e "/require 'bundler/ s/^/#/g" \
|
||||||
gem "mocha"
|
-e "/require 'mocha\/minitest/ s/minitest/mini_test/g" \
|
||||||
gem "msgpack"
|
test/test_helper.rb
|
||||||
GEMFILE
|
sed -i -e "/^\s*assert stable.stable?,/ s/^/#/g" \
|
||||||
|
-e "/^\s*refute stable.volatile?,/ s/^/#/g" \
|
||||||
RUBYOPT="-I$(dirs +1)%{gem_extdir_mri}:$(dirs +1)%{gem_libdir}" \
|
-e "/^\s*assert bundler.stable?,/ s/^/#/g" \
|
||||||
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
-e "/^\s*Bundler/ s/^/#/g" \
|
||||||
|
test/load_path_cache/path_test.rb
|
||||||
|
ruby -Ilib:test:ext -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%{_bindir}/bootsnap
|
|
||||||
%{gem_extdir_mri}
|
%{gem_extdir_mri}
|
||||||
|
%exclude %{gem_instdir}/.*
|
||||||
%license %{gem_instdir}/LICENSE.txt
|
%license %{gem_instdir}/LICENSE.txt
|
||||||
%{gem_instdir}/exe
|
%exclude %{gem_instdir}/bootsnap.gemspec
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
@ -76,21 +67,17 @@ popd
|
|||||||
%files doc
|
%files doc
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
%doc %{gem_instdir}/CHANGELOG.md
|
%doc %{gem_instdir}/CHANGELOG.md
|
||||||
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%doc %{gem_instdir}/README.jp.md
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/dev.yml
|
||||||
|
%{gem_instdir}/shipit.rubygems.yml
|
||||||
|
%{gem_instdir}/bin
|
||||||
|
%doc %{gem_instdir}/CODE_OF_CONDUCT.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Nov 14 2023 xu_ping <707078654@qq.com> - 1.17.0-1
|
|
||||||
- Update to 1.17.0
|
|
||||||
|
|
||||||
* Tue Aug 01 2023 yaoxin <yao_xin001@hoperun.com> - 1.15.0-1
|
|
||||||
- Update to 1.15.0
|
|
||||||
|
|
||||||
* Tue Jul 05 2022 xu_ping <xuping33@h-partners.com> - 1.3.2-4
|
|
||||||
- fixed mocha/minitest dependency issue due to rubygem-mocha upgrade
|
|
||||||
|
|
||||||
* Thu Jan 27 2022 wulei <wulei@huawei.com> - 1.3.2-3
|
|
||||||
- fix no implicit conversion of String into Integer
|
|
||||||
|
|
||||||
* Tue Sep 8 2020 yanan li <liyanan032@huawei.com> - 1.3.2-2
|
* Tue Sep 8 2020 yanan li <liyanan032@huawei.com> - 1.3.2-2
|
||||||
- fix build fail
|
- fix build fail
|
||||||
|
|
||||||
|
|||||||
BIN
v1.3.2.tar.gz
Normal file
BIN
v1.3.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user