%bcond_with bootstrap %global gem_name tzinfo Name: rubygem-%{gem_name} Version: 1.2.5 Release: 3 Summary: Daylight savings aware timezone library License: MIT URL: http://tzinfo.github.io Source0: https://rubygems.org/gems/tzinfo-%{version}.gem #https://github.com/tzinfo/tzinfo/commit/3d4c491f472301e0ae5e7c446b96a3d10591df2c #https://github.com/tzinfo/tzinfo/commit/54fce8c1f61ba3b891311f7c7befc32a52ea4a30 Patch0: fix-check-failed-for-rubygem-timecop.patch BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(thread_safe) 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 %setup -q -n %{gem_name}-%{version} %patch0 -p1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %if %{with bootstrap} %check pushd .%{gem_instdir} ruby -Ilib -e "require './test/ts_all'" ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'" popd %endif %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 %{gem_instdir}/Rakefile %{gem_instdir}/test %{gem_instdir}/%{gem_name}.gemspec %changelog * Mon Feb 21 2022 liyanan - 1.2.5-3 - fix check failed for rubygem-timecop * Sat Sep 5 2020 liyanan - 1.2.5-2 - fix build fail * Sat Aug 8 2020 yanan li - 1.2.5-1 - Package init