2020-08-28 14:25:17 +08:00
|
|
|
%global gem_name tzinfo
|
|
|
|
|
Name: rubygem-%{gem_name}
|
2023-08-10 10:01:01 +08:00
|
|
|
Version: 2.0.6
|
2022-03-02 16:35:14 +08:00
|
|
|
Release: 1
|
2020-08-28 14:25:17 +08:00
|
|
|
Summary: Daylight savings aware timezone library
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://tzinfo.github.io
|
2022-03-02 16:35:14 +08:00
|
|
|
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)
|
2020-08-28 14:25:17 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%description
|
|
|
|
|
TZInfo provides daylight savings aware transformations between times in
|
|
|
|
|
different time zones.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-03-02 16:35:14 +08:00
|
|
|
%setup -q -n %{gem_name}-%{version} -b1
|
2020-08-28 14:25:17 +08:00
|
|
|
|
|
|
|
|
%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}
|
2022-03-02 16:35:14 +08:00
|
|
|
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
|
|
|
|
|
|
2023-08-10 10:01:01 +08:00
|
|
|
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 || :
|
2020-08-28 14:25:17 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%exclude %{gem_instdir}/.yardopts
|
|
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CHANGES.md
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-08-10 10:01:01 +08:00
|
|
|
* Thu Aug 10 2023 wubijie <wubijie@kylinos.cn> - 2.0.6-1
|
|
|
|
|
- Upgrade to version 2.0.6
|
|
|
|
|
|
2022-06-09 02:23:47 +00:00
|
|
|
* Wed Mar 2 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.4-1
|
2022-03-02 16:35:14 +08:00
|
|
|
- update to 2.0.4
|
|
|
|
|
|
2022-02-21 20:42:50 +08:00
|
|
|
* Mon Feb 21 2022 liyanan <liyanan32@huawei.com> - 1.2.5-3
|
|
|
|
|
- fix check failed for rubygem-timecop
|
|
|
|
|
|
2020-09-05 18:16:35 +08:00
|
|
|
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 1.2.5-2
|
|
|
|
|
- fix build fail
|
|
|
|
|
|
2020-08-28 14:25:17 +08:00
|
|
|
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 1.2.5-1
|
2023-08-10 10:01:01 +08:00
|
|
|
- Package init
|