[rubygem-chef-zero] Initial import. (bz#1079111)

Julian C. Dunn jdunn at fedoraproject.org
Fri Jun 6 17:03:33 UTC 2014


commit 8979acc8e17fc029912347f199f74445130c4517
Author: Julian C. Dunn <jdunn at aquezada.com>
Date:   Fri Jun 6 13:03:04 2014 -0400

    Initial import. (bz#1079111)

 .gitignore             |    1 +
 rubygem-chef-zero.spec |   92 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..64c5593 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/chef-zero-2.1.5.gem
diff --git a/rubygem-chef-zero.spec b/rubygem-chef-zero.spec
new file mode 100644
index 0000000..46bbda0
--- /dev/null
+++ b/rubygem-chef-zero.spec
@@ -0,0 +1,92 @@
+# Generated from chef-zero-2.0.2.gem by gem2rpm -*- rpm-spec -*-
+
+%global gem_name chef-zero
+
+Name: rubygem-%{gem_name}
+Version: 2.1.5
+Release: 1%{?dist}
+Summary: Self-contained in-memory Chef server for testing and solo setup purposes
+Group: Development/Languages
+License: ASL 2.0
+URL: https://github.com/opscode/chef-zero
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems)
+Requires: rubygem(mixlib-log)
+Requires: rubygem(hashie)
+Requires: rubygem(json)
+Requires: rubygem(rack)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+%{!?el6:BuildRequires: rubygem(rspec)}
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+Self-contained, easy-setup, fast-start in-memory Chef server for testing and
+solo setup purposes.
+
+%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
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{_bindir}
+cp -pa .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+%check
+%if %{?el6}0
+# spec is too old; need RSpec2
+%else
+pushd .%{gem_instdir}
+rspec
+popd
+%endif
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/chef-zero
+%{gem_instdir}/bin
+%doc %{gem_instdir}/LICENSE
+%{gem_libdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/spec
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/Rakefile
+
+%changelog
+* Thu Jun 05 2014 Julian C. Dunn <jdunn at aquezada.com> - 2.1.5-1
+- Update to 2.1.5
+
+* Thu Mar 20 2014 Julian C. Dunn <jdunn at aquezada.com> - 2.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..ee3ccec 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6c686f45eec41dcaf7a5769561505f8e  chef-zero-2.1.5.gem


More information about the scm-commits mailing list