Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
51d0580bff
!11 [sync] PR-10: Upgrade to version 2.0.6
From: @openeuler-sync-bot 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2023-08-10 02:37:10 +00:00
wubijie
86cd44ff10 Upgrade to version 2.0.6
(cherry picked from commit 1d6d19cbff6c093ba4497326201c4b7f24c07505)
2023-08-10 10:22:40 +08:00
openeuler-ci-bot
d94bd7c51f
!8 【轻量级 PR】:fix spec changelog date error
From: @ccdxx 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-06-09 06:13:50 +00:00
chendexi
adbaa856b5
fix spec changelog date error 2022-06-09 02:23:47 +00:00
openeuler-ci-bot
053adc9e8c
!7 同步版本到master
From: @liqiuyu123 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-03-07 01:40:48 +00:00
liqiuyu
7d1e13cf79 update to 2.0.4 2022-03-03 16:29:29 +08:00
openeuler-ci-bot
25c5579b32
!3 fix check failed for rubygem-timecop
From: @lyn1001 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-02-23 01:43:14 +00:00
lyn1001
ff7af6752a fix check failed for rubygem-timecop 2022-02-23 09:22:09 +08:00
openeuler-ci-bot
6655f3a1cc !2 Fix build fail
Merge pull request !2 from lyn/master
2020-09-07 12:06:15 +08:00
lyn1001
43dd70ddec fix build fail 2020-09-05 19:30:11 +08:00
openeuler-ci-bot
fc01757899 !1 Package init
Merge pull request !1 from lyn/master
2020-08-31 16:14:28 +08:00
4 changed files with 35 additions and 13 deletions

View File

@ -1,13 +1,14 @@
%bcond_with bootstrap
%global gem_name tzinfo
Name: rubygem-%{gem_name}
Version: 1.2.5
Release: 2
Version: 2.0.6
Release: 1
Summary: Daylight savings aware timezone library
License: MIT
URL: http://tzinfo.github.io
Source0: https://rubygems.org/gems/tzinfo-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(thread_safe)
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)
BuildArch: noarch
%description
TZInfo provides daylight savings aware transformations between times in
@ -21,7 +22,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version} -b1
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -32,13 +33,28 @@ mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
if %{with bootstrap}
%check
pushd .%{gem_instdir}
ruby -Ilib -e "require './test/ts_all'"
ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'"
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 || :
popd
%endif
%files
%dir %{gem_instdir}
@ -52,11 +68,17 @@ 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

Binary file not shown.

BIN
tzinfo-2.0.6-tests.txz Normal file

Binary file not shown.

BIN
tzinfo-2.0.6.gem Normal file

Binary file not shown.