diff --git a/rubygem-tzinfo.spec b/rubygem-tzinfo.spec new file mode 100644 index 0000000000000000000000000000000000000000..26e9425dba3c1ad406e170c35d7d721db7ba5ffc --- /dev/null +++ b/rubygem-tzinfo.spec @@ -0,0 +1,58 @@ +%global gem_name tzinfo +Name: rubygem-%{gem_name} +Version: 1.2.5 +Release: 1 +Summary: Daylight savings aware timezone library +License: MIT +URL: http://tzinfo.github.io +Source0: https://rubygems.org/gems/tzinfo-%{version}.gem +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} + +%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} +ruby -Ilib -e "require './test/ts_all'" +ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'" +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 +%{gem_instdir}/Rakefile +%{gem_instdir}/test +%{gem_instdir}/%{gem_name}.gemspec + +%changelog +* Sat Aug 8 2020 yanan li - 1.2.5-1 +- Package init diff --git a/rubygem-tzinfo.yaml b/rubygem-tzinfo.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c852686629f649e5ce8dc9154af42ddd029c94bb --- /dev/null +++ b/rubygem-tzinfo.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/tzinfo/tzinfo.git +version_control: github +src_repo: tzinfo/tzinfo +tag_prefix: "^v" +seperator: "." diff --git a/tzinfo-1.2.5.gem b/tzinfo-1.2.5.gem new file mode 100644 index 0000000000000000000000000000000000000000..fd75e904a950cfccbc9c93af8af9f4ae4a78d233 Binary files /dev/null and b/tzinfo-1.2.5.gem differ