!9 [sync] PR-7: Upgrade to 6.1.4.1
From: @openeuler-sync-bot Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
30f6f36b17
Binary file not shown.
BIN
activejob-6.1.4.1-tests.txz
Normal file
BIN
activejob-6.1.4.1-tests.txz
Normal file
Binary file not shown.
BIN
activejob-6.1.4.1.gem
Normal file
BIN
activejob-6.1.4.1.gem
Normal file
Binary file not shown.
BIN
rails-6.1.4.1-tools.txz
Normal file
BIN
rails-6.1.4.1-tools.txz
Normal file
Binary file not shown.
@ -1,27 +1,41 @@
|
|||||||
%global gem_name activejob
|
%global gem_name activejob
|
||||||
Name: rubygem-%{gem_name}
|
|
||||||
Version: 5.2.4.4
|
Name: rubygem-%{gem_name}
|
||||||
Release: 1
|
Version: 6.1.4.1
|
||||||
Summary: Job framework with pluggable queues
|
Release: 1
|
||||||
License: MIT
|
Summary: Job framework with pluggable queues
|
||||||
URL: http://rubyonrails.org
|
License: MIT
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
URL: http://rubyonrails.org
|
||||||
Source1: https://github.com/rails/rails/archive/v5.2.4.4.tar.gz
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 rubygem(activesupport) = %{version}
|
# Tests are not shipped with the gem
|
||||||
BuildRequires: rubygem(globalid)
|
# git clone https://github.com/rails/rails.git
|
||||||
BuildArch: noarch
|
# cd rails/activejob && git archive -v -o activejob-6.1.4.1-tests.txz v6.1.4.1 test/
|
||||||
|
Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz
|
||||||
|
# The tools are needed for the test suite, are however unpackaged in gem file.
|
||||||
|
# git clone http://github.com/rails/rails.git --no-checkout
|
||||||
|
# cd rails && git archive -v -o rails-6.1.4.1-tools.txz v6.1.4.1 tools/
|
||||||
|
Source2: rails-%{version}-tools.txz
|
||||||
|
|
||||||
|
BuildRequires: ruby(release)
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: ruby >= 2.2.2
|
||||||
|
BuildRequires: rubygem(activesupport) = %{version}
|
||||||
|
BuildRequires: rubygem(globalid)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Declare job classes that can be run by a variety of queueing backends.
|
Declare job classes that can be run by a variety of queueing backends.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description doc
|
|
||||||
|
%description doc
|
||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}
|
%setup -q -n %{gem_name}-%{version} -b1 -b2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
@ -34,13 +48,17 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
tar xzvf %{SOURCE1}
|
ln -s %{_builddir}/tools ..
|
||||||
cd rails-%{version}/%{gem_name}
|
mv %{_builddir}/test .
|
||||||
|
|
||||||
|
sed -i '/ActiveJob::QueueAdapters::SneakersAdapter/ d' test/cases/exceptions_test.rb
|
||||||
|
|
||||||
ADAPTERS='async inline test'
|
ADAPTERS='async inline test'
|
||||||
for ADAPTER in ${ADAPTERS}; do
|
for ADAPTER in ${ADAPTERS}; do
|
||||||
AJ_ADAPTER=${ADAPTER} ruby -Ilib:test \
|
AJ_ADAPTER=${ADAPTER} ruby -Ilib:test \
|
||||||
-e 'Dir.glob "./test/cases/**/*_test.rb", &method(:require)'
|
-e 'Dir.glob "./test/cases/**/*_test.rb", &method(:require)'
|
||||||
done
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -56,6 +74,9 @@ popd
|
|||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 02 2022 wangkerong <wangkerong@h-partners.com>- 6.1.4.1-1
|
||||||
|
- Upgrade to 6.1.4.1
|
||||||
|
|
||||||
* Mon Feb 8 2021sunguoshuai<sunguoshuai@huawei.com>- 5.2.4.4-1
|
* Mon Feb 8 2021sunguoshuai<sunguoshuai@huawei.com>- 5.2.4.4-1
|
||||||
- Upgrade to 5.2.4.4
|
- Upgrade to 5.2.4.4
|
||||||
|
|
||||||
|
|||||||
BIN
v5.2.4.4.tar.gz
BIN
v5.2.4.4.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user