%{?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: 2.5.0 Release: 1%{?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) Requires: %{?scl_prefix}rubygem(multi_json) => 1.2 Requires: %{?scl_prefix}rubygem(multi_json) < 2 BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}ruby(rubygems) BuildRequires: %{?scl_prefix_ruby}ruby BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix}rubygem(activemodel) BuildRequires: %{?scl_prefix}rubygem(multi_json) BuildRequires: %{?scl_prefix}rubygem(mocha) BuildRequires: %{?scl_prefix}rubygem(railties) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} # Explicitly require runtime subpackage, as long as older scl-utils do not generate it %{?scl:Requires: %{?scl_prefix}runtime} %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 %setup -n %{pkg_name}-%{version} -q -c -T %{?scl:scl enable %{scl} - << \EOF} %gem_install -n %{SOURCE0} %{?scl:EOF} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Get rid of Bundler. sed -i '/bundler\/setup/ s/^/#/' test/test_helper.rb %{?scl:scl enable %{scl} - << \EOF} ruby -Ilib:test -e "Dir.glob './test/*_test.rb', &method(:require)" %{?scl:EOF} popd %files # There is no %%license macro on RHEL6. # https://bugzilla.redhat.com/show_bug.cgi?id=1386246 %{!?_licensedir:%global license %%doc} %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %exclude %{gem_instdir}/.* %license %{gem_instdir}/MIT-LICENSE %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/test %{gem_instdir}/gemfiles %{gem_instdir}/Appraisals %changelog * Mon Nov 21 2016 Jun Aruga - 2.5.0-1 - Update Jbuilder 2.5.0. * Wed Mar 02 2016 Pavel Valena - 2.3.2-3 - Update to 2.3.2 * Tue Jan 27 2015 Josef Stribny - 2.2.2-1 - Update to 2.2.2 * 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