commit
f63390a494
BIN
chronic-0.10.2.gem
Normal file
BIN
chronic-0.10.2.gem
Normal file
Binary file not shown.
56
rubygem-chronic.spec
Normal file
56
rubygem-chronic.spec
Normal 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
4
rubygem-chronic.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: mojombo/chronic
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user