[rubygem-request_store] Initial import (#1126469).

Vít Ondruch vondruch at fedoraproject.org
Tue Aug 5 07:13:29 UTC 2014


commit 728353f0786bb8ab969fc21cde89e61913010976
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Aug 5 09:13:20 2014 +0200

    Initial import (#1126469).

 .gitignore                 |    1 +
 rubygem-request_store.spec |   78 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a601e74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/request_store-1.0.8.gem
diff --git a/rubygem-request_store.spec b/rubygem-request_store.spec
new file mode 100644
index 0000000..768fd20
--- /dev/null
+++ b/rubygem-request_store.spec
@@ -0,0 +1,78 @@
+# Generated from request_store-1.0.8.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name request_store
+
+Name: rubygem-%{gem_name}
+Version: 1.0.8
+Release: 1%{?dist}
+Summary: RequestStore gives you per-request global storage
+Group: Development/Languages
+License: MIT
+URL: http://github.com/steveklabnik/request_store
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(minitest)
+BuildArch: noarch
+
+%description
+RequestStore gives you per-request global storage.
+
+
+%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}
+ruby -Ilib:test -rtest_helper.rb -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
+popd
+
+%files
+%doc %{gem_instdir}/LICENSE.txt
+%dir %{gem_instdir}
+%exclude %{gem_instdir}/.*
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/Gemfile
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/request_store.gemspec
+%{gem_instdir}/test
+
+%changelog
+* Mon Aug 04 2014 Vít Ondruch <vondruch at redhat.com> - 1.0.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1f4903e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+62a361429474b38a9b7caa2ab21f1891  request_store-1.0.8.gem


More information about the scm-commits mailing list