|
|
8979acc |
# Generated from chef-zero-2.0.2.gem by gem2rpm -*- rpm-spec -*-
|
|
|
8979acc |
|
|
|
8979acc |
%global gem_name chef-zero
|
|
|
8979acc |
|
|
|
8979acc |
Name: rubygem-%{gem_name}
|
|
|
438c4a8 |
Version: 2.2
|
|
|
eced918 |
Release: 9%{?dist}
|
|
|
8979acc |
Summary: Self-contained in-memory Chef server for testing and solo setup purposes
|
|
|
8979acc |
License: ASL 2.0
|
|
|
8979acc |
URL: https://github.com/opscode/chef-zero
|
|
|
8979acc |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
1046360 |
%{!?el6:Requires: ruby(release)}
|
|
|
8979acc |
Requires: ruby(rubygems)
|
|
|
8979acc |
Requires: rubygem(mixlib-log)
|
|
|
8979acc |
Requires: rubygem(hashie)
|
|
|
8979acc |
Requires: rubygem(json)
|
|
|
8979acc |
Requires: rubygem(rack)
|
|
|
1046360 |
%{!?el6:BuildRequires: ruby(release)}
|
|
|
8979acc |
BuildRequires: rubygems-devel
|
|
|
8979acc |
BuildRequires: ruby
|
|
|
438c4a8 |
BuildRequires: rubygem(rack)
|
|
|
438c4a8 |
BuildRequires: rubygem(mixlib-log)
|
|
|
438c4a8 |
BuildRequires: rubygem(hashie)
|
|
|
8979acc |
%{!?el6:BuildRequires: rubygem(rspec)}
|
|
|
8979acc |
BuildArch: noarch
|
|
|
8979acc |
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
8979acc |
|
|
|
8979acc |
%description
|
|
|
8979acc |
Self-contained, easy-setup, fast-start in-memory Chef server for testing and
|
|
|
8979acc |
solo setup purposes.
|
|
|
8979acc |
|
|
|
8979acc |
%package doc
|
|
|
8979acc |
Summary: Documentation for %{name}
|
|
|
8979acc |
Requires: %{name} = %{version}-%{release}
|
|
|
8979acc |
BuildArch: noarch
|
|
|
8979acc |
|
|
|
8979acc |
%description doc
|
|
|
8979acc |
Documentation for %{name}
|
|
|
8979acc |
|
|
|
8979acc |
%prep
|
|
|
8979acc |
gem unpack %{SOURCE0}
|
|
|
8979acc |
|
|
|
8979acc |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
8979acc |
|
|
|
8979acc |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
8979acc |
|
|
|
8979acc |
%build
|
|
|
8979acc |
# Create the gem as gem install only works on a gem file
|
|
|
8979acc |
gem build %{gem_name}.gemspec
|
|
|
8979acc |
|
|
|
8979acc |
%gem_install
|
|
|
8979acc |
|
|
|
8979acc |
%install
|
|
|
8979acc |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
8979acc |
cp -pa .%{gem_dir}/* \
|
|
|
8979acc |
%{buildroot}%{gem_dir}/
|
|
|
8979acc |
|
|
|
8979acc |
mkdir -p %{buildroot}%{_bindir}
|
|
|
8979acc |
cp -pa .%{_bindir}/* \
|
|
|
8979acc |
%{buildroot}%{_bindir}/
|
|
|
8979acc |
|
|
|
8979acc |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
8979acc |
|
|
|
8979acc |
%check
|
|
|
8979acc |
%if %{?el6}0
|
|
|
8979acc |
# spec is too old; need RSpec2
|
|
|
8979acc |
%else
|
|
|
8979acc |
pushd .%{gem_instdir}
|
|
|
8979acc |
rspec
|
|
|
8979acc |
popd
|
|
|
8979acc |
%endif
|
|
|
8979acc |
|
|
|
8979acc |
%files
|
|
|
8979acc |
%dir %{gem_instdir}
|
|
|
8979acc |
%{_bindir}/chef-zero
|
|
|
8979acc |
%{gem_instdir}/bin
|
|
|
8979acc |
%doc %{gem_instdir}/LICENSE
|
|
|
8979acc |
%{gem_libdir}
|
|
|
8979acc |
%exclude %{gem_cache}
|
|
|
8979acc |
%exclude %{gem_instdir}/spec
|
|
|
8979acc |
%{gem_spec}
|
|
|
8979acc |
|
|
|
8979acc |
%files doc
|
|
|
8979acc |
%doc %{gem_docdir}
|
|
|
8979acc |
%doc %{gem_instdir}/README.md
|
|
|
8979acc |
%doc %{gem_instdir}/Rakefile
|
|
|
8979acc |
|
|
|
8979acc |
%changelog
|
|
|
eced918 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-9
|
|
|
eced918 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
eced918 |
|
|
|
eba5010 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-8
|
|
|
eba5010 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
eba5010 |
|
|
|
f768916 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-7
|
|
|
f768916 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
f768916 |
|
|
|
b7d386e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-6
|
|
|
b7d386e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b7d386e |
|
|
|
caa5281 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-5
|
|
|
caa5281 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
caa5281 |
|
|
|
16019e2 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-4
|
|
|
16019e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
16019e2 |
|
|
|
62e238d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-3
|
|
|
62e238d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
62e238d |
|
|
|
5b771a5 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
|
|
|
5b771a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5b771a5 |
|
|
|
438c4a8 |
* Sat Jun 21 2014 Julian C. Dunn <jdunn@aquezada.com> - 2.2-2
|
|
|
438c4a8 |
- Update to 2.2 (bz#1111886)
|
|
|
438c4a8 |
|
|
|
1046360 |
* Fri Jun 06 2014 Julian C. Dunn <jdunn@aquezada.com> - 2.1.5-2
|
|
|
1046360 |
- Fix build on EL6
|
|
|
1046360 |
|
|
|
8979acc |
* Thu Jun 05 2014 Julian C. Dunn <jdunn@aquezada.com> - 2.1.5-1
|
|
|
8979acc |
- Update to 2.1.5
|
|
|
8979acc |
|
|
|
8979acc |
* Thu Mar 20 2014 Julian C. Dunn <jdunn@aquezada.com> - 2.0.2-1
|
|
|
8979acc |
- Initial package
|