Compare commits

..

No commits in common. "51d0580bff93ebfb33de70904181ae85c0fc5924" and "74bda9c68424ae7be1df277654226fc6fb9274c5" have entirely different histories.

4 changed files with 13 additions and 35 deletions

View File

@ -1,14 +1,13 @@
%bcond_with bootstrap
%global gem_name tzinfo
Name: rubygem-%{gem_name}
Version: 2.0.6
Release: 1
Version: 1.2.5
Release: 2
Summary: Daylight savings aware timezone library
License: MIT
URL: http://tzinfo.github.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: %{gem_name}-%{version}-tests.txz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(concurrent-ruby)
BuildRequires: rubygem(did_you_mean)
Source0: https://rubygems.org/gems/tzinfo-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(thread_safe)
BuildArch: noarch
%description
TZInfo provides daylight savings aware transformations between times in
@ -22,7 +21,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b1
%setup -q -n %{gem_name}-%{version}
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -33,28 +32,13 @@ mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
if %{with bootstrap}
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/test .
# We don't want to use bundler
sed -i "/raise 'Tests must be run with bundler/ s/^/#/" \
test/test_utils.rb
export RUBYOPT="-Ilib"
ruby test/ts_all_ruby_format1.rb
ruby test/ts_all_ruby_format2.rb
ruby test/ts_all_zoneinfo.rb
# Test with system tzdata.
sed -i '/zoneinfo_path/ s|= .*|= "%{_datadir}/zoneinfo"|' test/ts_all_zoneinfo.rb
# The test is designed to run with internal zoneinfo fixtures, therefore there
# might be test failures.
# https://github.com/tzinfo/tzinfo/issues/141
ruby test/ts_all_zoneinfo.rb || :
ruby -Ilib -e "require './test/ts_all'"
ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'"
popd
%endif
%files
%dir %{gem_instdir}
@ -68,17 +52,11 @@ popd
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGES.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/test
%{gem_instdir}/%{gem_name}.gemspec
%changelog
* Thu Aug 10 2023 wubijie <wubijie@kylinos.cn> - 2.0.6-1
- Upgrade to version 2.0.6
* Wed Mar 2 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.4-1
- update to 2.0.4
* Mon Feb 21 2022 liyanan <liyanan32@huawei.com> - 1.2.5-3
- fix check failed for rubygem-timecop
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 1.2.5-2
- fix build fail

BIN
tzinfo-1.2.5.gem Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.