57 lines
1.3 KiB
RPMSpec
57 lines
1.3 KiB
RPMSpec
# 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
|