Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
rubygem-web-console-2
rubygem-web-console-2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-web-console-2.spec of Package rubygem-web-console-2
# Generated from web-console-2.0.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name web-console Name: rubygem-%{gem_name}-2 Version: 2.2.1 Release: 2%{?dist} Summary: A debugging tool for your Ruby on Rails applications Group: Development/Languages License: MIT URL: https://github.com/rails/web-console Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/rails/web-console.git && cd web-console # git checkout v2.2.1 && tar czvf web-console-2.2.1-tests.tgz test/ Source1: %{gem_name}-%{version}-tests.tgz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(binding_of_caller) BuildRequires: rubygem(mocha) BuildRequires: rubygem(rails) BuildRequires: rubygem(sqlite3) BuildArch: noarch %description A debugging tool for your Ruby on Rails applications. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # Run the test suite %check pushd .%{gem_instdir} tar xzvf %{SOURCE1} # We don't care about code coverage. sed -i '/imple.ov/ s/^/#/' test/test_helper.rb # Couldn't find a way how to execute the test suite without Bundler, # so give it some reasonable Gemfile. cat << \EOF > Gemfile source 'https://rubygems.org' gem 'binding_of_caller' gem 'mocha', require: false gem 'rails' gem 'sqlite3' EOF ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/MIT-LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.markdown %doc %{gem_instdir}/README.markdown %{gem_instdir}/Rakefile
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor