summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-07-27 23:48:17 -0600
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-10-10 17:20:53 -0600
commit7c7ed2a8498bb28f8895f7ea0ddc1b7b5020cd7d (patch)
tree0643f9db813c11a4388da147f3f9fef893b0b7fd
downloadrubygem-climate_control-7c7ed2a8498bb28f8895f7ea0ddc1b7b5020cd7d.tar.gz
rubygem-climate_control-7c7ed2a8498bb28f8895f7ea0ddc1b7b5020cd7d.tar.xz
rubygem-climate_control-7c7ed2a8498bb28f8895f7ea0ddc1b7b5020cd7d.zip
Initial packageHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-climate_control.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7e0fb04
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/climate_control-0.0.3.gem
diff --git a/rubygem-climate_control.spec b/rubygem-climate_control.spec
new file mode 100644
index 0000000..fbf3a14
--- /dev/null
+++ b/rubygem-climate_control.spec
@@ -0,0 +1,81 @@
+%global gem_name climate_control
+
+Name: rubygem-%{gem_name}
+Version: 0.0.3
+Release: 1%{?dist}
+Summary: Modify your ENV easily
+Group: Development/Languages
+License: MIT
+URL: https://github.com/thoughtbot/climate_control
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems)
+Requires: rubygem(activesupport) >= 3.0
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(simplecov)
+BuildRequires: rubygem(activesupport) >= 3.0
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+ClimateControl can be used to temporarily assign environment variables within a code block.
+
+
+%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
+
+# remove unecessary gemspec
+pushd .%{gem_instdir}
+ rm %{gem_name}.gemspec
+popd
+
+%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.txt
+%exclude %{gem_instdir}/.*
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/NEWS
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Gemfile
+%{gem_instdir}/Rakefile
+%{gem_instdir}/spec
+
+%changelog
+* Sat Jul 27 2013 ktdreyer@ktdreyer.com - 0.0.3-1
+- Initial package, with gem2rpm 0.9.2
diff --git a/sources b/sources
new file mode 100644
index 0000000..ecb8d60
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+00a9a61ffb4a5cce168ff5b3342c7c03 climate_control-0.0.3.gem