|
|
@ -2,16 +2,19 @@
|
|
|
|
%global gem_name tzinfo
|
|
|
|
%global gem_name tzinfo
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 2.0.4
|
|
|
|
Version: 2.0.5
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Daylight savings aware timezone library
|
|
|
|
Summary: Daylight savings aware timezone library
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://tzinfo.github.io
|
|
|
|
URL: https://tzinfo.github.io
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# Gem file does not contain a test suite, you can create it like so:
|
|
|
|
# Gem file does not contain a test suite, you can create it like so:
|
|
|
|
# git clone https://github.com/tzinfo/tzinfo.git --no-checkout
|
|
|
|
# git clone https://github.com/tzinfo/tzinfo.git --no-checkout
|
|
|
|
# cd tzinfo && git archive -v -o tzinfo-2.0.4-tests.txz v2.0.4 test/
|
|
|
|
# cd tzinfo && git archive -v -o tzinfo-2.0.5-tests.txz v2.0.5 test/
|
|
|
|
Source1: %{gem_name}-%{version}-tests.txz
|
|
|
|
Source1: %{gem_name}-%{version}-tests.txz
|
|
|
|
|
|
|
|
# https://github.com/tzinfo/tzinfo/commit/f76bc7fc824a831a159f080ea2fdeade47dc1e38
|
|
|
|
|
|
|
|
# Ruby 3.2 changes how includes are handled
|
|
|
|
|
|
|
|
Patch0: %{name}-2.0.5-fix-include-issues-ruby32.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
@ -21,8 +24,8 @@ BuildRequires: rubygem(concurrent-ruby)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
TZInfo provides daylight savings aware transformations between times in
|
|
|
|
TZInfo provides access to time zone data and allows times to be converted
|
|
|
|
different time zones.
|
|
|
|
using time zone rules.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
@ -35,6 +38,10 @@ Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b1
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b1
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
cd %{_builddir}/test
|
|
|
|
|
|
|
|
%patch0 -p2
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
@ -53,7 +60,18 @@ ln -s %{_builddir}/test .
|
|
|
|
sed -i "/raise 'Tests must be run with bundler/ s/^/#/" \
|
|
|
|
sed -i "/raise 'Tests must be run with bundler/ s/^/#/" \
|
|
|
|
test/test_utils.rb
|
|
|
|
test/test_utils.rb
|
|
|
|
|
|
|
|
|
|
|
|
RUBYOPT="-I.:lib:test" ruby -rtest/ts_all
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# There might be test failures. Ignore them until there is upstream feedback.
|
|
|
|
|
|
|
|
# https://github.com/tzinfo/tzinfo/issues/141
|
|
|
|
|
|
|
|
ruby test/ts_all_zoneinfo.rb || :
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -70,6 +88,22 @@ popd
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Sep 21 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 2.0.5-3
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 22 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.0.5-2
|
|
|
|
|
|
|
|
- Fix include issue on test with ruby32
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 06 2022 Vít Ondruch <vondruch@redhat.com> - 2.0.5-1
|
|
|
|
|
|
|
|
- Update to TZInfo 2.0.5.
|
|
|
|
|
|
|
|
Resolves: rhbz#2108737
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|