Compare commits

..

No commits in common. "8f2d6d842ace7c0f0c6d24b2427df9f663934679" and "a7ea1996c48540bd2ff9077e3b5b34fa6e578198" have entirely different histories.

7 changed files with 21 additions and 45 deletions

BIN
activejob-5.2.3.gem Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,41 +1,27 @@
%global gem_name activejob
Name: rubygem-%{gem_name}
Version: 6.1.4.1
Release: 1
Summary: Job framework with pluggable queues
License: MIT
URL: http://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Tests are not shipped with the gem
# git clone https://github.com/rails/rails.git
# 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
Name: rubygem-%{gem_name}
Version: 5.2.3
Release: 1
Summary: Job framework with pluggable queues
License: MIT
URL: http://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/rails/archive/v5.2.3.tar.gz
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 rubygem(activesupport) = %{version}
BuildRequires: rubygem(globalid)
BuildArch: noarch
%description
Declare job classes that can be run by a variety of queueing backends.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b1 -b2
%setup -q -n %{gem_name}-%{version}
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -48,17 +34,13 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/tools ..
mv %{_builddir}/test .
sed -i '/ActiveJob::QueueAdapters::SneakersAdapter/ d' test/cases/exceptions_test.rb
tar xzvf %{SOURCE1}
cd rails-%{version}/%{gem_name}
ADAPTERS='async inline test'
for ADAPTER in ${ADAPTERS}; do
AJ_ADAPTER=${ADAPTER} ruby -Ilib:test \
-e 'Dir.glob "./test/cases/**/*_test.rb", &method(:require)'
done
popd
%files
@ -74,11 +56,5 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Mon May 02 2022 wangkerong <wangkerong@h-partners.com>- 6.1.4.1-1
- Upgrade to 6.1.4.1
* Mon Feb 08 2021 sunguoshuai<sunguoshuai@huawei.com>- 5.2.4.4-1
- Upgrade to 5.2.4.4
* Sat Aug 08 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
- Package init

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: rails/rails
tag_prefix: "^v"
tag_prefix: "v"
seperator: "."

BIN
v5.2.3.tar.gz Normal file

Binary file not shown.