path: root/SPECS/rubygem-chronic_duration.spec
diff options
Diffstat (limited to 'SPECS/rubygem-chronic_duration.spec')
1 files changed, 81 insertions, 0 deletions
diff --git a/SPECS/rubygem-chronic_duration.spec b/SPECS/rubygem-chronic_duration.spec
new file mode 100644
index 0000000..ecc54ca
--- /dev/null
+++ b/SPECS/rubygem-chronic_duration.spec
@@ -0,0 +1,81 @@
+# Generated from chronic_duration-0.10.6.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name chronic_duration
+Name: rubygem-%{gem_name}
+Version: 0.10.6
+Release: 1%{?dist}
+Summary: A simple Ruby natural language parser for elapsed time
+License: MIT
+Source0: http://gems.rubyforge.orggems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+# BuildRequires: rubygem(rspec) >= 2.12.0
+# BuildRequires: rubygem(rspec) < 2.13
+BuildArch: noarch
+Requires: rubygem-numerizer
+A simple Ruby natural language parser for elapsed time. (For example, 4 hours
+and 30 minutes, 6 minutes 4 seconds, 3 days, etc.) Returns all results in
+seconds. Will return an integer unless you get tricky and need a float. (4
+minutes and 13.47 seconds, for example.) The reverse can also be performed via
+the output method.
+%package doc
+Summary: Documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+%description doc
+Documentation for %{name}.
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+pushd .%{gem_instdir}
+# rspec spec
+%dir %{gem_instdir}
+%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.travis.yml
+%license %{gem_instdir}/LICENSE.txt
+%exclude %{gem_instdir}/chronic_duration.gemspec
+%exclude %{gem_cache}
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/
+* Tue Aug 29 2017 Marcel Haerry <> - 0.10.6-1
+- Initial package