From 16ba9e4a3717fe2867e15f42160776c3b316dfab Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 09:17:55 +0000 Subject: import rh-ror50-rubygem-jbuilder-2.5.0-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8f4283 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jbuilder-2.5.0.gem diff --git a/.rh-ror50-rubygem-jbuilder.metadata b/.rh-ror50-rubygem-jbuilder.metadata new file mode 100644 index 0000000..4019f22 --- /dev/null +++ b/.rh-ror50-rubygem-jbuilder.metadata @@ -0,0 +1 @@ +71de60374acde49a3ca59108c571454a8b05bbab SOURCES/jbuilder-2.5.0.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..4bd38ac --- /dev/null +++ b/SPECS/rubygem-jbuilder.spec @@ -0,0 +1,112 @@ +%{?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