Compare commits

...

No commits in common. 'i9' and 'epel9' have entirely different histories.
i9 ... epel9

2
.gitignore vendored

@ -0,0 +1,2 @@
/tzinfo-*.gem
/tzinfo-*-tests.txz

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

@ -2,19 +2,16 @@
%global gem_name tzinfo
Name: rubygem-%{gem_name}
Version: 2.0.5
Release: 3%{?dist}
Version: 2.0.4
Release: 4%{?dist}
Summary: Daylight savings aware timezone library
License: MIT
URL: https://tzinfo.github.io
URL: http://tzinfo.github.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Gem file does not contain a test suite, you can create it like so:
# git clone https://github.com/tzinfo/tzinfo.git --no-checkout
# cd tzinfo && git archive -v -o tzinfo-2.0.5-tests.txz v2.0.5 test/
# cd tzinfo && git archive -v -o tzinfo-2.0.4-tests.txz v2.0.4 test/
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: rubygems-devel
@ -24,8 +21,8 @@ BuildRequires: rubygem(concurrent-ruby)
BuildArch: noarch
%description
TZInfo provides access to time zone data and allows times to be converted
using time zone rules.
TZInfo provides daylight savings aware transformations between times in
different time zones.
%package doc
@ -38,10 +35,6 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b1
(
cd %{_builddir}/test
%patch0 -p2
)
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -60,18 +53,7 @@ ln -s %{_builddir}/test .
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
# 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 || :
RUBYOPT="-I.:lib:test" ruby -rtest/ts_all
popd
%files
@ -88,22 +70,6 @@ popd
%doc %{gem_instdir}/README.md
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

@ -0,0 +1,2 @@
SHA512 (tzinfo-2.0.4.gem) = edae29820741b338c38dc13d58746f9798052167598d2eab7cefdde8769854d248573b112c7ad2481aef63a9258fbce477451f83f347640e00e2fc27feb10370
SHA512 (tzinfo-2.0.4-tests.txz) = 8d521973337ec2068a4b0117e91e16b7e041d1208e8ba3d5c724eefe7d87ee7fa418bf0a1520e640742466730786fb520fe65810aa08576b795c02754d16ccbb
Loading…
Cancel
Save