commit
fc01757899
58
rubygem-tzinfo.spec
Normal file
58
rubygem-tzinfo.spec
Normal file
@ -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 <liyanan032@huawei.com> - 1.2.5-1
|
||||||
|
- Package init
|
||||||
5
rubygem-tzinfo.yaml
Normal file
5
rubygem-tzinfo.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/tzinfo/tzinfo.git
|
||||||
|
version_control: github
|
||||||
|
src_repo: tzinfo/tzinfo
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
tzinfo-1.2.5.gem
Normal file
BIN
tzinfo-1.2.5.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user