rubygem-jbuilder init
This commit is contained in:
parent
551bf710fc
commit
a30107b8d9
BIN
jbuilder-2.7.0.gem
Normal file
BIN
jbuilder-2.7.0.gem
Normal file
Binary file not shown.
64
rubygem-jbuilder.spec
Normal file
64
rubygem-jbuilder.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
%global gem_name jbuilder
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 2.7.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Create JSON structures via a Builder-style DSL
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/rails/jbuilder
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(activemodel) rubygem(multi_json)
|
||||||
|
BuildRequires: rubygem(mocha) rubygem(railties)
|
||||||
|
BuildArch: noarch
|
||||||
|
%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 %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -T
|
||||||
|
%gem_install -n %{SOURCE0}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
sed -i '/bundler\/setup/ s/^/#/' test/test_helper.rb
|
||||||
|
ruby -Ilib:test -e "Dir.glob './test/*_test.rb', &method(:require)"
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%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
|
||||||
|
* Wed Aug 19 2020 tuShenmei <tushenmei@huawei.com> - 2.7.0-1
|
||||||
|
- package init
|
||||||
4
rubygem-jbuilder.yaml
Normal file
4
rubygem-jbuilder.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: rails/jbuilder
|
||||||
|
tag_prefix: "jbuilder-"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user