Compare commits
11 Commits
74bda9c684
...
51d0580bff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51d0580bff | ||
|
|
86cd44ff10 | ||
|
|
d94bd7c51f | ||
|
|
adbaa856b5 | ||
|
|
053adc9e8c | ||
|
|
7d1e13cf79 | ||
|
|
25c5579b32 | ||
|
|
ff7af6752a | ||
|
|
6655f3a1cc | ||
|
|
43dd70ddec | ||
|
|
fc01757899 |
@ -1,13 +1,14 @@
|
|||||||
%bcond_with bootstrap
|
|
||||||
%global gem_name tzinfo
|
%global gem_name tzinfo
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.2.5
|
Version: 2.0.6
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Daylight savings aware timezone library
|
Summary: Daylight savings aware timezone library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://tzinfo.github.io
|
URL: http://tzinfo.github.io
|
||||||
Source0: https://rubygems.org/gems/tzinfo-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(thread_safe)
|
Source1: %{gem_name}-%{version}-tests.txz
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(concurrent-ruby)
|
||||||
|
BuildRequires: rubygem(did_you_mean)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
TZInfo provides daylight savings aware transformations between times in
|
TZInfo provides daylight savings aware transformations between times in
|
||||||
@ -21,7 +22,7 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}
|
%setup -q -n %{gem_name}-%{version} -b1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
@ -32,13 +33,28 @@ mkdir -p %{buildroot}%{gem_dir}
|
|||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
if %{with bootstrap}
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ruby -Ilib -e "require './test/ts_all'"
|
ln -s %{_builddir}/test .
|
||||||
ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'"
|
|
||||||
|
# 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
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
@ -52,11 +68,17 @@ popd
|
|||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
%doc %{gem_instdir}/CHANGES.md
|
%doc %{gem_instdir}/CHANGES.md
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
%{gem_instdir}/Rakefile
|
|
||||||
%{gem_instdir}/test
|
|
||||||
%{gem_instdir}/%{gem_name}.gemspec
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 1.2.5-2
|
||||||
- fix build fail
|
- fix build fail
|
||||||
|
|
||||||
|
|||||||
BIN
tzinfo-1.2.5.gem
BIN
tzinfo-1.2.5.gem
Binary file not shown.
BIN
tzinfo-2.0.6-tests.txz
Normal file
BIN
tzinfo-2.0.6-tests.txz
Normal file
Binary file not shown.
BIN
tzinfo-2.0.6.gem
Normal file
BIN
tzinfo-2.0.6.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user