%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} # Generated from jbuilder-1.5.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name jbuilder %global bootstrap 0 Name: %{?scl_prefix}rubygem-%{gem_name} Version: 1.5.0 Release: 2%{?dist} Summary: Create JSON structures via a Builder-style DSL Group: Development/Languages License: MIT URL: https://github.com/rails/jbuilder Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}ruby(rubygems) Requires: %{?scl_prefix}rubygem(activesupport) >= 3.0.0 Requires: %{?scl_prefix}rubygem(multi_json) >= 1.2.0 BuildRequires: %{?scl_prefix_ruby}ruby(release) %if 0%{bootstrap} < 1 BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) BuildRequires: %{?scl_prefix}rubygem(mocha) BuildRequires: %{?scl_prefix}rubygem(rails) %endif BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix_ruby}ruby BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %description Jbuilder gives you a simple DSL for declaring JSON structures that beats massaging giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops. %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{pkg_name}. %prep %{?scl:scl enable %{scl} - << \EOF} gem unpack %{SOURCE0} %{?scl:EOF} %setup -q -D -T -n %{gem_name}-%{version} %{?scl:scl enable %{scl} - << \EOF} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} gem build %{gem_name}.gemspec %gem_install %{?scl:EOF} %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check %if 0%{bootstrap} < 1 pushd .%{gem_instdir} %{?scl:scl enable %{scl} - << \EOF} testrb -Ilib test/*_test.rb %{?scl:EOF} popd %endif %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %doc %{gem_instdir}/MIT-LICENSE %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.edge %{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/Rakefile %{gem_instdir}/test %changelog * Thu Oct 17 2013 Josef Stribny - 1.5.0-2 - Convert to scl * Tue Jul 30 2013 Josef Stribny - 1.5.0-1 - Initial package