Blame SPECS/rubygem-web-console.spec

19638c
%{?scl:%scl_package rubygem-%{gem_name}}
19638c
%{!?scl:%global pkg_name %{name}}
19638c
19638c
# Generated from web-console-2.0.0.gem by gem2rpm -*- rpm-spec -*-
19638c
%global gem_name web-console
19638c
19638c
Name: %{?scl_prefix}rubygem-%{gem_name}
19638c
Version: 2.2.1
19638c
Release: 3%{?dist}
19638c
Summary: A debugging tool for your Ruby on Rails applications
19638c
Group: Development/Languages
19638c
License: MIT
19638c
URL: https://github.com/rails/web-console
19638c
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
19638c
# git clone https://github.com/rails/web-console.git && cd web-console
19638c
# git checkout v2.2.1 && tar czvf web-console-2.2.1-tests.tgz test/
19638c
Source1: %{gem_name}-%{version}-tests.tgz
19638c
19638c
Requires:      %{?scl_prefix_ruby}ruby(release)
19638c
Requires:      %{?scl_prefix_ruby}ruby(rubygems)
19638c
Requires:      %{?scl_prefix}rubygem(railties) >= 4.0
19638c
Requires:      %{?scl_prefix}rubygem(activemodel) >= 4.0
19638c
Requires:      %{?scl_prefix}rubygem(sprockets-rails) >= 2.0
19638c
Requires:      %{?scl_prefix}rubygem(sprockets-rails) < 4.0
19638c
Requires:      %{?scl_prefix}rubygem(binding_of_caller) >= 0.7.2
19638c
BuildRequires: %{?scl_prefix}rubygem(binding_of_caller)
19638c
BuildRequires: %{?scl_prefix_ruby}ruby(release)
19638c
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
19638c
BuildRequires: %{?scl_prefix_ruby}ruby
19638c
BuildRequires: %{?scl_prefix}rubygem(mocha)
19638c
BuildRequires: %{?scl_prefix}rubygem(rails)
19638c
BuildRequires: %{?scl_prefix}rubygem(sqlite3)
19638c
BuildArch:     noarch
19638c
Provides:      %{?scl_prefix}rubygem(%{gem_name}) = %{version}
19638c
19638c
%description
19638c
A debugging tool for your Ruby on Rails applications.
19638c
19638c
%package doc
19638c
Summary: Documentation for %{pkg_name}
19638c
Group: Documentation
19638c
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
19638c
BuildArch: noarch
19638c
19638c
%description doc
19638c
Documentation for %{pkg_name}.
19638c
19638c
%prep
19638c
%{?scl:scl enable %{scl} - << \EOF}
19638c
gem unpack %{SOURCE0}
19638c
%{?scl:EOF}
19638c
19638c
%setup -q -D -T -n  %{gem_name}-%{version}
19638c
19638c
%{?scl:scl enable %{scl} - << \EOF}
19638c
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
19638c
%{?scl:EOF}
19638c
19638c
%build
19638c
# Create the gem as gem install only works on a gem file
19638c
%{?scl:scl enable %{scl} - << \EOF}
19638c
gem build %{gem_name}.gemspec
19638c
%gem_install
19638c
%{?scl:EOF}
19638c
19638c
%install
19638c
mkdir -p %{buildroot}%{gem_dir}
19638c
cp -a .%{gem_dir}/* \
19638c
        %{buildroot}%{gem_dir}/
19638c
19638c
%check
19638c
pushd .%{gem_instdir}
19638c
tar xzvf %{SOURCE1}
19638c
19638c
# We don't care about code coverage.
19638c
sed -i '/imple.ov/ s/^/#/' test/test_helper.rb
19638c
19638c
# Couldn't find a way how to execute the test suite without Bundler,
19638c
# so give it some reasonable Gemfile.
19638c
cat << \EOF > Gemfile
19638c
source 'https://rubygems.org'
19638c
19638c
gem 'binding_of_caller'
19638c
gem 'mocha', require: false
19638c
gem 'rails'
19638c
gem 'sqlite3'
19638c
EOF
19638c
19638c
%{?scl:scl enable %{scl} - << \EOF}
19638c
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
19638c
%{?scl:EOF}
19638c
popd
19638c
19638c
%files
19638c
%dir %{gem_instdir}
19638c
%license %{gem_instdir}/MIT-LICENSE
19638c
%{gem_libdir}
19638c
%exclude %{gem_cache}
19638c
%{gem_spec}
19638c
19638c
%files doc
19638c
%doc %{gem_docdir}
19638c
%doc %{gem_instdir}/CHANGELOG.markdown
19638c
%doc %{gem_instdir}/README.markdown
19638c
%{gem_instdir}/Rakefile
19638c
19638c
%changelog
19638c
* Thu Mar 03 2016 Pavel Valena <pvalena@redhat.com> - 2.2.1-3
19638c
- Add scl macros
19638c
  - Resolves: rhbz#1317080
19638c
19638c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
19638c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
19638c
19638c
* Tue Sep 22 2015 Vít Ondruch <vondruch@redhat.com> - 2.2.1-1
19638c
- Update to web-console 2.2.1.
19638c
19638c
* Fri Jun 19 2015 Vít Ondruch <vondruch@redhat.com> - 2.1.3-1
19638c
- Update to web-console 2.1.3.
19638c
19638c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
19638c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
19638c
19638c
* Tue Jan 27 2015 Vít Ondruch <vondruch@redhat.com> - 2.0.0-1
19638c
- Initial package