summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-09-13 17:52:25 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-09-13 17:52:25 +0000
commitab8ff3b7b1133b9ddb53a5748cfb5c36949d39fa (patch)
tree171d65069511e1e16c3262d73e6de5a6d49f180d
parent8322bd97019ef2cbe9649cc0ba1886dd5aa43077 (diff)
automatic import of rubygem-humanize-numberHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-humanize-number.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f727545 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/humanize-number-0.3.0.gem
diff --git a/rubygem-humanize-number.spec b/rubygem-humanize-number.spec
new file mode 100644
index 0000000..495e037
--- /dev/null
+++ b/rubygem-humanize-number.spec
@@ -0,0 +1,73 @@
+# Generated from humanize-number-0.3.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name humanize-number
+
+Name: rubygem-%{gem_name}
+Version: 0.3.0
+Release: 1%{?dist}
+Summary: Humnaizes numbers
+License: MIT
+URL: https://github.com/shime/humanize-number
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby >= 2.0
+# BuildRequires: rubygem(minitest) >= 5.0
+# BuildRequires: rubygem(minitest) < 6
+BuildArch: noarch
+
+%description
+Humanizes numbers.
+
+
+%package doc
+Summary: Documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build ../%{gem_name}-%{version}.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}/
+
+
+
+%check
+pushd .%{gem_instdir}
+# ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
+popd
+
+%files
+%dir %{gem_instdir}
+%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.travis.yml
+%{gem_instdir}/bin
+%{gem_instdir}/gemfile
+%{gem_instdir}/gemfile.lock
+%{gem_libdir}
+%license %{gem_instdir}/license
+%{gem_instdir}/rakefile
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/humanize-number.gemspec
+%doc %{gem_instdir}/readme.md
+
+%changelog
+* Mon Sep 13 2021 mockbuilder - 0.3.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..8ab8791
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+88cbda8bf07e6921f9f0f07f796464fb humanize-number-0.3.0.gem