[rubygem-fog-brightbox] Initial package

Vít Ondruch vondruch at fedoraproject.org
Mon Jun 9 10:38:53 UTC 2014


commit 0e2fd562cee38021d5d5e4ac0d547aa4574b845c
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Jun 9 12:38:42 2014 +0200

    Initial package

 .gitignore                 |    1 +
 rubygem-fog-brightbox.spec |   80 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..48c1da9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fog-brightbox-0.0.2.gem
diff --git a/rubygem-fog-brightbox.spec b/rubygem-fog-brightbox.spec
new file mode 100644
index 0000000..174f4b4
--- /dev/null
+++ b/rubygem-fog-brightbox.spec
@@ -0,0 +1,80 @@
+# Generated from fog-brightbox-0.0.2.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name fog-brightbox
+
+Name: rubygem-%{gem_name}
+Version: 0.0.2
+Release: 1%{?dist}
+Summary: Module for `fog` or standalone provider to use the Brightbox Cloud
+Group: Development/Languages
+License: MIT
+URL: https://github.com/brightbox/fog-brightbox
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(fog-core)
+BuildRequires: rubygem(fog-json)
+BuildRequires: rubygem(minitest)
+BuildArch: noarch
+
+%description
+Module for the 'fog' gem to support Brightbox Cloud.
+
+
+%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}/
+
+
+%check
+pushd .%{gem_instdir}
+ruby -Ilib -e 'Dir.glob "./spec/**/*_spec.rb", &method(:require)'
+
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/LICENSE.txt
+%exclude %{gem_instdir}/.*
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/CHANGELOG.md
+%{gem_instdir}/Gemfile
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/fog-brightbox.gemspec
+%{gem_instdir}/spec
+
+
+%changelog
+* Fri May 23 2014 Vít Ondruch <vondruch at redhat.com> - 0.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..4e53059 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8d081f7cffe3f847a0b2cd5919995c2c  fog-brightbox-0.0.2.gem


More information about the scm-commits mailing list