Upgrade to 6.1.4.1

(cherry picked from commit dea9c5ad528f957c5cae6345e83cb935dd72c01f)
This commit is contained in:
wangkerong 2022-03-02 19:13:41 +08:00 committed by openeuler-sync-bot
parent 3df445c8fa
commit ee46e9ba0b
6 changed files with 49 additions and 26 deletions

Binary file not shown.

Binary file not shown.

BIN
activemodel-6.1.4.1.gem Normal file

Binary file not shown.

BIN
rails-6.1.4.1-tools.txz Normal file

Binary file not shown.

View File

@ -1,37 +1,55 @@
%global gem_name activemodel %global gem_name activemodel
%{?_with_bootstrap: %global bootstrap 1}
%global bootstrap 1 %bcond_with bootstrap
Name: rubygem-%{gem_name}
Version: 5.2.4.4 Name: rubygem-%{gem_name}
Release: 1 Version: 6.1.4.1
Summary: A toolkit for building modeling frameworks (part of Rails) Release: 1
License: MIT Summary: A toolkit for building modeling frameworks (part of Rails)
URL: http://rubyonrails.org License: MIT
Source0: https://rubygems.org/gems/activemodel-5.2.4.4.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} # The gem doesn't ship with the test suite.
%if ! 0%{?bootstrap} # You may check it out like so
BuildRequires: rubygem(railties) = %{version} # git clone https://github.com/rails/rails.git
# cd rails/activemodel && git archive -v -o activemodel-6.1.4.1-tests.txz v6.1.4.1 test/
Source1: %{gem_name}-%{version}-tests.txz
# The tools are needed for the test suite, are however unpackaged in gem file.
# You may check it out like so
# 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}
%if %{without bootstrap}
BuildRequires: rubygem(railties) = %{version}
%endif %endif
BuildRequires: rubygem(bcrypt) => 3.1.2 rubygem(builder) BuildRequires: rubygem(bcrypt) => 3.1.2
BuildArch: noarch BuildRequires: rubygem(builder)
BuildArch: noarch
%description %description
A toolkit for building modeling frameworks like Active Record. Rich support A toolkit for building modeling frameworks like Active Record. Rich support
for attributes, callbacks, validations, serialization, internationalization, for attributes, callbacks, validations, serialization, internationalization,
and testing. and testing.
%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 -c -T %setup -q -n %{gem_name}-%{version} -b1 -b2
%gem_install -n %{SOURCE0}
%build %build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
@ -40,11 +58,13 @@ 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 .
%if 0%{?bootstrap}
%if %{with bootstrap}
mv ./test/cases/railtie_test.rb{,.disable} mv ./test/cases/railtie_test.rb{,.disable}
%endif %endif
ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').sort.each {|t| require t}" ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').sort.each {|t| require t}"
popd popd
@ -61,7 +81,10 @@ popd
%doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/README.rdoc
%changelog %changelog
* Mon Feb 8 2021sunguoshuai<sunguoshuai@huawei.com>- 5.2.4.4-1 * Wed May 02 2022 wangkerong <wangkerong@h-partners.com>- 6.1.4.1-1
- Upgrade to 6.1.4.1
* Mon Feb 8 2021 sunguoshuai <sunguoshuai@huawei.com>- 5.2.4.4-1
- Upgrade to 5.2.4.4 - Upgrade to 5.2.4.4
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1 * Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1

Binary file not shown.