93 lines
2.8 KiB
RPMSpec
93 lines
2.8 KiB
RPMSpec
%global gem_name activesupport
|
|
Name: rubygem-%{gem_name}
|
|
Epoch: 1
|
|
Version: 6.1.4.1
|
|
Release: 2
|
|
Summary: A support libraries and Ruby core extensions extracted from the Rails framework
|
|
License: MIT
|
|
URL: http://rubyonrails.org
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
Source1: %{gem_name}-%{version}-tests.txz
|
|
Source2: rails-%{version}-tools.txz
|
|
Patch0: Add-support-dalli-3.2.2.patch
|
|
Requires: rubygem(bigdecimal) rubygem(json)
|
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 rubygem(bigdecimal) rubygem(builder)
|
|
BuildRequires: rubygem(concurrent-ruby) rubygem(connection_pool) rubygem(dalli)
|
|
BuildRequires: (rubygem(i18n) >= 0.7 with rubygem(i18n) < 2) rubygem(minitest) >= 5.0.0
|
|
BuildRequires: rubygem(rack) rubygem(tzinfo) >= 2.0 rubygem(listen) rubygem(redis) memcached rubygem(rexml)
|
|
BuildArch: noarch
|
|
%description
|
|
A toolkit of support libraries and Ruby core extensions extracted from the
|
|
Rails framework. Rich support for multibyte strings, internationalization,
|
|
time zones, and testing.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
BuildArch: noarch
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version} -b1 -b2
|
|
pushd %{_builddir}/test
|
|
%patch0 -p1
|
|
popd
|
|
|
|
%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}
|
|
ln -s %{_builddir}/tools ..
|
|
mv %{_builddir}/test .
|
|
for f in \
|
|
test/evented_file_update_checker_test.rb \
|
|
test/cache/stores/redis_cache_store_test.rb # failed to require "redis/connection/hiredis"
|
|
do
|
|
mv $f{,.disable}
|
|
done
|
|
sed -i '/def test_iso8601_output_and_reparsing$/,/^ end$/ s/^/#/' test/core_ext/duration_test.rb
|
|
sed -i '/assert_nil mapped\[:b\]/ s/^/#/' test/core_ext/hash/transform_values_test.rb
|
|
sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb
|
|
memcached &
|
|
mPID=$!
|
|
sleep 1
|
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
kill -15 $mPID
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
%changelog
|
|
* Tue Jul 05 2022 liyanan <liyanan32@h-partners.com> - 6.1.4.1-2
|
|
- Add support dalli 3.2.2
|
|
|
|
* Wed Mar 02 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 6.1.4.1-1
|
|
- update 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 Sep 5 2020 liyanan <liyanan32@huawei.com> - 5.2.3-2
|
|
- fix build fail
|
|
|
|
* Wed Aug 12 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
|
|
- Package init
|