|
|
10b99c |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
10b99c |
%{!?scl:%global pkg_name %{name}}
|
|
|
10b99c |
|
|
|
10b99c |
# Generated from jbuilder-1.5.0.gem by gem2rpm -*- rpm-spec -*-
|
|
|
10b99c |
%global gem_name jbuilder
|
|
|
10b99c |
|
|
|
10b99c |
%global bootstrap 0
|
|
|
10b99c |
|
|
|
10b99c |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
10b99c |
Version: 2.3.2
|
|
|
10b99c |
Release: 3%{?dist}
|
|
|
10b99c |
Summary: Create JSON structures via a Builder-style DSL
|
|
|
10b99c |
Group: Development/Languages
|
|
|
10b99c |
License: MIT
|
|
|
10b99c |
URL: https://github.com/rails/jbuilder
|
|
|
10b99c |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
10b99c |
|
|
|
10b99c |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
10b99c |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
10b99c |
Requires: %{?scl_prefix}rubygem(activesupport) >= 3.0.0
|
|
|
10b99c |
Requires: %{?scl_prefix}rubygem(activesupport) < 5
|
|
|
10b99c |
Requires: %{?scl_prefix}rubygem(multi_json) => 1.2
|
|
|
10b99c |
Requires: %{?scl_prefix}rubygem(multi_json) < 2
|
|
|
10b99c |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
10b99c |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
10b99c |
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
|
10b99c |
%if 0%{bootstrap} < 1
|
|
|
10b99c |
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.0.0
|
|
|
10b99c |
BuildRequires: %{?scl_prefix}rubygem(mocha)
|
|
|
10b99c |
BuildRequires: %{?scl_prefix}rubygem(rails)
|
|
|
10b99c |
BuildRequires: %{?scl_prefix}rubygem(multi_json)
|
|
|
10b99c |
%endif
|
|
|
10b99c |
BuildArch: noarch
|
|
|
10b99c |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
10b99c |
|
|
|
10b99c |
%description
|
|
|
10b99c |
Jbuilder gives you a simple DSL for declaring JSON structures that beats
|
|
|
10b99c |
massaging giant hash structures. This is particularly helpful when
|
|
|
10b99c |
the generation process is fraught with conditionals and loops.
|
|
|
10b99c |
|
|
|
10b99c |
%package doc
|
|
|
10b99c |
Summary: Documentation for %{pkg_name}
|
|
|
10b99c |
Group: Documentation
|
|
|
10b99c |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
10b99c |
BuildArch: noarch
|
|
|
10b99c |
|
|
|
10b99c |
%description doc
|
|
|
10b99c |
Documentation for %{pkg_name}.
|
|
|
10b99c |
|
|
|
10b99c |
%prep
|
|
|
10b99c |
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
|
10b99c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
10b99c |
%gem_install -n %{SOURCE0}
|
|
|
10b99c |
%{?scl:EOF}
|
|
|
10b99c |
|
|
|
10b99c |
%build
|
|
|
10b99c |
|
|
|
10b99c |
%install
|
|
|
10b99c |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
10b99c |
cp -pa .%{gem_dir}/* \
|
|
|
10b99c |
%{buildroot}%{gem_dir}/
|
|
|
10b99c |
|
|
|
10b99c |
%check
|
|
|
10b99c |
%if 0%{bootstrap} < 1
|
|
|
10b99c |
pushd .%{gem_instdir}
|
|
|
10b99c |
# Get rid of Bundler
|
|
|
10b99c |
sed -i -e '1d' test/test_helper.rb
|
|
|
10b99c |
rm Gemfile
|
|
|
10b99c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
10b99c |
ruby -rshellwords -Ilib:test -e "Dir.glob './test/*_test.rb', &method(:require)"
|
|
|
10b99c |
%{?scl:EOF}
|
|
|
10b99c |
popd
|
|
|
10b99c |
%endif
|
|
|
10b99c |
|
|
|
10b99c |
%files
|
|
|
10b99c |
%dir %{gem_instdir}
|
|
|
10b99c |
%{gem_libdir}
|
|
|
10b99c |
%exclude %{gem_cache}
|
|
|
10b99c |
%exclude %{gem_instdir}/.gitignore
|
|
|
10b99c |
%exclude %{gem_instdir}/.travis.yml
|
|
|
10b99c |
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
10b99c |
%{gem_spec}
|
|
|
10b99c |
|
|
|
10b99c |
%files doc
|
|
|
10b99c |
%doc %{gem_docdir}
|
|
|
10b99c |
%doc %{gem_instdir}/README.md
|
|
|
10b99c |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
10b99c |
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
10b99c |
%{gem_instdir}/Gemfile
|
|
|
10b99c |
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
10b99c |
%{gem_instdir}/Rakefile
|
|
|
10b99c |
%{gem_instdir}/test
|
|
|
10b99c |
%{gem_instdir}/gemfiles
|
|
|
10b99c |
%{gem_instdir}/Appraisals
|
|
|
10b99c |
|
|
|
10b99c |
%changelog
|
|
|
10b99c |
* Wed Mar 02 2016 Pavel Valena <pvalena@redhat.com> - 2.3.2-3
|
|
|
10b99c |
- Update to 2.3.2
|
|
|
10b99c |
|
|
|
10b99c |
* Tue Jan 27 2015 Josef Stribny <jstribny@redhat.com> - 2.2.2-1
|
|
|
10b99c |
- Update to 2.2.2
|
|
|
10b99c |
|
|
|
10b99c |
* Thu Oct 17 2013 Josef Stribny <jstribny@redhat.com> - 1.5.0-2
|
|
|
10b99c |
- Convert to scl
|
|
|
10b99c |
|
|
|
10b99c |
* Tue Jul 30 2013 Josef Stribny <jstribny@redhat.com> - 1.5.0-1
|
|
|
10b99c |
- Initial package
|