rubygem-tzinfo/rubygem-tzinfo.spec

72 lines
1.9 KiB
RPMSpec
Raw Normal View History

2020-09-05 18:16:35 +08:00
%bcond_with bootstrap
2020-08-28 14:25:17 +08:00
%global gem_name tzinfo
Name: rubygem-%{gem_name}
Version: 1.2.5
2022-02-21 20:42:50 +08:00
Release: 3
2020-08-28 14:25:17 +08:00
Summary: Daylight savings aware timezone library
License: MIT
URL: http://tzinfo.github.io
Source0: https://rubygems.org/gems/tzinfo-%{version}.gem
2022-02-21 20:42:50 +08:00
#https://github.com/tzinfo/tzinfo/commit/3d4c491f472301e0ae5e7c446b96a3d10591df2c
#https://github.com/tzinfo/tzinfo/commit/54fce8c1f61ba3b891311f7c7befc32a52ea4a30
Patch0: fix-check-failed-for-rubygem-timecop.patch
2020-08-28 14:25:17 +08:00
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}
2022-02-21 20:42:50 +08:00
%patch0 -p1
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}/
2020-09-05 19:30:11 +08:00
%if %{with bootstrap}
2020-08-28 14:25:17 +08:00
%check
pushd .%{gem_instdir}
ruby -Ilib -e "require './test/ts_all'"
ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'"
popd
2020-09-05 19:09:11 +08:00
%endif
2020-08-28 14:25:17 +08:00
%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
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
- Package init