summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--SPECS/rubygem-numerizer.spec80
2 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f439ee2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+SRPMS/*
+SOURCES/*
diff --git a/SPECS/rubygem-numerizer.spec b/SPECS/rubygem-numerizer.spec
new file mode 100644
index 0000000..28fc229
--- /dev/null
+++ b/SPECS/rubygem-numerizer.spec
@@ -0,0 +1,80 @@
+# Generated from numerizer-0.2.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name numerizer
+
+Name: rubygem-%{gem_name}
+Version: 0.2.0
+Release: 1%{?dist}
+Summary: Numerizer is a gem to help with parsing numbers in natural language from strings (ex forty two)
+Group: Development/Languages
+License: MIT
+URL: http://github.com/jduff/numerizer
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildArch: noarch
+
+%description
+Numerizer is a gem to help with parsing numbers in natural language from
+strings (ex forty two). It was extracted from the awesome Chronic gem
+http://github.com/evaryont/chronic.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+# 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
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+
+
+
+# Run the test suite
+%check
+pushd .%{gem_instdir}
+
+popd
+
+%files
+%dir %{gem_instdir}
+%license %{gem_instdir}/LICENSE
+%{gem_instdir}/VERSION
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/.document
+%doc %{gem_instdir}/README.rdoc
+%{gem_instdir}/Rakefile
+%{gem_instdir}/numerizer.gemspec
+%{gem_instdir}/test
+
+%changelog
+* Mon Mar 13 2017 Marcel Haerry <mh+fedora@scrit.ch> - 0.2.0-1
+- Initial package
+