Compare commits
No commits in common. "51d0580bff93ebfb33de70904181ae85c0fc5924" and "74bda9c68424ae7be1df277654226fc6fb9274c5" have entirely different histories.
51d0580bff
...
74bda9c684
@ -1,14 +1,13 @@
|
|||||||
|
%bcond_with bootstrap
|
||||||
%global gem_name tzinfo
|
%global gem_name tzinfo
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 2.0.6
|
Version: 1.2.5
|
||||||
Release: 1
|
Release: 2
|
||||||
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/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/tzinfo-%{version}.gem
|
||||||
Source1: %{gem_name}-%{version}-tests.txz
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(thread_safe)
|
||||||
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
|
||||||
@ -22,7 +21,7 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version} -b1
|
%setup -q -n %{gem_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
@ -33,28 +32,13 @@ 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}
|
||||||
ln -s %{_builddir}/test .
|
ruby -Ilib -e "require './test/ts_all'"
|
||||||
|
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}
|
||||||
@ -68,17 +52,11 @@ 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
Normal file
BIN
tzinfo-1.2.5.gem
Normal file
Binary file not shown.
Binary file not shown.
BIN
tzinfo-2.0.6.gem
BIN
tzinfo-2.0.6.gem
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user