64 lines
1.6 KiB
RPMSpec
64 lines
1.6 KiB
RPMSpec
%global gem_name activejob
|
|
Name: rubygem-%{gem_name}
|
|
Version: 5.2.4.4
|
|
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.4.4.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
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
%build
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
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
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
%dir %{gem_instdir}
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%changelog
|
|
* Mon Feb 8 2021sunguoshuai<sunguoshuai@huawei.com>- 5.2.4.4-1
|
|
- Upgrade to 5.2.4.4
|
|
|
|
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
|
|
- Package init
|