[rubygem-inflecto/f19] initial package import (RHBZ #1036836)

Ken Dreyer ktdreyer at fedoraproject.org
Thu Dec 5 23:12:31 UTC 2013


commit 7632beaf5b5b14a9743edd790046278b209cf4fd
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Thu Dec 5 16:11:23 2013 -0700

    initial package import (RHBZ #1036836)

 .gitignore            |    1 +
 rubygem-inflecto.spec |   84 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4fb4083 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/inflecto-0.0.2.gem
diff --git a/rubygem-inflecto.spec b/rubygem-inflecto.spec
new file mode 100644
index 0000000..b81469a
--- /dev/null
+++ b/rubygem-inflecto.spec
@@ -0,0 +1,84 @@
+# Generated from inflecto-0.0.2.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name inflecto
+
+Name: rubygem-%{gem_name}
+Version: 0.0.2
+Release: 1%{?dist}
+Summary: Inflector for strings
+Group: Development/Languages
+License: MIT
+URL: https://github.com/mbj/inflecto
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+Inflector for strings
+
+
+%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
+
+# Remove developer-only files.
+for f in .gitignore .rspec .travis.yml \
+Gemfile Gemfile.devtools Guardfile Rakefile; do
+  rm $f
+  sed -i "s|\"$f\",||g" %{gem_name}.gemspec
+done
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+# Remove unnecessary gemspec file
+rm .%{gem_instdir}/%{gem_name}.gemspec
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+  rspec -Ilib spec
+popd
+
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/README.md
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/TODO
+%doc %{gem_instdir}/Changelog.md
+%exclude %{gem_instdir}/config
+%exclude %{gem_instdir}/spec
+
+%changelog
+* Mon Dec 02 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..0f05f4f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d6c1c7fca35f737d9fc6e4800b766fe5  inflecto-0.0.2.gem


More information about the scm-commits mailing list