!1 package init

Merge pull request !1 from small_leek/master
This commit is contained in:
openeuler-ci-bot 2020-08-12 16:23:35 +08:00 committed by Gitee
commit f63390a494
3 changed files with 60 additions and 0 deletions

BIN
chronic-0.10.2.gem Normal file

Binary file not shown.

56
rubygem-chronic.spec Normal file
View File

@ -0,0 +1,56 @@
# Generated from chronic-0.2.3.gem by gem2rpm -*- rpm-spec -*-
%global gem_name chronic
Summary: A natural language date parser
Name: rubygem-%{gem_name}
Version: 0.10.2
Release: 1
License: MIT
URL: http://github.com/mojombo/chronic
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby rubygems-devel rubygem(minitest) > 5
BuildArch: noarch
%description
Chronic is a natural language date/time parser written in pure Ruby.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
%description doc
Documentation for %{name}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd
%files
%exclude %{gem_instdir}/.*
%exclude %{gem_instdir}/%{gem_name}.gemspec
%dir %{gem_instdir}
%{gem_libdir}
%doc %{gem_instdir}/LICENSE
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/test
%changelog
* Sat Jul 25 2020 wangxiao <wangxiao65@huawei.com> - 0.10.2-1
- package init

4
rubygem-chronic.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mojombo/chronic
tag_prefix: "^v"
seperator: "."