From 10b99c89feccdaaaced540ba3e115c46883d78e2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:38:18 +0000 Subject: import rh-ror42-rubygem-jbuilder-2.3.2-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2113cdb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jbuilder-2.3.2.gem diff --git a/.rh-ror42-rubygem-jbuilder.metadata b/.rh-ror42-rubygem-jbuilder.metadata new file mode 100644 index 0000000..d788438 --- /dev/null +++ b/.rh-ror42-rubygem-jbuilder.metadata @@ -0,0 +1 @@ +924e4a3f9e2320fa232ad46102787e61a12c979b SOURCES/jbuilder-2.3.2.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-jbuilder.spec b/SPECS/rubygem-jbuilder.spec new file mode 100644 index 0000000..3e11120 --- /dev/null +++ b/SPECS/rubygem-jbuilder.spec @@ -0,0 +1,107 @@ +%{?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.3.2 +Release: 3%{?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(activesupport) < 5 +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}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby +%if 0%{bootstrap} < 1 +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.0.0 +BuildRequires: %{?scl_prefix}rubygem(mocha) +BuildRequires: %{?scl_prefix}rubygem(rails) +BuildRequires: %{?scl_prefix}rubygem(multi_json) +%endif +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 +%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 -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +%if 0%{bootstrap} < 1 +pushd .%{gem_instdir} +# Get rid of Bundler +sed -i -e '1d' test/test_helper.rb +rm Gemfile +%{?scl:scl enable %{scl} - << \EOF} +ruby -rshellwords -Ilib:test -e "Dir.glob './test/*_test.rb', &method(:require)" +%{?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 +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/CONTRIBUTING.md +%{gem_instdir}/Gemfile +%{gem_instdir}/%{gem_name}.gemspec +%{gem_instdir}/Rakefile +%{gem_instdir}/test +%{gem_instdir}/gemfiles +%{gem_instdir}/Appraisals + +%changelog +* 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