Compare commits
No commits in common. "f959d852c09dbee7031d333c801f265d1afe916b" and "501726b218917aee3a37b7bd1c64d4f5b99add82" have entirely different histories.
f959d852c0
...
501726b218
BIN
activemodel-5.2.3.gem
Normal file
BIN
activemodel-5.2.3.gem
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,55 +1,36 @@
|
|||||||
%global gem_name activemodel
|
%global gem_name activemodel
|
||||||
|
%{?_with_bootstrap: %global bootstrap 1}
|
||||||
%bcond_with bootstrap
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 5.2.3
|
||||||
Name: rubygem-%{gem_name}
|
Release: 1
|
||||||
Version: 7.0.7
|
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.3.gem
|
||||||
URL: http://rubyonrails.org
|
Source1: https://github.com/rails/rails/archive/v5.2.3.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-7.0.4-tests.txz v7.0.4 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-7.0.4-tools.txz v7.0.4 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
|
BuildRequires: rubygem(bcrypt) => 3.1.2 rubygem(builder)
|
||||||
BuildRequires: rubygem(builder)
|
BuildArch: noarch
|
||||||
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 -n %{gem_name}-%{version} -b1 -b2
|
%setup -q -c -T
|
||||||
|
%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}
|
||||||
@ -58,13 +39,11 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ln -s %{_builddir}/tools ..
|
tar xzvf %{SOURCE1}
|
||||||
mv %{_builddir}/test .
|
cd rails-%{version}/%{gem_name}
|
||||||
|
%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
|
||||||
|
|
||||||
@ -81,17 +60,5 @@ popd
|
|||||||
%doc %{gem_instdir}/README.rdoc
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Aug 18 2023 yaoxin <yao_xin001@hoperun.com> - 7.0.7-1
|
|
||||||
- Upgrade to 7.0.7
|
|
||||||
|
|
||||||
* Thu Jan 19 2023 wangkai <wangkai385@h-partners.com> - 7.0.4-1
|
|
||||||
- Upgrade to version 7.0.4
|
|
||||||
|
|
||||||
* Mon 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
|
|
||||||
|
|
||||||
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
|
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
BIN
v5.2.3.tar.gz
Normal file
BIN
v5.2.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user